Browse Source

build for Play Store

master
Adler Neves 4 years ago
parent
commit
061e8911cd
  1. 4
      config.xml
  2. 22
      makefile
  3. 33
      package.json
  4. 4
      putOnParent_makefile
  5. 4
      putOnParent_sign.sh
  6. BIN
      screenshots/historico_precos.png
  7. BIN
      screenshots/inicio.png
  8. BIN
      screenshots/menu.png

4
config.xml

@ -80,7 +80,8 @@
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
</platform>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" />
<engine name="android" spec="~6.1.2" />
<engine name="android" spec="^6.1.2" />
<engine name="browser" spec="~4.1.0" />
<plugin name="cordova-plugin-actionsheet" spec="~2.3.3" />
<plugin name="cordova-plugin-console" spec="1.0.5" />
<plugin name="cordova-plugin-crosswalk-webview" spec="~2.3.0">
@ -99,5 +100,4 @@
<plugin name="cordova-plugin-x-toast" spec="~2.6.0" />
<plugin name="cordova-sqlite-storage" spec="~2.0.3" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<engine name="browser" spec="~4.1.0" />
</widget>

22
makefile

@ -0,0 +1,22 @@
all:
make release
make sign
make zipalign
-make install
release:
ionic cordova build --release android
-rm ../android-release-unsigned.apk
cp ./platforms/android/build/outputs/apk/android-release-unsigned.apk ../android-release-unsigned.apk
sign:
make -C .. sign
zipalign:
-rm ../android-release-signed-zipaligned.apk
zipalign -v 4 ../android-release-signed.apk ../android-release-signed-zipaligned.apk
install:
adb install -r ../android-release-signed-zipaligned.apk

33
package.json

@ -33,19 +33,8 @@
"@ionic/storage": "2.0.1",
"@types/node": "7.0.18",
"chart.js": "2.6.0",
"ionic-angular": "3.2.1",
"ionic-orm": "0.0.5",
"ionic-typeorm": "0.0.15",
"ionicons": "3.0.0",
"moment": "2.18.1",
"ng2-charts": "1.5.0",
"reflect-metadata": "0.1.10",
"rxjs": "5.1.1",
"sw-toolbox": "3.4.0",
"typeorm": "0.0.11",
"zone.js": "0.8.5",
"cordova-android": "^6.1.2",
"cordova-browser": "~4.1.0",
"cordova-android": "~6.1.2",
"cordova-plugin-actionsheet": "~2.3.3",
"cordova-plugin-console": "1.0.5",
"cordova-plugin-crosswalk-webview": "~2.3.0",
@ -56,15 +45,27 @@
"cordova-plugin-x-socialsharing": "~5.1.8",
"cordova-plugin-x-toast": "~2.6.0",
"cordova-sqlite-storage": "~2.0.3",
"ionic-plugin-keyboard": "~2.2.1"
"ionic-angular": "3.2.1",
"ionic-orm": "0.0.5",
"ionic-plugin-keyboard": "~2.2.1",
"ionic-typeorm": "0.0.15",
"ionicons": "3.0.0",
"moment": "2.18.1",
"ng2-charts": "1.5.0",
"reflect-metadata": "0.1.10",
"rxjs": "5.1.1",
"sw-toolbox": "3.4.0",
"typeorm": "0.0.11",
"zone.js": "0.8.5"
},
"devDependencies": {
"@angular/cli": "1.0.2",
"@ionic/app-scripts": "1.3.6",
"@ionic/cli-plugin-cordova": "1.2.1",
"@ionic/cli-plugin-ionic-angular": "1.2.0",
"@ionic/cli-plugin-cordova": "1.6.2",
"@ionic/cli-plugin-ionic-angular": "1.4.1",
"@types/jasmine": "2.5.47",
"codecov": "2.1.0",
"ionic": "3.7.0",
"jasmine-core": "2.6.1",
"jasmine-spec-reporter": "4.1.0",
"karma": "1.7.0",
@ -116,4 +117,4 @@
"ionic-plugin-keyboard": {}
}
}
}
}

4
putOnParent_makefile

@ -0,0 +1,4 @@
sign:
touch sign.sh
chmod +x sign.sh
./sign.sh

4
putOnParent_sign.sh

@ -0,0 +1,4 @@
#!/bin/bash
cp android-release-unsigned.apk android-release-signed.apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -storepass <your_password_here> -keypass <your_password_here> -keystore <keystore_file> android-release-signed.apk <stored_key_name>

BIN
screenshots/historico_precos.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
screenshots/inicio.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
screenshots/menu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Loading…
Cancel
Save