-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add version mechanism - Update docs - Fix minions default size
- Loading branch information
Showing
11 changed files
with
188 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
/platforms | ||
/plugins | ||
/www/* | ||
/build/* | ||
*.jks | ||
|
||
# Generated API | ||
generated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<widget id="casa.casanet.dashboard" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<name>casanet</name> | ||
<description> | ||
Cadasnet IoT control dashboard | ||
Cadasnet IoT Control Dashboard | ||
</description> | ||
<author email="[email protected]" href="https://github.com/haimkastner"> | ||
Haim Kastner | ||
Haim Kastner | ||
</author> | ||
<content src="index.html" /> | ||
<access origin="*" /> | ||
<allow-intent href="*" /> | ||
<allow-intent href="http://*/*" /> | ||
<allow-intent href="https://*/*" /> | ||
<allow-intent href="tel:*" /> | ||
<allow-intent href="sms:*" /> | ||
<allow-intent href="mailto:*" /> | ||
<allow-intent href="geo:*" /> | ||
<content src="index.html"/> | ||
<access origin="*"/> | ||
<allow-intent href="*"/> | ||
<allow-intent href="http://*/*"/> | ||
<allow-intent href="https://*/*"/> | ||
<allow-intent href="tel:*"/> | ||
<allow-intent href="sms:*"/> | ||
<allow-intent href="mailto:*"/> | ||
<allow-intent href="geo:*"/> | ||
<platform name="android"> | ||
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application"> | ||
<application android:usesCleartextTraffic="true" /> | ||
<application android:usesCleartextTraffic="true"/> | ||
</edit-config> | ||
<allow-intent href="market:*" /> | ||
<icon density="ldpi" src="assets/icons/android/mipmap-hdpi/ic_launcher.png" /> | ||
<icon density="hdpi" src="assets/icons/android/mipmap-hdpi/ic_launcher.png" /> | ||
<icon density="mdpi" src="assets/icons/android/mipmap-mdpi/ic_launcher.png" /> | ||
<icon density="xhdpi" src="assets/icons/android/mipmap-xhdpi/ic_launcher.png" /> | ||
<icon density="xxhdpi" src="assets/icons/android/mipmap-xxhdpi/ic_launcher.png" /> | ||
<icon density="xxxhdpi" src="assets/icons/android/mipmap-xxxhdpi/ic_launcher.png" /> | ||
<allow-intent href="market:*"/> | ||
<icon density="ldpi" src="assets/icons/android/mipmap-hdpi/ic_launcher.png"/> | ||
<icon density="hdpi" src="assets/icons/android/mipmap-hdpi/ic_launcher.png"/> | ||
<icon density="mdpi" src="assets/icons/android/mipmap-mdpi/ic_launcher.png"/> | ||
<icon density="xhdpi" src="assets/icons/android/mipmap-xhdpi/ic_launcher.png"/> | ||
<icon density="xxhdpi" src="assets/icons/android/mipmap-xxhdpi/ic_launcher.png"/> | ||
<icon density="xxxhdpi" src="assets/icons/android/mipmap-xxxhdpi/ic_launcher.png"/> | ||
</platform> | ||
<platform name="ios"> | ||
<allow-intent href="itms:*" /> | ||
<allow-intent href="itms-apps:*" /> | ||
<allow-intent href="itms:*"/> | ||
<allow-intent href="itms-apps:*"/> | ||
</platform> | ||
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import fse from 'fs-extra'; | ||
|
||
// Get the store from environment variable as BASE64 string | ||
const casanetKeyStoreBuffer = Buffer.from(process.env.CASANET_KEY_STORE, 'base64'); | ||
// Save it as binary file | ||
fse.writeFileSync('casanet-key-store.jks', casanetKeyStoreBuffer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import fse from 'fs-extra'; | ||
import path from 'path'; | ||
import xmlParser from 'xml-js'; | ||
|
||
const PACKAGE_JSON = path.join('package.json'); | ||
const CORDOVA_CONFIG_XML = path.join('config.xml'); | ||
|
||
const packageJson = fse.readJSONSync(PACKAGE_JSON); | ||
|
||
const cordovaConfiguration = xmlParser.xml2js(fse.readFileSync(CORDOVA_CONFIG_XML)); | ||
|
||
cordovaConfiguration.elements[0].attributes.version = packageJson.version; | ||
|
||
const xml = xmlParser.js2xml(cordovaConfiguration, { | ||
spaces: ' ' | ||
}); | ||
|
||
fse.writeFileSync(path.join(CORDOVA_CONFIG_XML), xml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10679,7 +10679,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/sax/-/sax-1.1.4.tgz#74b6d33c9ae1e001510f179a91168588f1aedaa9" | ||
integrity sha1-dLbTPJrh4AFRDxeakRaFiPGu2qk= | ||
|
||
sax@~1.2.4: | ||
sax@^1.2.4, sax@~1.2.4: | ||
version "1.2.4" | ||
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" | ||
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== | ||
|
@@ -12519,6 +12519,13 @@ ws@^7.4.6: | |
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.4.tgz#56bfa20b167427e138a7795de68d134fe92e21f9" | ||
integrity sha512-zP9z6GXm6zC27YtspwH99T3qTG7bBFv2VIkeHstMLrLlDJuzA7tQ5ls3OJ1hOGGCzTQPniNJoHXIAOS0Jljohg== | ||
|
||
xml-js@^1.6.11: | ||
version "1.6.11" | ||
resolved "https://registry.yarnpkg.com/xml-js/-/xml-js-1.6.11.tgz#927d2f6947f7f1c19a316dd8eea3614e8b18f8e9" | ||
integrity sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g== | ||
dependencies: | ||
sax "^1.2.4" | ||
|
||
xml-name-validator@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" | ||
|