diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d771ec35a..8230bbf81 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,7 +2,10 @@ - + + android:src="@mipmap/ic_launcher" /> + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +package custom + +import com.android.build.gradle.internal.dsl.ProductFlavor +import custom.CustomApps.CustomApp +import org.gradle.api.NamedDomainObjectContainer +import java.text.SimpleDateFormat +import java.util.Date +import java.util.Locale + +object CustomApps { + val all = listOf( + CustomApp( + name = "customexample", + versionName = "2017-07", + url = "http://download.kiwix.org/zim/wikipedia_fr_test.zim", + enforcedLanguage = "en", + displayName = "Test Custom App" + ), + CustomApp( + name = "wikimed", + versionName = "2018-08", + url = "http://download.kiwix.org/zim/wikipedia_en_medicine_novid.zim", + enforcedLanguage = "en", + displayName = "Medical Wikipedia" + ) + ) + + data class CustomApp( + val name: String, + val versionName: String, + val versionCode: Int = Date().let { + SimpleDateFormat("YYDDD0", Locale.ROOT).format(it).toInt() + }, + val url: String, + val enforcedLanguage: String, + val displayName: String + ) +} +fun NamedDomainObjectContainer.create(customApps: List) { + customApps.forEach { customFlavor -> + create(customFlavor.name) { + versionName = customFlavor.versionName + versionCode = customFlavor.versionCode + applicationIdSuffix = ".kiwixcustom${customFlavor.name}" + buildConfigField("String", "ZIM_URL", "\"${customFlavor.url}\"") + buildConfigField("String", "ENFORCED_LANG", "\"${customFlavor.enforcedLanguage}\"") + configureStrings(customFlavor.displayName) + } + } +} + +fun ProductFlavor.configureStrings(appName: String) { + resValue("string", "app_name", appName) + resValue("string", "app_search_string", "Search $appName") +} diff --git a/core/src/main/AndroidManifest.xml b/core/src/main/AndroidManifest.xml index 238e0ae4f..864f0201e 100644 --- a/core/src/main/AndroidManifest.xml +++ b/core/src/main/AndroidManifest.xml @@ -19,9 +19,7 @@ + tools:src="@mipmap/ic_launcher_round" /> + + + + \ No newline at end of file diff --git a/core/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/core/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/core/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher.png b/core/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..becdbf2af Binary files /dev/null and b/core/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..9ca465aa4 Binary files /dev/null and b/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher_round.png b/core/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..d6810c7e7 Binary files /dev/null and b/core/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/core/src/main/res/mipmap-hdpi/kiwix_icon.png b/core/src/main/res/mipmap-hdpi/kiwix_icon.png deleted file mode 100644 index ce50e01ee..000000000 Binary files a/core/src/main/res/mipmap-hdpi/kiwix_icon.png and /dev/null differ diff --git a/core/src/main/res/mipmap-hdpi/kiwix_icon_round.png b/core/src/main/res/mipmap-hdpi/kiwix_icon_round.png deleted file mode 100644 index 2a4395bdc..000000000 Binary files a/core/src/main/res/mipmap-hdpi/kiwix_icon_round.png and /dev/null differ diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher.png b/core/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..eb37ddec8 Binary files /dev/null and b/core/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..003746dc5 Binary files /dev/null and b/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher_round.png b/core/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..4e84c2501 Binary files /dev/null and b/core/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/core/src/main/res/mipmap-mdpi/kiwix_icon.png b/core/src/main/res/mipmap-mdpi/kiwix_icon.png deleted file mode 100644 index b64d42144..000000000 Binary files a/core/src/main/res/mipmap-mdpi/kiwix_icon.png and /dev/null differ diff --git a/core/src/main/res/mipmap-mdpi/kiwix_icon_round.png b/core/src/main/res/mipmap-mdpi/kiwix_icon_round.png deleted file mode 100644 index 697d24e3f..000000000 Binary files a/core/src/main/res/mipmap-mdpi/kiwix_icon_round.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher.png b/core/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..3f72169c1 Binary files /dev/null and b/core/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..44765ca00 Binary files /dev/null and b/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/core/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..9af07929d Binary files /dev/null and b/core/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/core/src/main/res/mipmap-xhdpi/kiwix_icon.png b/core/src/main/res/mipmap-xhdpi/kiwix_icon.png deleted file mode 100644 index 7a68be90f..000000000 Binary files a/core/src/main/res/mipmap-xhdpi/kiwix_icon.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xhdpi/kiwix_icon_round.png b/core/src/main/res/mipmap-xhdpi/kiwix_icon_round.png deleted file mode 100644 index db2fa5ef0..000000000 Binary files a/core/src/main/res/mipmap-xhdpi/kiwix_icon_round.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..72e9a0ff9 Binary files /dev/null and b/core/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..134bbfc23 Binary files /dev/null and b/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..0e3a8b272 Binary files /dev/null and b/core/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/core/src/main/res/mipmap-xxhdpi/kiwix_icon.png b/core/src/main/res/mipmap-xxhdpi/kiwix_icon.png deleted file mode 100644 index 78b96d299..000000000 Binary files a/core/src/main/res/mipmap-xxhdpi/kiwix_icon.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xxhdpi/kiwix_icon_round.png b/core/src/main/res/mipmap-xxhdpi/kiwix_icon_round.png deleted file mode 100644 index aa92a1dfb..000000000 Binary files a/core/src/main/res/mipmap-xxhdpi/kiwix_icon_round.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..45e71f146 Binary files /dev/null and b/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..f8bdfe864 Binary files /dev/null and b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..748d7de8c Binary files /dev/null and b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/core/src/main/res/mipmap-xxxhdpi/kiwix_icon.png b/core/src/main/res/mipmap-xxxhdpi/kiwix_icon.png deleted file mode 100644 index 756af51fa..000000000 Binary files a/core/src/main/res/mipmap-xxxhdpi/kiwix_icon.png and /dev/null differ diff --git a/core/src/main/res/mipmap-xxxhdpi/kiwix_icon_round.png b/core/src/main/res/mipmap-xxxhdpi/kiwix_icon_round.png deleted file mode 100644 index 679483fda..000000000 Binary files a/core/src/main/res/mipmap-xxxhdpi/kiwix_icon_round.png and /dev/null differ diff --git a/core/src/main/res/values/ic_launcher_background.xml b/core/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 000000000..c5d5899fd --- /dev/null +++ b/core/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/custom/build.gradle.kts b/custom/build.gradle.kts index 4fad7dfa8..7e64b031d 100644 --- a/custom/build.gradle.kts +++ b/custom/build.gradle.kts @@ -1,13 +1,13 @@ import com.android.build.gradle.api.ApkVariantOutput import com.android.build.gradle.api.ApplicationVariant import com.android.build.gradle.internal.dsl.ProductFlavor +import custom.CustomApps +import custom.create import custom.createPublisher import custom.transactionWithCommit import plugin.KiwixConfigurationPlugin import java.net.URI import java.net.URL -import java.text.SimpleDateFormat -import java.util.Date plugins { android @@ -22,26 +22,13 @@ android { flavorDimensions("default") productFlavors { - create( - CustomFlavor( - flavorName = "customexample", - versionName = "2017-07", - url = "http://download.kiwix.org/zim/wikipedia_fr_test.zim", - enforcedLanguage = "en", - appName = "Test Custom App" - ), - CustomFlavor( - flavorName = "wikimed", - versionName = "2018-08", - url = "http://download.kiwix.org/zim/wikipedia_en_medicine_novid.zim", - enforcedLanguage = "en", - appName = "Medical Wikipedia" - ) - ) + create(CustomApps.all) + all { - val zimFile = File("$projectDir/src", "$name/$name.zim") - createDownloadTask(zimFile) - createPublishApkWithExpansionTask(name, zimFile, applicationVariants) + File("$projectDir/src", "$name/$name.zim").let { + createDownloadTask(it) + createPublishApkWithExpansionTask(it, applicationVariants) + } } } splits { @@ -49,51 +36,11 @@ android { isUniversalApk = false } } -} - -// apply(from = File("dynamic_flavors.gradle")) - -fun ProductFlavor.configureStrings(appName: String) { - resValue("string", "app_name", appName) - resValue("string", "app_search_string", "Search $appName") -} - -fun ProductFlavor.fetchUrl(): String { - val urlConnection = - URI.create(buildConfigFields["ZIM_URL"]!!.value.replace("\"", "")).toURL() - .openConnection() - urlConnection.connect() - urlConnection.getInputStream() - return urlConnection - .getHeaderField("Location") - ?.replace("https", "http") - ?: urlConnection.url.toString() -} - -fun NamedDomainObjectContainer.create(vararg customFlavors: CustomFlavor) { - customFlavors.forEach { customFlavor -> - create(customFlavor.flavorName) { - versionName = customFlavor.versionName - versionCode = customFlavor.versionCode - applicationIdSuffix = ".kiwixcustom${customFlavor.flavorName}" - buildConfigField("String", "ZIM_URL", "\"${customFlavor.url}\"") - buildConfigField("String", "ENFORCED_LANG", "\"${customFlavor.enforcedLanguage}\"") - configureStrings(customFlavor.appName) - } + lintOptions { + ignore("IconLocation") } } -data class CustomFlavor( - val flavorName: String, - val versionName: String, - val versionCode: Int = Date().let { - SimpleDateFormat("YYDDD0").format(it).toInt() - }, - val url: String, - val enforcedLanguage: String, - val appName: String -) - fun ProductFlavor.createDownloadTask(file: File): Task { return tasks.create("download${name.capitalize()}Zim") { group = "Downloading" @@ -108,30 +55,45 @@ fun ProductFlavor.createDownloadTask(file: File): Task { } } +fun ProductFlavor.fetchUrl(): String { + return URI.create(buildConfigFields["ZIM_URL"]!!.value.replace("\"", "")).toURL() + .openConnection() + .apply { + connect() + getInputStream() + }.let { + it.getHeaderField("Location")?.replace("https", "http") ?: it.url.toString() + } +} + fun ProductFlavor.createPublishApkWithExpansionTask( - flavorName: String, file: File, applicationVariants: DomainObjectSet ): Task { - return tasks.create("publish${flavorName.capitalize()}ReleaseApkWithExpansionFile") { + val capitalizedName = name.capitalize() + return tasks.create("publish${capitalizedName}ReleaseApkWithExpansionFile") { group = "publishing" - description = "Uploads ${flavorName.capitalize()} to the Play Console with an Expansion file" + description = "Uploads $capitalizedName to the Play Console with an Expansion file" doLast { val packageName = "org.kiwix$applicationIdSuffix" println("packageName $packageName") - val apkVariants = getApkVariants(applicationVariants, flavorName) createPublisher(File(rootDir, "google.json")) .transactionWithCommit(packageName) { - apkVariants.forEach(::uploadApk) - uploadExpansionTo(file, apkVariants[0]) - apkVariants.drop(1).forEach { - attachExpansionTo(apkVariants[0].versionCodeOverride, it) - } - addToTrackInDraft(apkVariants) + val variants = + applicationVariants.releaseVariantsFor(this@createPublishApkWithExpansionTask) + variants.forEach(::uploadApk) + uploadExpansionTo(file, variants[0]) + variants.drop(1).forEach { attachExpansionTo(variants[0].versionCodeOverride, it) } + addToTrackInDraft(variants) } } } } + +fun DomainObjectSet.releaseVariantsFor(productFlavor: ProductFlavor) = + find { it.name.equals("${productFlavor.name}Release", true) }!! + .outputs.filterIsInstance().sortedBy { it.versionCodeOverride } + afterEvaluate { tasks.filter { it.name.contains("ReleaseApkWithExpansionFile") }.forEach { val flavorName = @@ -140,8 +102,3 @@ afterEvaluate { it.dependsOn.add(tasks.getByName("assemble${flavorName}Release")) } } - -fun getApkVariants(applicationVariants: DomainObjectSet, flavorName: String) = - applicationVariants.find { - it.name.contains("release", true) && it.name.contains(flavorName, true) - }!!.outputs.filterIsInstance().sortedBy { it.versionCodeOverride } diff --git a/custom/lint-baseline.xml b/custom/lint-baseline.xml index 664d51e3d..f986247b7 100644 --- a/custom/lint-baseline.xml +++ b/custom/lint-baseline.xml @@ -1,5 +1,5 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + file="src\wikimed\res\drawable\kiwix_icon_with_title.png"/> diff --git a/custom/src/customexample/ic_launcher-web.png b/custom/src/customexample/ic_launcher-web.png new file mode 100644 index 000000000..ff3678afb Binary files /dev/null and b/custom/src/customexample/ic_launcher-web.png differ diff --git a/custom/src/customexample/info.json b/custom/src/customexample/info.json deleted file mode 100644 index f655e6716..000000000 --- a/custom/src/customexample/info.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "app_name": "Test Custom App", - "package": "org.kiwix.kiwixcustomexample", - "version_name": "2017-07", - "version_code": "1", - "zim_file": "kiwix.granbluefantasy_en_all_all.zim", - "zim_url": "http://download.kiwix.org/zim/other/granbluefantasy_en_all_nopic_2018-10.zim.meta4", - "embed_zim": false, - "ic_launcher": "icon.png", - "enforced_lang": "en" -} diff --git a/custom/src/customexample/res/drawable-hdpi/ic_kiwix_widget.png b/custom/src/customexample/res/drawable-hdpi/ic_kiwix_widget.png deleted file mode 100644 index 4bb39b031..000000000 Binary files a/custom/src/customexample/res/drawable-hdpi/ic_kiwix_widget.png and /dev/null differ diff --git a/custom/src/customexample/res/drawable-mdpi/ic_kiwix_widget.png b/custom/src/customexample/res/drawable-mdpi/ic_kiwix_widget.png deleted file mode 100644 index 52db221fb..000000000 Binary files a/custom/src/customexample/res/drawable-mdpi/ic_kiwix_widget.png and /dev/null differ diff --git a/custom/src/customexample/res/drawable-xhdpi/ic_kiwix_widget.png b/custom/src/customexample/res/drawable-xhdpi/ic_kiwix_widget.png deleted file mode 100644 index 1d0af7eb6..000000000 Binary files a/custom/src/customexample/res/drawable-xhdpi/ic_kiwix_widget.png and /dev/null differ diff --git a/custom/src/customexample/res/drawable-xxhdpi/ic_kiwix_widget.png b/custom/src/customexample/res/drawable-xxhdpi/ic_kiwix_widget.png deleted file mode 100644 index 247f892ad..000000000 Binary files a/custom/src/customexample/res/drawable-xxhdpi/ic_kiwix_widget.png and /dev/null differ diff --git a/custom/src/customexample/res/drawable-xxxhdpi/ic_kiwix_widget.png b/custom/src/customexample/res/drawable-xxxhdpi/ic_kiwix_widget.png deleted file mode 100644 index 6bf5fac5a..000000000 Binary files a/custom/src/customexample/res/drawable-xxxhdpi/ic_kiwix_widget.png and /dev/null differ diff --git a/custom/src/customexample/res/drawable/kiwix_icon_with_title.png b/custom/src/customexample/res/drawable/kiwix_icon_with_title.png index f9c9cc3d9..6949a3960 100644 Binary files a/custom/src/customexample/res/drawable/kiwix_icon_with_title.png and b/custom/src/customexample/res/drawable/kiwix_icon_with_title.png differ diff --git a/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher.xml b/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher_round.xml b/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/custom/src/customexample/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/custom/src/customexample/res/mipmap-hdpi/ic_launcher.png b/custom/src/customexample/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..8339e8c95 Binary files /dev/null and b/custom/src/customexample/res/mipmap-hdpi/ic_launcher.png differ diff --git a/custom/src/customexample/res/mipmap-hdpi/ic_launcher_foreground.png b/custom/src/customexample/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..41529f05b Binary files /dev/null and b/custom/src/customexample/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/custom/src/customexample/res/mipmap-hdpi/ic_launcher_round.png b/custom/src/customexample/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..10c10f380 Binary files /dev/null and b/custom/src/customexample/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/custom/src/customexample/res/mipmap-hdpi/kiwix_icon.png b/custom/src/customexample/res/mipmap-hdpi/kiwix_icon.png deleted file mode 100644 index 4bb39b031..000000000 Binary files a/custom/src/customexample/res/mipmap-hdpi/kiwix_icon.png and /dev/null differ diff --git a/custom/src/customexample/res/mipmap-mdpi/ic_launcher.png b/custom/src/customexample/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..466f1c63f Binary files /dev/null and b/custom/src/customexample/res/mipmap-mdpi/ic_launcher.png differ diff --git a/custom/src/customexample/res/mipmap-mdpi/ic_launcher_foreground.png b/custom/src/customexample/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..8eda9179d Binary files /dev/null and b/custom/src/customexample/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/custom/src/customexample/res/mipmap-mdpi/ic_launcher_round.png b/custom/src/customexample/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..1c0596564 Binary files /dev/null and b/custom/src/customexample/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/custom/src/customexample/res/mipmap-mdpi/kiwix_icon.png b/custom/src/customexample/res/mipmap-mdpi/kiwix_icon.png deleted file mode 100644 index 52db221fb..000000000 Binary files a/custom/src/customexample/res/mipmap-mdpi/kiwix_icon.png and /dev/null differ diff --git a/custom/src/customexample/res/mipmap-xhdpi/ic_launcher.png b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..9da64b6e8 Binary files /dev/null and b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_foreground.png b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..7b4cdd11a Binary files /dev/null and b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_round.png b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..348c8a1ca Binary files /dev/null and b/custom/src/customexample/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/custom/src/customexample/res/mipmap-xhdpi/kiwix_icon.png b/custom/src/customexample/res/mipmap-xhdpi/kiwix_icon.png deleted file mode 100644 index 1d0af7eb6..000000000 Binary files a/custom/src/customexample/res/mipmap-xhdpi/kiwix_icon.png and /dev/null differ diff --git a/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher.png b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..638523394 Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_foreground.png b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..7efd244e9 Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_round.png b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..361962a52 Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/custom/src/customexample/res/mipmap-xxhdpi/kiwix_icon.png b/custom/src/customexample/res/mipmap-xxhdpi/kiwix_icon.png deleted file mode 100644 index 247f892ad..000000000 Binary files a/custom/src/customexample/res/mipmap-xxhdpi/kiwix_icon.png and /dev/null differ diff --git a/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher.png b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..106c70c8b Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..e563706e6 Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_round.png b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..ab63e064e Binary files /dev/null and b/custom/src/customexample/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/custom/src/customexample/res/mipmap-xxxhdpi/kiwix_icon.png b/custom/src/customexample/res/mipmap-xxxhdpi/kiwix_icon.png deleted file mode 100644 index 6bf5fac5a..000000000 Binary files a/custom/src/customexample/res/mipmap-xxxhdpi/kiwix_icon.png and /dev/null differ diff --git a/custom/src/customexample/res/values/ic_launcher_background.xml b/custom/src/customexample/res/values/ic_launcher_background.xml new file mode 100644 index 000000000..c5d5899fd --- /dev/null +++ b/custom/src/customexample/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/custom/src/customexample/res/values/strings.xml b/custom/src/customexample/res/values/strings.xml deleted file mode 100644 index e315a7d2b..000000000 --- a/custom/src/customexample/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - Ray Charles - \ No newline at end of file diff --git a/custom/src/main/AndroidManifest.xml b/custom/src/main/AndroidManifest.xml index b984597e3..ecd329233 100644 --- a/custom/src/main/AndroidManifest.xml +++ b/custom/src/main/AndroidManifest.xml @@ -3,7 +3,10 @@ package="org.kiwix.kiwixmobile.custom"> - + + + + + \ No newline at end of file diff --git a/custom/src/wikimed/res/mipmap-anydpi-v26/ic_launcher_round.xml b/custom/src/wikimed/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 000000000..036d09bc5 --- /dev/null +++ b/custom/src/wikimed/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/custom/src/wikimed/res/mipmap-hdpi/ic_launcher.png b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..8339e8c95 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher.png differ diff --git a/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_foreground.png b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..41529f05b Binary files /dev/null and b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_round.png b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 000000000..10c10f380 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/custom/src/wikimed/res/mipmap-mdpi/ic_launcher.png b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..466f1c63f Binary files /dev/null and b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher.png differ diff --git a/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_foreground.png b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..8eda9179d Binary files /dev/null and b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_round.png b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 000000000..1c0596564 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher.png b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..9da64b6e8 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_foreground.png b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..7b4cdd11a Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_round.png b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 000000000..348c8a1ca Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher.png b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..638523394 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_foreground.png b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..7efd244e9 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_round.png b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..361962a52 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher.png b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..106c70c8b Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 000000000..e563706e6 Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_round.png b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 000000000..ab63e064e Binary files /dev/null and b/custom/src/wikimed/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/custom/src/wikimed/res/values/ic_launcher_background.xml b/custom/src/wikimed/res/values/ic_launcher_background.xml new file mode 100644 index 000000000..c5d5899fd --- /dev/null +++ b/custom/src/wikimed/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file