From 80b7d2deaa9dee7357bd15466f82aea696b99924 Mon Sep 17 00:00:00 2001 From: Lorenzo Felletti Date: Tue, 14 Feb 2023 17:36:20 +0100 Subject: [PATCH] refactor and locale support Changes: * Refactoring, code cleanup * Added support to different locales * Improved docs --- .idea/deploymentTargetDropDown.xml | 17 +++ .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- README.md | 35 ++++- build.gradle | 4 +- gradle/wrapper/gradle-wrapper.properties | 2 +- .../permissions/PermissionManager.kt | 139 +++++++----------- .../permissions/dispatcher/DispatcherEntry.kt | 12 +- .../dispatcher/RequestResultsDispatcher.kt | 21 ++- .../dispatcher/dsl/PermissionDispatcherDsl.kt | 34 +++-- .../src/main/res/values-b+de/strings.xml | 5 + .../src/main/res/values-b+es/strings.xml | 5 + .../src/main/res/values-b+fr/strings.xml | 5 + .../src/main/res/values-b+it/strings.xml | 5 + permissions/src/main/res/values/strings.xml | 6 + .../permissions/DispatcherEntryTest.kt | 13 +- 16 files changed, 184 insertions(+), 122 deletions(-) create mode 100644 .idea/deploymentTargetDropDown.xml create mode 100644 permissions/src/main/res/values-b+de/strings.xml create mode 100644 permissions/src/main/res/values-b+es/strings.xml create mode 100644 permissions/src/main/res/values-b+fr/strings.xml create mode 100644 permissions/src/main/res/values-b+it/strings.xml create mode 100644 permissions/src/main/res/values/strings.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..b552e59 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 95613d8..5d17fda 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -7,6 +7,7 @@