commit fef7ae80bc771aa158073a41b757f314c82186c3 Author: caoqianming Date: Thu Jul 16 14:18:22 2026 +0800 init: factory web 套壳 App(BxErp),含 WebView 优化 - WebView 加载 factory ERP(h5x)网页,原生 zxing 扫码回传 onScanResult - 修复权限被拒后白屏:页面加载不再依赖摄像头权限,扫码时按需申请 - URL 抽到 BuildConfig.WEB_URL(build.gradle.kts),换环境免改代码 - 安全收口:setWebContentsDebuggingEnabled 仅 debug;onPermissionRequest 只在持有摄像头权限时授予,不再无条件 grant 全部 - 沉浸式全屏抽成 hideSystemBars() 复用;补 WebView 生命周期 onPause/onResume/onDestroy 与返回键网页内后退 - 删除未用的 activity_main.xml 布局 Co-Authored-By: Claude Opus 4.8 (1M context) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39acd15 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +*.iml +.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 +# 构建产物,不入库 +/app/release +*.apk +*.aab 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/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b86273d --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..7b3006b --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..6d0ee1c --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..74dd639 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..21daefb --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,64 @@ +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.kotlin.android) + alias(libs.plugins.kotlin.compose) +} + +android { + namespace = "com.example.bxerp" + compileSdk = 34 + + defaultConfig { + applicationId = "com.example.bxerp" + minSdk = 24 + targetSdk = 34 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + + // ERP 网页地址,换环境改这里即可,无需改 Kotlin 代码 + buildConfigField("String", "WEB_URL", "\"http://192.168.130.2:2250/\"") + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + kotlinOptions { + jvmTarget = "11" + } + buildFeatures { + compose = true + buildConfig = true + } +} + +dependencies { + + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.androidx.activity.compose) + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.ui) + implementation(libs.androidx.ui.graphics) + implementation(libs.androidx.ui.tooling.preview) + implementation(libs.androidx.material3) + implementation("com.journeyapps:zxing-android-embedded:4.3.0") + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) + androidTestImplementation(platform(libs.androidx.compose.bom)) + androidTestImplementation(libs.androidx.ui.test.junit4) + debugImplementation(libs.androidx.ui.tooling) + debugImplementation(libs.androidx.ui.test.manifest) +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/app/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/app/src/androidTest/java/com/example/bxerp/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/bxerp/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..ddea5e6 --- /dev/null +++ b/app/src/androidTest/java/com/example/bxerp/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.bxerp + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.bxerp", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..7b76593 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html new file mode 100644 index 0000000..583f12a --- /dev/null +++ b/app/src/main/assets/index.html @@ -0,0 +1,26 @@ + + + + + + WebView 扫码 + + + +

扫描结果:

+ + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/bxerp/MainActivity.kt b/app/src/main/java/com/example/bxerp/MainActivity.kt new file mode 100644 index 0000000..abd8813 --- /dev/null +++ b/app/src/main/java/com/example/bxerp/MainActivity.kt @@ -0,0 +1,161 @@ +package com.example.bxerp + +import android.content.pm.ActivityInfo +import android.os.Build +import android.os.Bundle +import android.view.KeyEvent +import android.view.View +import android.view.WindowInsets +import android.webkit.WebSettings +import android.webkit.WebView +import android.webkit.WebViewClient +import android.Manifest +import android.app.Activity +import android.content.pm.PackageManager +import android.webkit.JavascriptInterface +import android.webkit.PermissionRequest +import android.webkit.WebChromeClient +import android.widget.Toast +import androidx.activity.ComponentActivity +import androidx.activity.result.contract.ActivityResultContracts +import androidx.core.content.ContextCompat +import com.journeyapps.barcodescanner.ScanContract +import com.journeyapps.barcodescanner.ScanOptions + + +class MainActivity : ComponentActivity() { + private lateinit var webView: WebView + + // 摄像头权限:仅用于扫码。拒绝也不影响网页加载,扫码时再提示 + private val requestPermissionLauncher = registerForActivityResult( + ActivityResultContracts.RequestPermission() + ) { isGranted -> + if (!isGranted) { + Toast.makeText(this, "未授予摄像头权限,扫码功能将不可用", Toast.LENGTH_LONG).show() + } + } + + private val barcodeLauncher = registerForActivityResult(ScanContract()) { result -> + val scannedData = result.contents ?: return@registerForActivityResult + runOnUiThread { + webView.evaluateJavascript("onScanResult('$scannedData')", null) + } + } + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE + hideSystemBars() + + // 网页不依赖摄像头,先加载页面保证任何情况下都不白屏 + initWebView() + + // 预申请摄像头权限,方便后续扫码;拒绝不阻塞页面 + if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) + != PackageManager.PERMISSION_GRANTED + ) { + requestPermissionLauncher.launch(Manifest.permission.CAMERA) + } + } + + inner class WebAppInterface(private val activity: Activity) { + + @JavascriptInterface + fun openScanner() { + runOnUiThread { + if (ContextCompat.checkSelfPermission(activity, Manifest.permission.CAMERA) + != PackageManager.PERMISSION_GRANTED + ) { + requestPermissionLauncher.launch(Manifest.permission.CAMERA) + return@runOnUiThread + } + val options = ScanOptions() + options.setPrompt("请扫描二维码") + options.setBeepEnabled(true) + options.setCaptureActivity(com.journeyapps.barcodescanner.CaptureActivity::class.java) + barcodeLauncher.launch(options) + } + } + } + + private fun initWebView() { + webView = WebView(this) + webView.webViewClient = WebViewClient() // 防止跳转到外部浏览器 + val webSettings: WebSettings = webView.settings + webSettings.javaScriptEnabled = true + webSettings.domStorageEnabled = true + webSettings.allowFileAccess = true + webSettings.allowContentAccess = true + webSettings.mediaPlaybackRequiresUserGesture = false // 允许自动播放 + webSettings.setGeolocationEnabled(true) // 如果需要地理位置 + webSettings.mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW + webView.setLayerType(View.LAYER_TYPE_HARDWARE, null) + + // 仅 debug 包开启远程调试,release 包关闭避免被 chrome://inspect 附加 + if (BuildConfig.DEBUG) { + WebView.setWebContentsDebuggingEnabled(true) + } + + webView.loadUrl(BuildConfig.WEB_URL) + webView.addJavascriptInterface(WebAppInterface(this), "Android") + + webView.webChromeClient = object : WebChromeClient() { + // 仅在已持有摄像头权限时,授予网页请求的摄像头能力,其余一律拒绝 + override fun onPermissionRequest(request: PermissionRequest) { + runOnUiThread { + val hasCamera = ContextCompat.checkSelfPermission( + this@MainActivity, Manifest.permission.CAMERA + ) == PackageManager.PERMISSION_GRANTED + val granted = request.resources.filter { + it == PermissionRequest.RESOURCE_VIDEO_CAPTURE && hasCamera + }.toTypedArray() + if (granted.isNotEmpty()) request.grant(granted) else request.deny() + } + } + } + setContentView(webView) + } + + private fun hideSystemBars() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { + // 使用 WindowInsetsController 来隐藏状态栏和导航栏 + window.insetsController?.hide( + WindowInsets.Type.statusBars() or WindowInsets.Type.navigationBars() + ) + } else { + // 兼容低于 Android 11 的设备,使用旧的 systemUiVisibility + @Suppress("DEPRECATION") + window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_FULLSCREEN or + View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or + View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) + } + } + + override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean { + // 返回键优先在网页内后退,而不是直接退出 App + if (keyCode == KeyEvent.KEYCODE_BACK && ::webView.isInitialized && webView.canGoBack()) { + webView.goBack() + return true + } + return super.onKeyDown(keyCode, event) + } + + override fun onResume() { + super.onResume() + hideSystemBars() + if (::webView.isInitialized) webView.onResume() + } + + override fun onPause() { + super.onPause() + if (::webView.isInitialized) webView.onPause() + } + + override fun onDestroy() { + if (::webView.isInitialized) { + webView.destroy() + } + super.onDestroy() + } +} diff --git a/app/src/main/java/com/example/bxerp/ui/theme/Color.kt b/app/src/main/java/com/example/bxerp/ui/theme/Color.kt new file mode 100644 index 0000000..f3935f5 --- /dev/null +++ b/app/src/main/java/com/example/bxerp/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.example.bxerp.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) \ No newline at end of file diff --git a/app/src/main/java/com/example/bxerp/ui/theme/Theme.kt b/app/src/main/java/com/example/bxerp/ui/theme/Theme.kt new file mode 100644 index 0000000..b765b51 --- /dev/null +++ b/app/src/main/java/com/example/bxerp/ui/theme/Theme.kt @@ -0,0 +1,58 @@ +package com.example.bxerp.ui.theme + +import android.app.Activity +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun BxErpTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/example/bxerp/ui/theme/Type.kt b/app/src/main/java/com/example/bxerp/ui/theme/Type.kt new file mode 100644 index 0000000..9eb8ed3 --- /dev/null +++ b/app/src/main/java/com/example/bxerp/ui/theme/Type.kt @@ -0,0 +1,34 @@ +package com.example.bxerp.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + /* Other default text styles to override + titleLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 22.sp, + lineHeight = 28.sp, + letterSpacing = 0.sp + ), + labelSmall = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Medium, + fontSize = 11.sp, + lineHeight = 16.sp, + letterSpacing = 0.5.sp + ) + */ +) \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/cnbm.jpg b/app/src/main/res/mipmap-hdpi/cnbm.jpg new file mode 100644 index 0000000..0f50b70 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/cnbm.jpg differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-mdpi/cnbm.jpg b/app/src/main/res/mipmap-mdpi/cnbm.jpg new file mode 100644 index 0000000..0f50b70 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/cnbm.jpg differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/cnbm.jpg b/app/src/main/res/mipmap-xhdpi/cnbm.jpg new file mode 100644 index 0000000..0f50b70 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/cnbm.jpg differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/cnbm.jpg b/app/src/main/res/mipmap-xxhdpi/cnbm.jpg new file mode 100644 index 0000000..0f50b70 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/cnbm.jpg differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/cnbm.jpg b/app/src/main/res/mipmap-xxxhdpi/cnbm.jpg new file mode 100644 index 0000000..0f50b70 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/cnbm.jpg differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..f8c6127 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..85e101e --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + 星途制造 + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..0ca2105 --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,5 @@ + + + +