From 108afb0842965da521f1071c92c139a46da27de9 Mon Sep 17 00:00:00 2001 From: Lucas Lima Date: Thu, 31 Dec 2020 13:16:16 -0300 Subject: [PATCH] Add i18n module --- common/build.gradle | 1 + i18n/.gitignore | 1 + i18n/build.gradle | 42 +++++++++++++++++++ i18n/consumer-rules.pro | 0 i18n/proguard-rules.pro | 21 ++++++++++ i18n/src/main/AndroidManifest.xml | 2 + .../src/main/res/values-af-rZA/strings.xml | 0 .../src/main/res/values-ar-rSA/strings.xml | 0 .../src/main/res/values-bg-rBG/strings.xml | 0 .../src/main/res/values-ca-rES/strings.xml | 0 .../src/main/res/values-cs-rCZ/strings.xml | 0 .../src/main/res/values-da-rDK/strings.xml | 0 .../src/main/res/values-de-rDE/strings.xml | 0 .../src/main/res/values-el-rGR/strings.xml | 0 .../src/main/res/values-en-rUS/strings.xml | 0 .../src/main/res/values-es-rES/strings.xml | 0 .../src/main/res/values-fi-rFI/strings.xml | 0 .../src/main/res/values-fr-rFR/strings.xml | 0 .../src/main/res/values-hi-rIN/strings.xml | 0 .../src/main/res/values-hu-rHU/strings.xml | 0 .../src/main/res/values-in-rID/strings.xml | 0 .../src/main/res/values-it-rIT/strings.xml | 0 .../src/main/res/values-iw-rIL/strings.xml | 0 .../src/main/res/values-ja-rJP/strings.xml | 0 .../src/main/res/values-ko-rKR/strings.xml | 0 .../src/main/res/values-nl-rNL/strings.xml | 0 .../src/main/res/values-no-rNO/strings.xml | 0 .../src/main/res/values-pl-rPL/strings.xml | 0 .../src/main/res/values-pt-rBR/strings.xml | 0 .../src/main/res/values-pt-rPT/strings.xml | 0 .../src/main/res/values-ro-rRO/strings.xml | 0 .../src/main/res/values-ru-rRU/strings.xml | 0 .../src/main/res/values-sv-rSE/strings.xml | 0 .../src/main/res/values-th-rTH/strings.xml | 0 .../src/main/res/values-tr-rTR/strings.xml | 0 .../src/main/res/values-uk-rUA/strings.xml | 0 .../src/main/res/values-vi-rVN/strings.xml | 0 .../src/main/res/values-zh-rCN/strings.xml | 0 .../src/main/res/values/strings.xml | 0 settings.gradle | 1 + 40 files changed, 68 insertions(+) create mode 100644 i18n/.gitignore create mode 100644 i18n/build.gradle create mode 100644 i18n/consumer-rules.pro create mode 100644 i18n/proguard-rules.pro create mode 100644 i18n/src/main/AndroidManifest.xml rename {common => i18n}/src/main/res/values-af-rZA/strings.xml (100%) rename {common => i18n}/src/main/res/values-ar-rSA/strings.xml (100%) rename {common => i18n}/src/main/res/values-bg-rBG/strings.xml (100%) rename {common => i18n}/src/main/res/values-ca-rES/strings.xml (100%) rename {common => i18n}/src/main/res/values-cs-rCZ/strings.xml (100%) rename {common => i18n}/src/main/res/values-da-rDK/strings.xml (100%) rename {common => i18n}/src/main/res/values-de-rDE/strings.xml (100%) rename {common => i18n}/src/main/res/values-el-rGR/strings.xml (100%) rename {common => i18n}/src/main/res/values-en-rUS/strings.xml (100%) rename {common => i18n}/src/main/res/values-es-rES/strings.xml (100%) rename {common => i18n}/src/main/res/values-fi-rFI/strings.xml (100%) rename {common => i18n}/src/main/res/values-fr-rFR/strings.xml (100%) rename {common => i18n}/src/main/res/values-hi-rIN/strings.xml (100%) rename {common => i18n}/src/main/res/values-hu-rHU/strings.xml (100%) rename {common => i18n}/src/main/res/values-in-rID/strings.xml (100%) rename {common => i18n}/src/main/res/values-it-rIT/strings.xml (100%) rename {common => i18n}/src/main/res/values-iw-rIL/strings.xml (100%) rename {common => i18n}/src/main/res/values-ja-rJP/strings.xml (100%) rename {common => i18n}/src/main/res/values-ko-rKR/strings.xml (100%) rename {common => i18n}/src/main/res/values-nl-rNL/strings.xml (100%) rename {common => i18n}/src/main/res/values-no-rNO/strings.xml (100%) rename {common => i18n}/src/main/res/values-pl-rPL/strings.xml (100%) rename {common => i18n}/src/main/res/values-pt-rBR/strings.xml (100%) rename {common => i18n}/src/main/res/values-pt-rPT/strings.xml (100%) rename {common => i18n}/src/main/res/values-ro-rRO/strings.xml (100%) rename {common => i18n}/src/main/res/values-ru-rRU/strings.xml (100%) rename {common => i18n}/src/main/res/values-sv-rSE/strings.xml (100%) rename {common => i18n}/src/main/res/values-th-rTH/strings.xml (100%) rename {common => i18n}/src/main/res/values-tr-rTR/strings.xml (100%) rename {common => i18n}/src/main/res/values-uk-rUA/strings.xml (100%) rename {common => i18n}/src/main/res/values-vi-rVN/strings.xml (100%) rename {common => i18n}/src/main/res/values-zh-rCN/strings.xml (100%) rename {common => i18n}/src/main/res/values/strings.xml (100%) diff --git a/common/build.gradle b/common/build.gradle index 197afc9f..40f24a1a 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -39,6 +39,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':external') + implementation project(':i18n') // AndroidX implementation 'androidx.appcompat:appcompat:1.2.0' diff --git a/i18n/.gitignore b/i18n/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/i18n/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/i18n/build.gradle b/i18n/build.gradle new file mode 100644 index 00000000..d7cae464 --- /dev/null +++ b/i18n/build.gradle @@ -0,0 +1,42 @@ +plugins { + id 'com.android.library' + id 'kotlin-android' +} + +android { + compileSdkVersion 30 + + defaultConfig { + minSdkVersion 21 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation 'androidx.core:core-ktx:1.3.2' + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.2.1' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' +} \ No newline at end of file diff --git a/i18n/consumer-rules.pro b/i18n/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/i18n/proguard-rules.pro b/i18n/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/i18n/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/i18n/src/main/AndroidManifest.xml b/i18n/src/main/AndroidManifest.xml new file mode 100644 index 00000000..1b75252f --- /dev/null +++ b/i18n/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/common/src/main/res/values-af-rZA/strings.xml b/i18n/src/main/res/values-af-rZA/strings.xml similarity index 100% rename from common/src/main/res/values-af-rZA/strings.xml rename to i18n/src/main/res/values-af-rZA/strings.xml diff --git a/common/src/main/res/values-ar-rSA/strings.xml b/i18n/src/main/res/values-ar-rSA/strings.xml similarity index 100% rename from common/src/main/res/values-ar-rSA/strings.xml rename to i18n/src/main/res/values-ar-rSA/strings.xml diff --git a/common/src/main/res/values-bg-rBG/strings.xml b/i18n/src/main/res/values-bg-rBG/strings.xml similarity index 100% rename from common/src/main/res/values-bg-rBG/strings.xml rename to i18n/src/main/res/values-bg-rBG/strings.xml diff --git a/common/src/main/res/values-ca-rES/strings.xml b/i18n/src/main/res/values-ca-rES/strings.xml similarity index 100% rename from common/src/main/res/values-ca-rES/strings.xml rename to i18n/src/main/res/values-ca-rES/strings.xml diff --git a/common/src/main/res/values-cs-rCZ/strings.xml b/i18n/src/main/res/values-cs-rCZ/strings.xml similarity index 100% rename from common/src/main/res/values-cs-rCZ/strings.xml rename to i18n/src/main/res/values-cs-rCZ/strings.xml diff --git a/common/src/main/res/values-da-rDK/strings.xml b/i18n/src/main/res/values-da-rDK/strings.xml similarity index 100% rename from common/src/main/res/values-da-rDK/strings.xml rename to i18n/src/main/res/values-da-rDK/strings.xml diff --git a/common/src/main/res/values-de-rDE/strings.xml b/i18n/src/main/res/values-de-rDE/strings.xml similarity index 100% rename from common/src/main/res/values-de-rDE/strings.xml rename to i18n/src/main/res/values-de-rDE/strings.xml diff --git a/common/src/main/res/values-el-rGR/strings.xml b/i18n/src/main/res/values-el-rGR/strings.xml similarity index 100% rename from common/src/main/res/values-el-rGR/strings.xml rename to i18n/src/main/res/values-el-rGR/strings.xml diff --git a/common/src/main/res/values-en-rUS/strings.xml b/i18n/src/main/res/values-en-rUS/strings.xml similarity index 100% rename from common/src/main/res/values-en-rUS/strings.xml rename to i18n/src/main/res/values-en-rUS/strings.xml diff --git a/common/src/main/res/values-es-rES/strings.xml b/i18n/src/main/res/values-es-rES/strings.xml similarity index 100% rename from common/src/main/res/values-es-rES/strings.xml rename to i18n/src/main/res/values-es-rES/strings.xml diff --git a/common/src/main/res/values-fi-rFI/strings.xml b/i18n/src/main/res/values-fi-rFI/strings.xml similarity index 100% rename from common/src/main/res/values-fi-rFI/strings.xml rename to i18n/src/main/res/values-fi-rFI/strings.xml diff --git a/common/src/main/res/values-fr-rFR/strings.xml b/i18n/src/main/res/values-fr-rFR/strings.xml similarity index 100% rename from common/src/main/res/values-fr-rFR/strings.xml rename to i18n/src/main/res/values-fr-rFR/strings.xml diff --git a/common/src/main/res/values-hi-rIN/strings.xml b/i18n/src/main/res/values-hi-rIN/strings.xml similarity index 100% rename from common/src/main/res/values-hi-rIN/strings.xml rename to i18n/src/main/res/values-hi-rIN/strings.xml diff --git a/common/src/main/res/values-hu-rHU/strings.xml b/i18n/src/main/res/values-hu-rHU/strings.xml similarity index 100% rename from common/src/main/res/values-hu-rHU/strings.xml rename to i18n/src/main/res/values-hu-rHU/strings.xml diff --git a/common/src/main/res/values-in-rID/strings.xml b/i18n/src/main/res/values-in-rID/strings.xml similarity index 100% rename from common/src/main/res/values-in-rID/strings.xml rename to i18n/src/main/res/values-in-rID/strings.xml diff --git a/common/src/main/res/values-it-rIT/strings.xml b/i18n/src/main/res/values-it-rIT/strings.xml similarity index 100% rename from common/src/main/res/values-it-rIT/strings.xml rename to i18n/src/main/res/values-it-rIT/strings.xml diff --git a/common/src/main/res/values-iw-rIL/strings.xml b/i18n/src/main/res/values-iw-rIL/strings.xml similarity index 100% rename from common/src/main/res/values-iw-rIL/strings.xml rename to i18n/src/main/res/values-iw-rIL/strings.xml diff --git a/common/src/main/res/values-ja-rJP/strings.xml b/i18n/src/main/res/values-ja-rJP/strings.xml similarity index 100% rename from common/src/main/res/values-ja-rJP/strings.xml rename to i18n/src/main/res/values-ja-rJP/strings.xml diff --git a/common/src/main/res/values-ko-rKR/strings.xml b/i18n/src/main/res/values-ko-rKR/strings.xml similarity index 100% rename from common/src/main/res/values-ko-rKR/strings.xml rename to i18n/src/main/res/values-ko-rKR/strings.xml diff --git a/common/src/main/res/values-nl-rNL/strings.xml b/i18n/src/main/res/values-nl-rNL/strings.xml similarity index 100% rename from common/src/main/res/values-nl-rNL/strings.xml rename to i18n/src/main/res/values-nl-rNL/strings.xml diff --git a/common/src/main/res/values-no-rNO/strings.xml b/i18n/src/main/res/values-no-rNO/strings.xml similarity index 100% rename from common/src/main/res/values-no-rNO/strings.xml rename to i18n/src/main/res/values-no-rNO/strings.xml diff --git a/common/src/main/res/values-pl-rPL/strings.xml b/i18n/src/main/res/values-pl-rPL/strings.xml similarity index 100% rename from common/src/main/res/values-pl-rPL/strings.xml rename to i18n/src/main/res/values-pl-rPL/strings.xml diff --git a/common/src/main/res/values-pt-rBR/strings.xml b/i18n/src/main/res/values-pt-rBR/strings.xml similarity index 100% rename from common/src/main/res/values-pt-rBR/strings.xml rename to i18n/src/main/res/values-pt-rBR/strings.xml diff --git a/common/src/main/res/values-pt-rPT/strings.xml b/i18n/src/main/res/values-pt-rPT/strings.xml similarity index 100% rename from common/src/main/res/values-pt-rPT/strings.xml rename to i18n/src/main/res/values-pt-rPT/strings.xml diff --git a/common/src/main/res/values-ro-rRO/strings.xml b/i18n/src/main/res/values-ro-rRO/strings.xml similarity index 100% rename from common/src/main/res/values-ro-rRO/strings.xml rename to i18n/src/main/res/values-ro-rRO/strings.xml diff --git a/common/src/main/res/values-ru-rRU/strings.xml b/i18n/src/main/res/values-ru-rRU/strings.xml similarity index 100% rename from common/src/main/res/values-ru-rRU/strings.xml rename to i18n/src/main/res/values-ru-rRU/strings.xml diff --git a/common/src/main/res/values-sv-rSE/strings.xml b/i18n/src/main/res/values-sv-rSE/strings.xml similarity index 100% rename from common/src/main/res/values-sv-rSE/strings.xml rename to i18n/src/main/res/values-sv-rSE/strings.xml diff --git a/common/src/main/res/values-th-rTH/strings.xml b/i18n/src/main/res/values-th-rTH/strings.xml similarity index 100% rename from common/src/main/res/values-th-rTH/strings.xml rename to i18n/src/main/res/values-th-rTH/strings.xml diff --git a/common/src/main/res/values-tr-rTR/strings.xml b/i18n/src/main/res/values-tr-rTR/strings.xml similarity index 100% rename from common/src/main/res/values-tr-rTR/strings.xml rename to i18n/src/main/res/values-tr-rTR/strings.xml diff --git a/common/src/main/res/values-uk-rUA/strings.xml b/i18n/src/main/res/values-uk-rUA/strings.xml similarity index 100% rename from common/src/main/res/values-uk-rUA/strings.xml rename to i18n/src/main/res/values-uk-rUA/strings.xml diff --git a/common/src/main/res/values-vi-rVN/strings.xml b/i18n/src/main/res/values-vi-rVN/strings.xml similarity index 100% rename from common/src/main/res/values-vi-rVN/strings.xml rename to i18n/src/main/res/values-vi-rVN/strings.xml diff --git a/common/src/main/res/values-zh-rCN/strings.xml b/i18n/src/main/res/values-zh-rCN/strings.xml similarity index 100% rename from common/src/main/res/values-zh-rCN/strings.xml rename to i18n/src/main/res/values-zh-rCN/strings.xml diff --git a/common/src/main/res/values/strings.xml b/i18n/src/main/res/values/strings.xml similarity index 100% rename from common/src/main/res/values/strings.xml rename to i18n/src/main/res/values/strings.xml diff --git a/settings.gradle b/settings.gradle index 6a5cce72..d7d5d48a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ include ':app', ':wear', ':common', ':proprietary', ':foss' include ':external' include ':instant' +include ':i18n'