build: establish Android beta packaging
This commit is contained in:
@@ -4,6 +4,9 @@ plugins {
|
||||
id 'org.jetbrains.kotlin.plugin.compose'
|
||||
}
|
||||
|
||||
def betaVersionName = '0.1.0-beta.1'
|
||||
def betaVersionCode = 10001
|
||||
|
||||
android {
|
||||
namespace 'cloud.molberg.hermesmobile'
|
||||
compileSdk 35
|
||||
@@ -12,8 +15,9 @@ android {
|
||||
applicationId 'cloud.molberg.hermesmobile'
|
||||
minSdk 23
|
||||
targetSdk 35
|
||||
versionCode 2
|
||||
versionName '0.2.0-native'
|
||||
versionCode betaVersionCode
|
||||
versionName betaVersionName
|
||||
setProperty('archivesBaseName', "hermes-mobile-v${betaVersionName}")
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
}
|
||||
|
||||
@@ -34,6 +38,7 @@ android {
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
buildConfig true
|
||||
compose true
|
||||
}
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package cloud.molberg.hermesmobile
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
class BetaPackageMetadataTest {
|
||||
@Test
|
||||
fun generatedMetadataMatchesFirstBetaIdentity() {
|
||||
assertEquals("cloud.molberg.hermesmobile", BuildConfig.APPLICATION_ID)
|
||||
assertEquals("0.1.0-beta.1", BuildConfig.VERSION_NAME)
|
||||
assertEquals(10001, BuildConfig.VERSION_CODE)
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
"cap:add:android": "cap add android",
|
||||
"cap:sync": "npm run build && cap sync android",
|
||||
"android:open": "cap open android",
|
||||
"android:build:debug": "npm run cap:sync && cd android && ./gradlew assembleDebug"
|
||||
"android:build:debug": "cd android && ./gradlew :app:testDebugUnitTest :app:assembleDebug"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hermes-mobile/shared": "file:../../packages/shared",
|
||||
|
||||
Reference in New Issue
Block a user