diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..a52dd424 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +java openjdk-23 diff --git a/README.md b/README.md index 3b8361f5..9297e235 100755 --- a/README.md +++ b/README.md @@ -124,14 +124,14 @@ file ./mage/build/outputs/apk/mage-android-defaults-debug.apk With a device connected to your machine, you can install the MAGE app with the following command: ```bash -./gradlew installDefaultsDebug +./gradlew installDebug ``` ### Test Run the tests on your device: ```bash -./gradlew connectedDefaultsDebugAndroidTest +./gradlew connectedDebugAndroidTest ``` ## Pull Requests diff --git a/gradle.properties b/gradle.properties index 2ebb4a7f..f2c45c61 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,6 +4,5 @@ org.gradle.jvmargs=-Xmx4096m # Application properties VERSION_CODE=1 -android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false android.nonFinalResIds=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f01a4242..8006f2b7 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Thu May 06 13:38:17 MDT 2021 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/mage/build.gradle b/mage/build.gradle index 02dc878b..067c1484 100644 --- a/mage/build.gradle +++ b/mage/build.gradle @@ -2,10 +2,10 @@ import org.ajoberstar.grgit.Grgit plugins { id 'com.android.application' - id 'org.jetbrains.kotlin.android' + id 'kotlin-android' id 'kotlin-parcelize' id 'kotlin-kapt' - id 'org.ajoberstar.grgit' version '4.1.0' + id 'org.ajoberstar.grgit' version '5.3.0' id 'com.google.dagger.hilt.android' } @@ -33,7 +33,13 @@ def googleMapsApiReleaseKey = hasProperty('RELEASE_MAPS_API_KEY') ? RELEASE_MAPS def googleMapsApiDebugKey = hasProperty('DEBUG_MAPS_API_KEY') ? DEBUG_MAPS_API_KEY : '' android { - compileSdk 34 + defaultConfig { + compileSdk 34 + } + + buildFeatures{ + buildConfig = true + } namespace 'mil.nga.giat.mage' dataBinding { @@ -57,6 +63,10 @@ android { kotlinOptions { jvmTarget = "21" freeCompilerArgs = ["-Xcontext-receivers"] + freeCompilerArgs += [ + "-P", + "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=1.9.25" + ] } buildFeatures { @@ -83,7 +93,7 @@ android { versionName project.version versionCode VERSION_CODE as int minSdkVersion 27 - targetSdkVersion 33 + targetSdkVersion 34 multiDexEnabled true resValue "string", "serverURLDefaultValue", serverURL resValue "string", "recentMapXYZDefaultValue", "263.0,40.0,3" diff --git a/mage/src/main/AndroidManifest.xml b/mage/src/main/AndroidManifest.xml index e9e8e3f7..3b96ed17 100644 --- a/mage/src/main/AndroidManifest.xml +++ b/mage/src/main/AndroidManifest.xml @@ -17,6 +17,7 @@ + { daoStore.resetDatabase() database.destroy() preferences .edit() - .putString(application.getString(R.string.serverURLKey), url) + .putString(application.getString(R.string.serverURLKey), processedUrl) .apply() _urlState.postValue(UrlState.Valid) diff --git a/mage/tests/AndroidManifest.xml b/mage/tests/AndroidManifest.xml index d85a8ead..5f078b9d 100644 --- a/mage/tests/AndroidManifest.xml +++ b/mage/tests/AndroidManifest.xml @@ -8,7 +8,7 @@ + android:targetSdkVersion="34" />