From 0c6e2b1a98e13cceac87c8e68167b912e4e6e3cb Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 15:07:07 +0900 Subject: [PATCH 01/45] =?UTF-8?q?setting=E3=83=A2=E3=82=B8=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/setting/.gitignore | 1 + feature/setting/build.gradle | 35 +++++++++++++++++++ feature/setting/consumer-rules.pro | 0 feature/setting/proguard-rules.pro | 21 +++++++++++ .../setting/ExampleInstrumentedTest.java | 26 ++++++++++++++ feature/setting/src/main/AndroidManifest.xml | 4 +++ .../nem/lacerta/setting/ExampleUnitTest.java | 17 +++++++++ settings.gradle | 1 + 8 files changed, 105 insertions(+) create mode 100644 feature/setting/.gitignore create mode 100644 feature/setting/build.gradle create mode 100644 feature/setting/consumer-rules.pro create mode 100644 feature/setting/proguard-rules.pro create mode 100644 feature/setting/src/androidTest/java/one/nem/lacerta/setting/ExampleInstrumentedTest.java create mode 100644 feature/setting/src/main/AndroidManifest.xml create mode 100644 feature/setting/src/test/java/one/nem/lacerta/setting/ExampleUnitTest.java diff --git a/feature/setting/.gitignore b/feature/setting/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/feature/setting/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/feature/setting/build.gradle b/feature/setting/build.gradle new file mode 100644 index 00000000..4f9243ec --- /dev/null +++ b/feature/setting/build.gradle @@ -0,0 +1,35 @@ +plugins { + alias(libs.plugins.com.android.library) +} + +android { + namespace 'one.nem.lacerta.setting' + compileSdk 34 + + defaultConfig { + minSdk 26 + + 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 + } +} + +dependencies { + + implementation libs.androidx.appcompat + implementation libs.com.google.android.material + testImplementation libs.junit + androidTestImplementation libs.androidx.test.ext.junit + androidTestImplementation libs.androidx.test.espresso.core +} \ No newline at end of file diff --git a/feature/setting/consumer-rules.pro b/feature/setting/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/feature/setting/proguard-rules.pro b/feature/setting/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/feature/setting/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/feature/setting/src/androidTest/java/one/nem/lacerta/setting/ExampleInstrumentedTest.java b/feature/setting/src/androidTest/java/one/nem/lacerta/setting/ExampleInstrumentedTest.java new file mode 100644 index 00000000..4a0c76da --- /dev/null +++ b/feature/setting/src/androidTest/java/one/nem/lacerta/setting/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package one.nem.lacerta.setting; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("one.nem.lacerta.setting.test", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/feature/setting/src/main/AndroidManifest.xml b/feature/setting/src/main/AndroidManifest.xml new file mode 100644 index 00000000..a5918e68 --- /dev/null +++ b/feature/setting/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/feature/setting/src/test/java/one/nem/lacerta/setting/ExampleUnitTest.java b/feature/setting/src/test/java/one/nem/lacerta/setting/ExampleUnitTest.java new file mode 100644 index 00000000..c63fa0c7 --- /dev/null +++ b/feature/setting/src/test/java/one/nem/lacerta/setting/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package one.nem.lacerta.setting; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 0cc88262..c1389035 100644 --- a/settings.gradle +++ b/settings.gradle @@ -31,3 +31,4 @@ include ':model' include ':processor' include ':shared:ui' include ':vcs' +include ':feature:setting' From 03a75a5b2952d3655a058b36c5828bc8ffe9c258 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 15:07:45 +0900 Subject: [PATCH 02/45] =?UTF-8?q?=E4=BE=9D=E5=AD=98=E9=96=A2=E4=BF=82?= =?UTF-8?q?=E3=81=AB=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle b/app/build.gradle index 2c60aa7f..300174c9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -74,6 +74,7 @@ dependencies { implementation project(':feature:library') implementation project(':feature:scan') implementation project(':feature:debug') // デバッグメニュー + implementation project(':feature:setting') // 設定画面 implementation project(':data') implementation project(':shared:ui') From 097adebd9b2492edc4b9ff13ea6eda039f7fb207 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 15:07:51 +0900 Subject: [PATCH 03/45] .idea --- .idea/gradle.xml | 2 +- .idea/misc.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index b9fda1d9..41a27e7b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,7 +4,6 @@