Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZxAd_Unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
ZxAd_Unity
Commits
13c658dd
Commit
13c658dd
authored
Jun 07, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入Android umeng配置
parent
fbe72d25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
9 deletions
+104
-9
AndroidManifest.xml
Assets/Plugins/Android/AndroidManifest.xml
+13
-9
launcherTemplate.gradle
Assets/Plugins/Android/launcherTemplate.gradle
+84
-0
launcherTemplate.gradle.meta
Assets/Plugins/Android/launcherTemplate.gradle.meta
+7
-0
No files found.
Assets/Plugins/Android/AndroidManifest.xml
View file @
13c658dd
...
...
@@ -20,11 +20,14 @@
android:name=
"com.bytedance.android.UnionApplication"
android:icon=
"@drawable/app_icon"
android:label=
"@string/app_name"
android:hardwareAccelerated=
"true"
android:allowBackup=
"true"
android:supportsRtl=
"true"
>
<uses-library
android:name=
"org.apache.http.legacy"
android:required=
"false"
/>
<activity
android:name=
"com.unity3d.player.UnityPlayerActivity"
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"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
@@ -36,12 +39,15 @@
<meta-data
android:name=
"PARTNER_CODE"
android:value=
"yanmao"
/>
<!-- 微信配置 -->
<activity
android:name=
"com.ym.wdcy.wxapi.WXEntryActivity"
android:exported=
"true"
android:launchMode=
"singleTop"
>
</activity>
<!-- 微信配置 -->
<activity
android:name=
"com.ym.chxxx.wxapi.WXEntryActivity"
android:exported=
"true"
android:launchMode=
"singleTop"
/>
<!-- 友盟配置 -->
<meta-data
android:name=
"UMENG_CHANNEL"
android:value=
"${UMENG_CHANNEL_VALUE}"
/>
<!-- WebView -->
<activity
android:name=
"com.ym.unityandroid.webview.UnityWebActivity"
...
...
@@ -53,8 +59,7 @@
</intent-filter>
</activity>
<!-- WebView -->
<provider
<provider
android:name=
"com.bytedance.sdk.openadsdk.TTFileProvider"
android:authorities=
"${applicationId}.TTFileProvider"
android:exported=
"false"
...
...
@@ -67,6 +72,5 @@
android:name=
"com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
android:authorities=
"${applicationId}.TTMultiProvider"
android:exported=
"false"
/>
</application>
</manifest>
Assets/Plugins/Android/launcherTemplate.gradle
0 → 100644
View file @
13c658dd
// 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
**
Assets/Plugins/Android/launcherTemplate.gradle.meta
0 → 100644
View file @
13c658dd
fileFormatVersion: 2
guid: 790ad3ef3f461ad4994536dbc24594c3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment