Skip to content

Commit feb5841

Browse files
lacksfishafk11
authored andcommitted
Resolve android versioning bug with after_prepare script
1 parent 0e9078e commit feb5841

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hooks/after_prepare/022_android_modify_manifest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ if (rootdir) {
2121
throw new Error(xmlPath + ' has incorrect root node name (expected "manifest")');
2222
}
2323

24+
// https://stackoverflow.com/a/44925089 | https://stackoverflow.com/a/39361989
25+
doc.manifest.$['android:versionCode'] += '8';
26+
2427
// disable automatic backups to gdrive
2528
doc.manifest.application[0].$['android:allowBackup'] = false;
2629

platforms/android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<manifest android:hardwareAccelerated="true" android:versionCode="40401" android:versionName="4.4.1" package="com.blocktrail.mywallet" xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest android:hardwareAccelerated="true" android:versionCode="404018" android:versionName="4.4.1" package="com.blocktrail.mywallet" xmlns:android="http://schemas.android.com/apk/res/android">
33
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
44
<uses-permission android:name="android.permission.INTERNET" />
55
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

0 commit comments

Comments
 (0)