diff --git a/commons/src/main/AndroidManifest.xml b/commons/src/main/AndroidManifest.xml index fdf2ccb9..4f70c2d7 100644 --- a/commons/src/main/AndroidManifest.xml +++ b/commons/src/main/AndroidManifest.xml @@ -3,14 +3,14 @@ xmlns:android="http://schemas.android.com/apk/res/android"> - - + + diff --git a/commons/src/main/res/values-fr/strings.xml b/commons/src/main/res/values-fr/strings.xml deleted file mode 100644 index 0d2c4cc4..00000000 --- a/commons/src/main/res/values-fr/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/commons/src/main/res/values/strings.xml b/commons/src/main/res/values/strings.xml deleted file mode 100644 index 62a2ee91..00000000 --- a/commons/src/main/res/values/strings.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - commons - - fr.geonature.sync.permission.READ - fr.geonature.sync.permission.WRITE - - diff --git a/docs/styles_themes.adoc b/docs/styles_themes.adoc index 25807d5a..2dd46dcc 100644 --- a/docs/styles_themes.adoc +++ b/docs/styles_themes.adoc @@ -96,4 +96,24 @@ Then, we can edit each `strings.xml` file and keep only the node containing the Gradle will simply merge the default resources (`src/main/res`) with the resources of the variant selected during the build. So you don't need to keep everything copied to the variant but just take -the resources we want to replace. \ No newline at end of file +the resources we want to replace. + +== Application ID + +Changing the app name doesn't prevent conflicts with other Occtax applications. If you think your users may install and use your application alongside another Occtax applications, you may want to change it's ID in the `occtax/build.gradle` file, so that the terminal can understand it's a distinct application. + +[source,gradle] +---- +android { + // ... + defaultConfig { + applicationId "fr.geonature.myocctax" + // ... + } + // ... +} +---- + +Be aware that if you do so, your application will be treated by the user's terminal as a different app from any previous version. Opening the new apk will not launch an update of the existing app, but the installation of a new one. To obtain the new version, users will have to fully uninstall the previous version before. Therefore, it is preferable to make this change before you release your application. + +Changing the ID also changes the repository where the application files are located (settings, local db). Don't forget to set the `gn_commons.t_mobile_apps.package` field accordingly in your GeoNature instance. \ No newline at end of file