update风格化打包

This commit is contained in:
zlzw 2024-08-20 15:18:54 +08:00
parent 7196ebd16e
commit 2d9e1cd685
5 changed files with 21 additions and 6 deletions

View File

@ -178,10 +178,10 @@
<meta-data <meta-data
android:name="com.facebook.sdk.ApplicationId" android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" /> android:value="${facebook_app_id}" />
<meta-data <meta-data
android:name="com.facebook.sdk.ClientToken" android:name="com.facebook.sdk.ClientToken"
android:value="@string/facebook_client_token" /> android:value="${facebook_client_token}" />
<meta-data <meta-data
android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
android:value="false" /> android:value="false" />
@ -191,6 +191,9 @@
<meta-data <meta-data
android:name="firebase_analytics_collection_enabled" android:name="firebase_analytics_collection_enabled"
android:value="false" /> android:value="false" />
<meta-data
android:name="channelId"
android:value="${channelId}" />
<receiver <receiver
android:name="com.shayu.phonelive.utils.CustomMessageReceiver" android:name="com.shayu.phonelive.utils.CustomMessageReceiver"

View File

@ -39,7 +39,7 @@ public class CommonAppConfig {
public static final boolean IS_PLUGIN_MODEL = getMetaDataBoolean("IS_PLUGIN_MODEL"); public static final boolean IS_PLUGIN_MODEL = getMetaDataBoolean("IS_PLUGIN_MODEL");
public static final String BUILD_TIME = getMetaDataString("BUILD_TIME"); public static final String BUILD_TIME = getMetaDataString("BUILD_TIME");
public static final boolean IS_SW_RELEASE = getMetaDataBoolean("SW_RELEASE_MODEL"); public static final boolean IS_SW_RELEASE = getMetaDataBoolean("SW_RELEASE_MODEL");
public static final String LINE_CHANNEL_ID = getMetaDataString("channelId");
//外部sd卡 //外部sd卡
public static final String DCMI_PATH = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath(); public static final String DCMI_PATH = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath();
//内部存储 /data/data/<application package>/files目录 //内部存储 /data/data/<application package>/files目录

View File

@ -30,5 +30,8 @@ ext {
isUploadLog : true, isUploadLog : true,
// //
isPluginModel : false, isPluginModel : false,
facebook_app_id : "2011402032399020",
facebook_client_token : "959584e054a33614996361f0044e5253",
channelId : "1656399535"
] ]
} }

View File

@ -441,7 +441,7 @@ public class EntryActivity extends AppCompatActivity {
} else if (loginType == 4) { } else if (loginType == 4) {
try { try {
// App-to-app login // App-to-app login
Intent loginIntent = LineLoginApi.getLoginIntent(findViewById(R.id.btn_line).getContext(), "1656399535", new LineAuthenticationParams.Builder().scopes(Arrays.asList(Scope.PROFILE)) Intent loginIntent = LineLoginApi.getLoginIntent(findViewById(R.id.btn_line).getContext(), CommonAppConfig.LINE_CHANNEL_ID, new LineAuthenticationParams.Builder().scopes(Arrays.asList(Scope.PROFILE))
// .nonce("<a randomly-generated string>") // nonce can be used to improve security // .nonce("<a randomly-generated string>") // nonce can be used to improve security
.build()); .build());
startActivityForResult(loginIntent, 1001); startActivityForResult(loginIntent, 1001);

View File

@ -46,11 +46,17 @@ android {
} }
google_test { google_test {
dimension 'packageApk' dimension 'packageApk'
if (project.getPluginManager().hasPlugin("com.android.application")) {
applicationId "com.test.pd"
}
manifestPlaceholders = [ manifestPlaceholders = [
serverHost : rootProject.ext.manifestPlaceholders.testServerHost, serverHost : rootProject.ext.manifestPlaceholders.testServerHost,
isGooglePlay : 1, isGooglePlay : 1,
isUploadLog : true, isUploadLog : true,
isPluginModel: rootProject.ext.manifestPlaceholders.isPluginModel isPluginModel: rootProject.ext.manifestPlaceholders.isPluginModel,
facebook_app_id : "999999999",
facebook_client_token : "888888888",
channelId : "google"
] ]
} }
google_online { google_online {
@ -62,7 +68,10 @@ android {
serverHost : rootProject.ext.manifestPlaceholders.serverHost, serverHost : rootProject.ext.manifestPlaceholders.serverHost,
isGooglePlay : 1, isGooglePlay : 1,
isUploadLog : true, isUploadLog : true,
isPluginModel: rootProject.ext.manifestPlaceholders.isPluginModel isPluginModel: rootProject.ext.manifestPlaceholders.isPluginModel,
facebook_app_id : "999999999",
facebook_client_token : "888888888",
channelId : "google"
] ]
} }
huawei_test { huawei_test {