user3737238
user3737238

Reputation:

Publish Android app after crosswalk removal and make it updatable

I have decided to remove Crosswalk Webview from my Cordova application.

Now I have tried to publish the new updated version to "Console Play Store" and after that it says that users won't be able to update from the published latest old version. Indeed, I also tried from my phone to upgrade from my old version to the new one and it says that package could be corrupted. Otherwise, if I remove the old one and install the new one everything works fine.

I used the same keystore to sign the application. The only thing that has changed is the original "unsigned" apk (from the old Crosswalk ARM version to the standard cordova android-release-unsigned.apk).

Could you please help me to find a way to publish my new app version and let users to update from latest old crosswalk arm version they already have?

Thanks

Upvotes: 3

Views: 478

Answers (1)

Rock Shin
Rock Shin

Reputation: 21

Check your app's version code. Since crosswalk uses multiple apks, it's version code is multiplied by 10 (see below). When you remove crosswalk, version code becomes normal, which means lose one digit. Newer app's version code should be larger!

So I just put larger number manually into config.xml. (widget tag's android-versionCode attribute)

// these are equations from gradle file
armv7 {
    versionCode defaultConfig.versionCode*10 + 2
}
x86 {
    versionCode defaultConfig.versionCode*10 + 4
}

Upvotes: 2

Related Questions