diff --git a/AGENTS.md b/AGENTS.md index cbffa71e..c0356fa7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,7 +3,7 @@ Read the exact versioned docs at https://docs.expo.dev/versions/v56.0.0/ before writing any code. # Versioning & Build Rules -Whenever a new build is triggered, the version MUST be updated. +Whenever a new build is triggered, the version MUST be updated in BOTH `app.json` and `package.json`. - `version` format: `23.01.X` - `versionCode`: `X` (just the last number) Examples: @@ -15,6 +15,7 @@ Apps must always be built as BOTH `.apk` and `.aab`. The exact naming syntax for compiled files is: `Schnappix_v23.01.X.apk` `Schnappix_v23.01.X.aab` +IMPORTANT: All compiled files must be placed in the `apks/` directory (e.g. `apks/Schnappix_v23.01.X.apk`). Do NOT place them in the root directory. # Architectural Decisions & Project Rules 1. **Kiosk Mode (Device Owner)** diff --git a/android/app/build.gradle b/android/app/build.gradle index 0b7a177a..3ea25b0d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -92,8 +92,8 @@ android { applicationId 'de.orfel.schnappix' minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 10 - versionName "23.01.10" + versionCode 11 + versionName "23.01.11" buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\"" } @@ -104,14 +104,6 @@ android { keyAlias 'androiddebugkey' keyPassword 'android' } - release { - if (project.hasProperty('SCHNAPPIX_RELEASE_STORE_FILE')) { - storeFile file(SCHNAPPIX_RELEASE_STORE_FILE) - storePassword SCHNAPPIX_RELEASE_STORE_PASSWORD - keyAlias SCHNAPPIX_RELEASE_KEY_ALIAS - keyPassword SCHNAPPIX_RELEASE_KEY_PASSWORD - } - } } buildTypes { debug { @@ -120,11 +112,7 @@ android { release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. - if (project.hasProperty('SCHNAPPIX_RELEASE_STORE_FILE')) { - signingConfig signingConfigs.release - } else { - signingConfig signingConfigs.debug - } + signingConfig signingConfigs.debug def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false' shrinkResources enableShrinkResources.toBoolean() minifyEnabled enableMinifyInReleaseBuilds diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3d15665b..f742e1c9 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,16 +1,15 @@ - + - - - - - + + + + + - - + @@ -19,7 +18,7 @@ - + diff --git a/android/gradle.properties b/android/gradle.properties index ca1da470..df88f319 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -64,7 +64,7 @@ expo.useLegacyPackaging=false # WARNING: This property has been deprecated and will be removed in Expo SDK 55. Use `edgeToEdgeEnabled` or `react.edgeToEdgeEnabled` to determine whether the project is using edge-to-edge. expo.edgeToEdgeEnabled=true -android.targetSdkVersion=35 android.compileSdkVersion=35 +android.targetSdkVersion=35 android.enableMinifyInReleaseBuilds=true android.extraMavenRepos=[{"url":"https://jitpack.io"}] \ No newline at end of file diff --git a/Schnappix_v23.01.10.aab b/apks/Schnappix_v23.01.10.aab similarity index 100% rename from Schnappix_v23.01.10.aab rename to apks/Schnappix_v23.01.10.aab diff --git a/Schnappix_v23.01.10.apk b/apks/Schnappix_v23.01.10.apk similarity index 100% rename from Schnappix_v23.01.10.apk rename to apks/Schnappix_v23.01.10.apk diff --git a/Schnappix_v23.01.11.aab b/apks/Schnappix_v23.01.11.aab similarity index 100% rename from Schnappix_v23.01.11.aab rename to apks/Schnappix_v23.01.11.aab diff --git a/Schnappix_v23.01.11.apk b/apks/Schnappix_v23.01.11.apk similarity index 100% rename from Schnappix_v23.01.11.apk rename to apks/Schnappix_v23.01.11.apk diff --git a/package.json b/package.json index cae5cf90..f11f32c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schnappix", - "version": "1.0.3", + "version": "23.01.11", "main": "index.ts", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2",