diff --git a/.gitignore b/.gitignore index 028aaa6..03194f5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ app/src/main/java/com/github/nacabaro/vbhelper/battle/Battle_Sprites_Reference/ app/src/main/assets/battle_sprites app/src/main/assets/extracted_audio -API-ACR122USAM-2.01.pdf \ No newline at end of file +API-ACR122USAM-2.01.pdf + +build/ diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 99c898f..08a4fa7 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -4,7 +4,7 @@ plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) alias(libs.plugins.kotlin.compose) - id("com.google.devtools.ksp") version "2.3.0" + id("com.google.devtools.ksp") version "2.3.2" id("com.google.protobuf") } diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml new file mode 100644 index 0000000..6887f93 --- /dev/null +++ b/app/lint-baseline.xml @@ -0,0 +1,1826 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/java/com/github/nacabaro/vbhelper/screens/scanScreen/ScanScreen.kt b/app/src/main/java/com/github/nacabaro/vbhelper/screens/scanScreen/ScanScreen.kt index 72fc520..fb7d272 100644 --- a/app/src/main/java/com/github/nacabaro/vbhelper/screens/scanScreen/ScanScreen.kt +++ b/app/src/main/java/com/github/nacabaro/vbhelper/screens/scanScreen/ScanScreen.kt @@ -9,6 +9,7 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.res.stringResource import androidx.compose.ui.tooling.preview.Preview import androidx.navigation.NavController import androidx.navigation.compose.rememberNavController @@ -88,15 +89,18 @@ fun ScanScreen( } ) } else { + val secretsNotInitialized = stringResource(id = R.string.scan_secrets_not_initialized) + val secretsNotImported = stringResource(id = R.string.scan_secrets_not_imported) + ChooseConnectOption( onClickRead = when { !launchedFromHomeScreen -> null else -> { { - if(secrets == null) { - Toast.makeText(context, context.getString(R.string.scan_secrets_not_initialized), Toast.LENGTH_SHORT).show() - } else if(secrets?.isMissingSecrets() == true) { - Toast.makeText(context, context.getString(R.string.scan_secrets_not_imported), Toast.LENGTH_SHORT).show() + if (secrets == null) { + Toast.makeText(context, secretsNotInitialized, Toast.LENGTH_SHORT).show() + } else if (secrets?.isMissingSecrets() == true) { + Toast.makeText(context, secretsNotImported, Toast.LENGTH_SHORT).show() } else { readingScreen = true // kicks off nfc adapter in DisposableEffect } @@ -107,10 +111,10 @@ fun ScanScreen( nfcCharacter == null -> null else -> { { - if(secrets == null) { - Toast.makeText(context, context.getString(R.string.scan_secrets_not_initialized), Toast.LENGTH_SHORT).show() - } else if(secrets?.isMissingSecrets() == true) { - Toast.makeText(context, context.getString(R.string.scan_secrets_not_imported), Toast.LENGTH_SHORT).show() + if (secrets == null) { + Toast.makeText(context, secretsNotInitialized, Toast.LENGTH_SHORT).show() + } else if (secrets?.isMissingSecrets() == true) { + Toast.makeText(context, secretsNotImported, Toast.LENGTH_SHORT).show() } else { writingScreen = true // kicks off nfc adapter in DisposableEffect } diff --git a/app/src/main/java/com/github/nacabhelper/screens/BattlesScreen.kt b/app/src/main/java/com/github/nacabhelper/screens/BattlesScreen.kt deleted file mode 100644 index 0519ecb..0000000 --- a/app/src/main/java/com/github/nacabhelper/screens/BattlesScreen.kt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 67db0c1..bfdd6c4 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -48,9 +48,6 @@ アドベンチャーミッション %1$d / %2$d のキャラクターを取得しました。 編集 - 編集 - 編集 - 編集 削除 フェーズ勝率 % スペシャルミッション @@ -92,7 +89,6 @@ オンラインバトル %1$d クレジットを獲得しました。 閉じる - 閉じる 図鑑 バイタルブレス本体を近くに置いて下さい。 キャンセル @@ -100,7 +96,6 @@ キャラクターアイコン 名前 リバースエンジニアリング - リバースエンジニアリング アプリケーション開発 " ファームウェアの解析を行い、開発をサポートしてくれました。" " vb-lib-nfc開発およびアプリの開発に協力して頂きました。" diff --git a/gradle.properties b/gradle.properties index 20e2a01..4540b75 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,4 +20,14 @@ kotlin.code.style=official # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true \ No newline at end of file +android.nonTransitiveRClass=true +android.defaults.buildfeatures.resvalues=true +android.sdk.defaultTargetSdkToCompileSdkIfUnset=false +android.enableAppCompileTimeRClass=false +android.usesSdkInManifest.disallowed=false +android.uniquePackageNames=false +android.dependency.useConstraints=true +android.r8.strictFullModeForKeepRules=false +android.r8.optimizedResourceShrinking=false +android.builtInKotlin=false +android.newDsl=false \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7e4875e..696b833 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,19 +1,19 @@ [versions] -agp = "8.13.2" -datastore = "1.2.0" -datastorePreferences = "1.2.0" -kotlin = "2.3.0" -coreKtx = "1.17.0" +agp = "9.2.1" +datastore = "1.2.1" +datastorePreferences = "1.2.1" +kotlin = "2.4.0" +coreKtx = "1.19.0" junit = "4.13.2" junitVersion = "1.3.0" espressoCore = "3.7.0" -lifecycleRuntimeKtx = "2.10.0" -activityCompose = "1.12.2" -composeBom = "2026.01.00" -material = "1.13.0" -navigationCompose = "2.9.6" -protobufGradlePlugin = "0.9.6" -protobufJavalite = "4.33.4" +lifecycleRuntimeKtx = "2.11.0" +activityCompose = "1.13.0" +composeBom = "2026.06.00" +material = "1.14.0" +navigationCompose = "2.9.8" +protobufGradlePlugin = "0.10.0" +protobufJavalite = "4.35.1" roomRuntime = "2.8.4" vbNfcReader = "0.2.0-SNAPSHOT" dimReader = "2.1.0" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2c9b214..ebefeb4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue Dec 24 10:55:57 UTC 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists