feat: 新增多个模块的基础配置和资源文件
This commit is contained in:
@@ -3,7 +3,7 @@ plugins {
|
||||
id 'com.google.gms.google-services'
|
||||
}
|
||||
|
||||
def appOutPutName = "1xsgdsdgsdlgfsdgdflgdfh"
|
||||
def appOutPutName = "1xsands"
|
||||
|
||||
android {
|
||||
namespace rootProject.ext.namespace
|
||||
@@ -11,31 +11,26 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 24
|
||||
targetSdk 36
|
||||
versionCode 141
|
||||
versionName "v1.4.1"
|
||||
versionCode rootProject.ext.versionCode
|
||||
versionName rootProject.ext.versionName
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
//包名
|
||||
applicationId "com.xyz.xsgd1"
|
||||
applicationId "com.sdhuaidgai.xsands"
|
||||
|
||||
//app大背景色
|
||||
resValue('color', 'windows_color', '#400e15')
|
||||
resValue('color', 'windows_color', '#1A1A1A')
|
||||
//底部导航栏颜色 大背景颜色为 windows_color——style_color的上下渐变色
|
||||
resValue('color', 'style_color', '#121212')
|
||||
resValue('color', 'style_color', '#1A1A1A')
|
||||
//app 名字
|
||||
resValue('string', 'app_name', '1XSGD')
|
||||
//预埋订阅网址
|
||||
buildConfigField "String", "BASE_URL", "\"https://1xsgd.org/\""
|
||||
//后台唯一ID
|
||||
buildConfigField "int", "USERID", "255"
|
||||
//状态栏文字颜色是否为白色
|
||||
buildConfigField "boolean", "IS_WHITE", "true"
|
||||
//是否强转启动图为圆形
|
||||
buildConfigField "boolean", "IS_ROUND", "false"
|
||||
//IS_ROUND 为 true时 圆角启动logo的 圆角大小 为0 表示为圆形 否则为ROUND_RADIUS的 dp2px的 数字大小
|
||||
buildConfigField "int", "ROUND_RADIUS", "0"
|
||||
//已废弃
|
||||
resValue('string', 'app_name', '1xsands')
|
||||
|
||||
|
||||
buildConfigField "String", "BASE_URL", "\"https://live22x.com/\""
|
||||
buildConfigField "int", "USERID", "268"
|
||||
buildConfigField "boolean", "IS_WHITE", "false"
|
||||
buildConfigField "boolean", "IS_ROUND", "true"
|
||||
buildConfigField "int", "ROUND_RADIUS", "10"
|
||||
buildConfigField "boolean", "HAS_CONTACT", "false"
|
||||
//已废弃
|
||||
buildConfigField "boolean", "HAS_HOOK", "false"
|
||||
|
||||
}
|
||||
@@ -45,16 +40,16 @@ android {
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
storeFile file('justlet.jks')
|
||||
storePassword "123456"
|
||||
storeFile file('telur33.jks')
|
||||
storePassword "android2014"
|
||||
keyAlias 'key0'
|
||||
keyPassword "123456"
|
||||
keyPassword "android2014"
|
||||
}
|
||||
release {
|
||||
storeFile file('justlet.jks')
|
||||
storePassword "123456"
|
||||
storeFile file('telur33.jks')
|
||||
storePassword "android2014"
|
||||
keyAlias 'key0'
|
||||
keyPassword "123456"
|
||||
keyPassword "android2014"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "905177738214",
|
||||
"project_id": "xsgd-b0ad7",
|
||||
"storage_bucket": "xsgd-b0ad7.firebasestorage.app"
|
||||
"project_number": "871960963163",
|
||||
"project_id": "xsands-9e7b5",
|
||||
"storage_bucket": "xsands-9e7b5.firebasestorage.app"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:905177738214:android:c3252140ede0027bf70427",
|
||||
"mobilesdk_app_id": "1:871960963163:android:042d9c283a461f16d9b77e",
|
||||
"android_client_info": {
|
||||
"package_name": "com.xyz.xsgd1"
|
||||
"package_name": "com.sdhuaidgai.xsands"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyDdzd2lTSj86yRmSfW2l0c7Ud5cJpk9BXg"
|
||||
"current_key": "AIzaSyANloNVI2ExaUKeYXeGmetCI35w7-6CdzE"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- <uses-permission android:name="android.permission.READ_CONTACTS" />-->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
|
||||
<!-- 8.0+系统需要-->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<!--推送权限-->
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
@@ -18,7 +21,7 @@
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:roundIcon="@mipmap/app_logo"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppThemeStart"
|
||||
android:theme="@style/Theme.AppTheme"
|
||||
android:usesCleartextTraffic="true">
|
||||
|
||||
|
||||
@@ -26,7 +29,8 @@
|
||||
android:name=".IndexActivity"
|
||||
android:configChanges="orientation|keyboardHidden|screenSize"
|
||||
android:exported="true"
|
||||
android:hardwareAccelerated="true">
|
||||
android:hardwareAccelerated="true"
|
||||
android:theme="@style/AppThemeStart">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class IndexActivity extends MainActivity {
|
||||
setBackDrawables(R.drawable.big_bg);
|
||||
setImageView(BuildConfig.IS_ROUND,BuildConfig.ROUND_RADIUS);
|
||||
getWindow().getDecorView().setBackgroundResource(R.drawable.big_bg);
|
||||
activityMain2Binding.showTopV1.setImageResource(R.mipmap.start_logo);
|
||||
|
||||
//需要修改启动页logo在这里弄 一般启动页logo就是app_logo 没特殊要求 不要动
|
||||
}
|
||||
|
||||
@@ -76,5 +76,4 @@ public class IndexActivity extends MainActivity {
|
||||
//===========================以上是APP的配置信息 都写在 app_config.xml中==================================
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,5 @@
|
||||
android:angle="270"
|
||||
android:startColor="@color/windows_color"
|
||||
android:centerColor="@color/windows_color"
|
||||
|
||||
android:endColor="@color/style_color"/>
|
||||
</shape>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
BIN
1xsands/telur33.jks
Normal file
BIN
1xsands/telur33.jks
Normal file
Binary file not shown.
Reference in New Issue
Block a user