From 63587e8b925dc871a86a03601f11202f1e3c3149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Labruy=C3=A8re?= Date: Fri, 20 Sep 2024 12:43:48 +0200 Subject: [PATCH 1/3] fix(#264) name permissions from applicationId --- commons/src/main/AndroidManifest.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commons/src/main/AndroidManifest.xml b/commons/src/main/AndroidManifest.xml index fdf2ccb..4f70c2d 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"> - - + + From e916344edf769a361d5d7d927339b84381a75604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Labruy=C3=A8re?= Date: Fri, 20 Sep 2024 12:46:54 +0200 Subject: [PATCH 2/3] ref(#264) add doc for applicationId customization --- docs/styles_themes.adoc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/styles_themes.adoc b/docs/styles_themes.adoc index 25807d5..2dd46dc 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 From e634a03033e35eb78ace009521864ce8c7b877af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Labruy=C3=A8re?= Date: Tue, 24 Sep 2024 09:57:45 +0200 Subject: [PATCH 3/3] remove obsolete resources strings.xml --- commons/src/main/res/values-fr/strings.xml | 4 ---- commons/src/main/res/values/strings.xml | 9 --------- 2 files changed, 13 deletions(-) delete mode 100644 commons/src/main/res/values-fr/strings.xml delete mode 100644 commons/src/main/res/values/strings.xml 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 0d2c4cc..0000000 --- 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 62a2ee9..0000000 --- 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 - -