Commit 2ee3f5de by amateur

1

1 parent da6513e5
...@@ -12,12 +12,13 @@ android { ...@@ -12,12 +12,13 @@ android {
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 29 targetSdkVersion 29
versionCode 1 versionCode 1
versionName "1.0" versionName "2.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "String", "API_HOST", "\"http://10.10.81.189/nafmii/app/\"" buildConfigField "String", "API_HOST", "\"http://10.10.81.189/nafmii/app/\""
buildConfigField "String", "IMG_API", "\"http://10.10.81.172/group1/\"" buildConfigField "String", "IMG_API", "\"http://10.10.81.172/group1/\""
buildConfigField "String", "WX_APPID", "\"1234567890\"" buildConfigField "String", "WX_APPID", "\"1234567890\""
buildConfigField "String", "ONLINE_URL", "\"http://10.10.81.189/h5/\""
buildConfigField "boolean", "SHOW_INPUT", "true" buildConfigField "boolean", "SHOW_INPUT", "true"
ndk { ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips" abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
...@@ -57,6 +58,9 @@ android { ...@@ -57,6 +58,9 @@ android {
] ]
} }
productFlavors{
}
buildTypes { buildTypes {
release { release {
minifyEnabled true //是否混淆 minifyEnabled true //是否混淆
...@@ -71,8 +75,14 @@ android { ...@@ -71,8 +75,14 @@ android {
} }
uat { // 测试 uat { // 测试
minifyEnabled false
resValue "string", "app_name", "Nafmii-uat" resValue "string", "app_name", "Nafmii-uat"
applicationIdSuffix "uat" applicationIdSuffix "uat"
buildConfigField "String", "API_HOST", "\"http://10.10.34.155/nafmii/app/\""
buildConfigField "String", "IMG_API", "\"http://10.10.34.155/file/\""
buildConfigField "String", "ONLINE_URL", "\"http://10.10.34.155/h5/\""
debuggable true
signingConfig signingConfigs.debug
} }
debug { debug {
minifyEnabled false minifyEnabled false
...@@ -91,6 +101,12 @@ android { ...@@ -91,6 +101,12 @@ android {
keyPassword 'whaty123' keyPassword 'whaty123'
keyAlias 'whaty' keyAlias 'whaty'
} }
uat {
storeFile file('D:\\studio-workspace\\nafmii\\nafmii.keystore')
keyAlias 'whaty'
storePassword 'whaty123'
keyPassword 'whaty123'
}
} }
ndkVersion '20.0.5594570' ndkVersion '20.0.5594570'
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<uses-permission android:name="android.permission.GET_TASKS" /> <uses-permission android:name="android.permission.GET_TASKS" />
<application <application
android:name=".MyApplication" android:name="com.whaty.nafmii.MyApplication"
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/app_logo" android:icon="@mipmap/app_logo"
android:label="@string/app_name" android:label="@string/app_name"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Nafmii.Fullscreen" android:theme="@style/Nafmii.Fullscreen"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true">
<activity android:name=".activity.JPushTestActivity"></activity> <activity android:name="com.whaty.nafmii.activity.JPushTestActivity"></activity>
<meta-data <meta-data
android:name="design_width_in_dp" android:name="design_width_in_dp"
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
android:value="750" /> android:value="750" />
<activity <activity
android:name=".activity.MainActivity" android:name="com.whaty.nafmii.activity.MainActivity"
android:theme="@style/Nafmii.Fullscreen.NoTitleBar.Main"> android:theme="@style/Nafmii.Fullscreen.NoTitleBar.Main">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
...@@ -58,19 +58,19 @@ ...@@ -58,19 +58,19 @@
android:scheme="nafmii" /> android:scheme="nafmii" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".activity.BaseActivity" /> <activity android:name="com.whaty.nafmii.activity.BaseActivity" />
<activity android:name=".activity.WebviewActivity" /> <activity android:name="com.whaty.nafmii.activity.WebviewActivity" />
<activity <activity
android:name=".activity.HomeActivity" android:name="com.whaty.nafmii.activity.HomeActivity"
android:theme="@style/Nafmii.Fullscreen.NoTitleBar" /> android:theme="@style/Nafmii.Fullscreen.NoTitleBar" />
<activity <activity
android:name=".activity.OutsideWebviewActivity" android:name="com.whaty.nafmii.activity.OutsideWebviewActivity"
android:theme="@style/Nafmii.Fullscreen.NoTitleBar" /> android:theme="@style/Nafmii.Fullscreen.NoTitleBar" />
<activity android:name=".activity.InputUrlActivity" /> <activity android:name="com.whaty.nafmii.activity.InputUrlActivity" />
<activity <activity
android:name=".activity.TestHomeActivity" android:name="com.whaty.nafmii.activity.TestHomeActivity"
android:theme="@style/Nafmii.Fullscreen.NoTitleBar" /> android:theme="@style/Nafmii.Fullscreen.NoTitleBar" />
<activity android:name=".activity.AdvertisementWebviewActvity" /> <activity android:name="com.whaty.nafmii.activity.AdvertisementWebviewActvity" />
<service <service
android:name="com.tencent.smtt.export.external.DexClassLoaderProviderService" android:name="com.tencent.smtt.export.external.DexClassLoaderProviderService"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!