Commit 13c658dd authored by 王雪伟's avatar 王雪伟

加入Android umeng配置

parent fbe72d25
...@@ -20,11 +20,14 @@ ...@@ -20,11 +20,14 @@
android:name="com.bytedance.android.UnionApplication" android:name="com.bytedance.android.UnionApplication"
android:icon="@drawable/app_icon" android:icon="@drawable/app_icon"
android:label="@string/app_name" android:label="@string/app_name"
android:hardwareAccelerated="true"
android:allowBackup="true" android:allowBackup="true"
android:supportsRtl="true"> android:supportsRtl="true">
<uses-library android:name="org.apache.http.legacy" android:required="false"/> <uses-library android:name="org.apache.http.legacy" android:required="false"/>
<activity android:name="com.unity3d.player.UnityPlayerActivity" <activity android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name" android:label="@string/app_name"
android:launchMode="standard"
android:hardwareAccelerated="true"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
...@@ -38,10 +41,13 @@ ...@@ -38,10 +41,13 @@
android:value="yanmao" /> android:value="yanmao" />
<!-- 微信配置 --> <!-- 微信配置 -->
<activity <activity
android:name="com.ym.wdcy.wxapi.WXEntryActivity" android:name="com.ym.chxxx.wxapi.WXEntryActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTop"> android:launchMode="singleTop"/>
</activity> <!-- 友盟配置 -->
<meta-data
android:name="UMENG_CHANNEL"
android:value="${UMENG_CHANNEL_VALUE}" />
<!-- WebView --> <!-- WebView -->
<activity <activity
android:name="com.ym.unityandroid.webview.UnityWebActivity" android:name="com.ym.unityandroid.webview.UnityWebActivity"
...@@ -53,7 +59,6 @@ ...@@ -53,7 +59,6 @@
</intent-filter> </intent-filter>
</activity> </activity>
<!-- WebView --> <!-- WebView -->
<provider <provider
android:name="com.bytedance.sdk.openadsdk.TTFileProvider" android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
android:authorities="${applicationId}.TTFileProvider" android:authorities="${applicationId}.TTFileProvider"
...@@ -67,6 +72,5 @@ ...@@ -67,6 +72,5 @@
android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider" android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities="${applicationId}.TTMultiProvider" android:authorities="${applicationId}.TTMultiProvider"
android:exported="false" /> android:exported="false" />
</application> </application>
</manifest> </manifest>
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
apply plugin: 'com.android.application'
dependencies {
implementation project(':unityLibrary')
}
android {
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
productFlavors {
toutiao{}
guanwang {}
_360 {}
xiaomi {}
vivo {}
huawei {}
baidu {}
oppo {}
meizu {}
yyb {}
sougou {}
hykb{}
kuaishou{}
_233 {}
}
productFlavors.all {
flavor ->
flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
applicationId '**APPLICATIONID**'
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
flavorDimensions "1"
}
aaptOptions {
noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
}**SIGN**
lintOptions {
abortOnError false
}
buildTypes {
debug {
minifyEnabled **MINIFY_DEBUG**
useProguard **PROGUARD_DEBUG**
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
jniDebuggable true
}
release {
minifyEnabled **MINIFY_RELEASE**
useProguard **PROGUARD_RELEASE**
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
}
}**PACKAGING_OPTIONS****SPLITS**
**BUILT_APK_LOCATION**
bundle {
language {
enableSplit = false
}
density {
enableSplit = false
}
abi {
enableSplit = true
}
}
}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
fileFormatVersion: 2
guid: 790ad3ef3f461ad4994536dbc24594c3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment