From 30f4a23494ca844b3cad462d23585a0919f495af Mon Sep 17 00:00:00 2001 From: devliber Date: Thu, 19 Aug 2021 20:15:51 +0300 Subject: [PATCH] Refactor to a completely new Android Java project * Create a new project in Android Studio 2020.3.1 * Import existing code * Fix Clipboard read access limitation in Android 10 * Create new adaptive launcher icon * Update copyright --- .gitignore | 148 ++---------------- .idea/.gitignore | 3 + .idea/.name | 1 + .idea/compiler.xml | 18 +-- .idea/copyright/profiles_settings.xml | 3 - .idea/dictionaries/LoneColor.xml | 8 - .idea/gradle.xml | 5 +- .idea/misc.xml | 42 +---- .idea/modules.xml | 9 -- .idea/runConfigurations.xml | 12 -- .idea/vcs.xml | 2 +- LICENSE | 2 +- app/.gitignore | 2 +- app/build.gradle | 35 +++-- app/proguard-rules.pro | 16 +- .../lonecolor/ApplicationTest.java | 13 -- .../lonecolor/ExampleInstrumentedTest.java | 26 +++ app/src/main/AndroidManifest.xml | 22 +-- app/src/main/ic_launcher-playstore.png | Bin 0 -> 63149 bytes .../lonecolor/LoneColorActivity.java | 11 +- .../utils/ColorClipboardParameter.java | 12 +- .../lonecolor/utils/ColorWallpaper.java | 4 +- .../lonecolor/utils/GoodRandomColor.java | 4 +- .../appgramming/lonecolor/utils/Utils.java | 4 +- .../main/res/drawable-hdpi/ic_launcher.png | Bin 2436 -> 0 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 1617 -> 0 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 3035 -> 0 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 4817 -> 0 bytes .../main/res/drawable-xxxhdpi/ic_launcher.png | Bin 5802 -> 0 bytes .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 5980 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 0 -> 7517 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5980 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 3595 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 0 -> 4656 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3595 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 8418 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 0 -> 10639 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 8418 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 13487 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 0 -> 17643 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 13487 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 19557 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 0 -> 26432 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 19557 bytes .../res/values/ic_launcher_background.xml | 4 + app/src/main/res/values/strings.xml | 4 +- app/src/main/res/values/styles.xml | 6 +- .../lonecolor/ExampleUnitTest.java | 17 ++ build.gradle | 14 +- gradle.properties | 19 +-- gradle/wrapper/gradle-wrapper.jar | Bin 49896 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 6 +- gradlew | 117 ++++++++------ gradlew.bat | 53 +++---- settings.gradle | 9 ++ 57 files changed, 275 insertions(+), 386 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name delete mode 100644 .idea/copyright/profiles_settings.xml delete mode 100644 .idea/dictionaries/LoneColor.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/runConfigurations.xml delete mode 100644 app/src/androidTest/java/com/appgramming/lonecolor/ApplicationTest.java create mode 100644 app/src/androidTest/java/com/appgramming/lonecolor/ExampleInstrumentedTest.java create mode 100644 app/src/main/ic_launcher-playstore.png delete mode 100644 app/src/main/res/drawable-hdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/values/ic_launcher_background.xml create mode 100644 app/src/test/java/com/appgramming/lonecolor/ExampleUnitTest.java diff --git a/.gitignore b/.gitignore index b494f2a..aa724b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,137 +1,15 @@ - -# Created by https://www.gitignore.io/api/android,intellij+iml,java,gradle - -### Android ### -# Built application files -*.apk -*.ap_ - -# Files for the ART/Dalvik VM -*.dex - -# Java class files -*.class - -# Generated files -bin/ -gen/ -out/ - -# Gradle files -.gradle/ -build/ - -# Local configuration file (sdk path, etc) -local.properties - -# Proguard folder generated by Eclipse -proguard/ - -# Log Files -*.log - -# Android Studio Navigation editor temp files -.navigation/ - -# Android Studio captures folder -captures/ - -# Intellij *.iml -.idea/workspace.xml -.idea/tasks.xml -.idea/libraries - -# Keystore files -*.jks - -# External native build folder generated in Android Studio 2.2 and later -.externalNativeBuild - -### Android Patch ### -gen-external-apklibs - - -### Intellij+iml ### -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff: - -# Sensitive or high-churn files: -.idea/dataSources/ -.idea/dataSources.ids -.idea/dataSources.xml -.idea/dataSources.local.xml -.idea/sqlDataSources.xml -.idea/dynamic.xml -.idea/uiDesigner.xml - -# Gradle: -.idea/gradle.xml - -# Mongo Explorer plugin: -.idea/mongoSettings.xml - -## File-based project format: -*.iws - -## Plugin-specific files: - -# IntelliJ -/out/ - -# mpeltonen/sbt-idea plugin -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties - -### Intellij+iml Patch ### -# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 - -modules.xml -.idea/misc.xml -*.ipr - - -### Java ### - -# BlueJ files -*.ctxt - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.ear - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - - -### Gradle ### .gradle -/build/ - -# Ignore Gradle GUI config -gradle-app.setting - -# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) -!gradle-wrapper.jar - -# Cache of project -.gradletasknamecache - -# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 -# gradle/wrapper/gradle-wrapper.properties - -# End of https://www.gitignore.io/api/android,intellij+iml,java,gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..cf47486 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +LoneColor \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 96cc43e..fb7f4a8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,22 +1,6 @@ - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/dictionaries/LoneColor.xml b/.idea/dictionaries/LoneColor.xml deleted file mode 100644 index 5587b9a..0000000 --- a/.idea/dictionaries/LoneColor.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - appgramming - lonecolor - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index fe72da5..526b4c2 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,11 +1,12 @@ +