diff --git a/authenticator/build.gradle b/authenticator/build.gradle index f4d223e..b8225ab 100644 --- a/authenticator/build.gradle +++ b/authenticator/build.gradle @@ -22,8 +22,8 @@ android { applicationId "me.henneke.wearauthn.authenticator" minSdkVersion 28 targetSdkVersion 29 - versionCode 228092 - versionName "0.9.2" + versionCode makeVersionCode(minSdkVersion.apiLevel, true) + versionName makeVersionName() } buildTypes { release { diff --git a/build.gradle b/build.gradle index 49f52fd..55251eb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,9 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. +ext.versionMajor = 0 +ext.versionMinor = 9 +ext.versionPatch = 3 + buildscript { ext.kotlin_version = '1.3.61' repositories { @@ -23,6 +27,22 @@ allprojects { } } +private Integer makeVersionCode(int minSdkVersion, boolean wear) { + long version = minSdkVersion * 1000000 + + ext.versionMajor * 10000 + + ext.versionMinor * 100 + + ext.versionPatch + if (wear) { + return 100000000 + version + } else { + return version + } +} + +private String makeVersionName() { + return "${ext.versionMajor}.${ext.versionMinor}.${ext.versionPatch}" +} + task clean(type: Delete) { delete rootProject.buildDir } diff --git a/companion/build.gradle b/companion/build.gradle index af663a9..3c3a032 100644 --- a/companion/build.gradle +++ b/companion/build.gradle @@ -13,8 +13,8 @@ android { applicationId "me.henneke.wearauthn.authenticator" minSdkVersion 21 targetSdkVersion 29 - versionCode 129092 - versionName "0.9.2" + versionCode makeVersionCode(minSdkVersion.apiLevel, false) + versionName makeVersionName() } signingConfigs { testSign { diff --git a/companion/src/main/res/values/strings.xml b/companion/src/main/res/values/strings.xml index c79e0d0..e3f0f08 100644 --- a/companion/src/main/res/values/strings.xml +++ b/companion/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ WearAuthn - Recent changesVersion 0.9.2
• Fix a crash when the NFC state changes

Version 0.9.1
• Verify master key signatures in constant time]]>
+ Recent changesVersion 0.9.3
• Updated Android libraries
• Fix the visibility of the NFC settings icon

Version 0.9.2
• Fix a crash when the NFC state changes

Version 0.9.1
• Verify master key signatures in constant time]]>
https://github.com/FabianHenneke/WearAuthn/issues/new?assignees=FabianHenneke&template=bug_report.md Purchased Purchase pending