feat(android): 添加多个新模块并更新系统栏适配逻辑
- 在settings.gradle中引入多个新模块,包括we88sg26、NEPSPIN88、2URUS等 - 更新各新模块build.gradle配置,修改应用ID、资源颜色、应用名、用户ID等信息 - 替换各新模块google-services.json配置,更新Firebase项目参数和API密钥 - 优化MainActivity、NotifyListActivity、WebViewActivity中的系统栏适配逻辑 - 引入WindowCompat和WindowInsetsControllerCompat支持,实现沉浸式状态栏和导航栏处理 - 通过applySystemBarInsets方法统一处理系统栏颜色和内边距,提高多版本兼容性 - 删除过时的enableEdgeToEdge方法,代码简化并提升可维护性 - 设置系统栏状态图标颜色亮度基于背景色亮度计算,提升视觉效果一致性
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
id 'com.google.gms.google-services'
|
||||
}
|
||||
|
||||
def appOutPutName = "goodpokies"
|
||||
def appOutPutName = "b88"
|
||||
|
||||
android {
|
||||
namespace rootProject.ext.namespace
|
||||
@@ -16,17 +16,17 @@ android {
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
//包名
|
||||
applicationId "com.xyz.auplayx"
|
||||
applicationId "com.shahd.b88"
|
||||
//app大背景色
|
||||
resValue('color', 'windows_color', '#F5EEFF')
|
||||
resValue('color', 'windows_color', '#000000')
|
||||
//底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
|
||||
resValue('color', 'style_color', '#451665')
|
||||
resValue('color', 'style_color', '#000000')
|
||||
//app 名字
|
||||
resValue('string', 'app_name', 'GOODPOKIES')
|
||||
resValue('string', 'app_name', 'B88')
|
||||
//预埋订阅网址
|
||||
buildConfigField "String", "BASE_URL", "\"https://auplayx.com/\""
|
||||
//后台唯一ID
|
||||
buildConfigField "int", "USERID", "260"
|
||||
buildConfigField "int", "USERID", "301"
|
||||
//状态栏文字颜色是否为白色
|
||||
buildConfigField "boolean", "IS_WHITE", "true"
|
||||
//是否强转启动图为圆形
|
||||
@@ -34,7 +34,7 @@ android {
|
||||
//IS_ROUND 为 true时 圆角启动logo的 圆角大小 为0 表示为圆形 否则为ROUND_RADIUS的 dp2px的 数字大小
|
||||
buildConfigField "int", "ROUND_RADIUS", "10"
|
||||
//已废弃
|
||||
buildConfigField "boolean", "HAS_CONTACT", "false"
|
||||
buildConfigField "boolean", "HAS_CONTACT", "true"
|
||||
//已废弃
|
||||
buildConfigField "boolean", "HAS_HOOK", "false"
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "29600900932",
|
||||
"project_id": "auplayx-edc11",
|
||||
"storage_bucket": "auplayx-edc11.firebasestorage.app"
|
||||
"project_number": "335717969099",
|
||||
"project_id": "b888-a8604",
|
||||
"storage_bucket": "b888-a8604.firebasestorage.app"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:29600900932:android:b2f388e2fde9d9dc6c1911",
|
||||
"mobilesdk_app_id": "1:335717969099:android:5f89a1044107b0fac4ff4e",
|
||||
"android_client_info": {
|
||||
"package_name": "com.xyz.auplayx"
|
||||
"package_name": "com.shahd.b88"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyDQwlzjVJiL6ONfgsRT7QOFF39qAW6Xnhk"
|
||||
"current_key": "AIzaSyCcV183IHFxsqHsH2sEAQhJsFmTgMod8ZY"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user