siyao
3 年前
当前提交
b5fade6d
共有 14 个文件被更改,包括 325 次插入 和 78 次删除
-
7Assets/HuaweiService/cloud_db/Text.cs
-
2Assets/Plugins/Android/baseProjectTemplate.gradle
-
3Assets/Plugins/Android/gradleTemplate.properties
-
11Assets/Plugins/Android/launcherTemplate.gradle
-
7Assets/Plugins/Android/mainTemplate.gradle
-
12Packages/manifest.json
-
49Packages/packages-lock.json
-
7ProjectSettings/PackageManagerSettings.asset
-
116ProjectSettings/ProjectSettings.asset
-
4ProjectSettings/ProjectVersion.txt
-
91Assets/Plugins/Android/launcherTemplate.gradle.2019
-
75Assets/Plugins/Android/mainTemplate.gradle.2019
-
19Assets/HuaweiService/version/LibraryInfos.cs
|
|||
unityStreamingAssets=.unity3d**STREAMING_ASSETS** |
|||
|
|||
android.enableR8=**MINIFY_WITH_R_EIGHT** |
|
|||
m_EditorVersion: 2019.4.10f1 |
|||
m_EditorVersionWithRevision: 2019.4.10f1 (9b222ea32f23) |
|||
m_EditorVersion: 2020.3.22f1c1 |
|||
m_EditorVersionWithRevision: 2020.3.22f1c1 (9ee66e5289da) |
|
|||
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN |
|||
|
|||
apply plugin: 'com.android.application' |
|||
apply plugin: 'com.huawei.agconnect' |
|||
agcp { |
|||
enableAPMS true |
|||
} |
|||
|
|||
dependencies { |
|||
implementation project(':unityLibrary') |
|||
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300' |
|||
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.300' |
|||
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.100" |
|||
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300" |
|||
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.1.300' |
|||
implementation 'com.huawei.agconnect:agconnect-remoteconfig:1.4.1.300' |
|||
implementation 'com.huawei.hms:ads-lite:13.4.29.303' |
|||
implementation 'com.huawei.hms:ads-consent:3.4.30.301' |
|||
implementation 'com.huawei.hms:push:4.0.3.301' |
|||
implementation 'com.huawei.hms:location:5.0.0.302' |
|||
implementation 'androidx.appcompat:appcompat:1.2.0' |
|||
implementation 'com.huawei.hms:hianalytics:5.1.0.300' |
|||
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300' |
|||
implementation 'com.huawei.agconnect:agconnect-core:1.4.1.300' |
|||
implementation 'com.huawei.agconnect:agconnect-function:1.4.2.300' |
|||
implementation 'com.huawei.hms:base:5.0.5.300' |
|||
implementation 'com.huawei.hms:game:5.0.4.302' |
|||
implementation 'com.huawei.hms:hwid:5.0.5.301' |
|||
} |
|||
|
|||
android { |
|||
compileSdkVersion **APIVERSION** |
|||
buildToolsVersion '**BUILDTOOLS**' |
|||
|
|||
compileOptions { |
|||
sourceCompatibility JavaVersion.VERSION_1_8 |
|||
targetCompatibility JavaVersion.VERSION_1_8 |
|||
} |
|||
|
|||
packagingOptions { |
|||
exclude 'META-INF/INDEX.LIST' |
|||
exclude 'META-INF/io.netty.versions.properties' |
|||
} |
|||
|
|||
defaultConfig { |
|||
minSdkVersion **MINSDKVERSION** |
|||
targetSdkVersion **TARGETSDKVERSION** |
|||
applicationId '**APPLICATIONID**' |
|||
ndk { |
|||
abiFilters **ABIFILTERS** |
|||
} |
|||
multiDexEnabled true |
|||
versionCode **VERSIONCODE** |
|||
versionName '**VERSIONNAME**' |
|||
} |
|||
|
|||
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 true |
|||
useProguard true |
|||
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-unity.txt','proguard-user.txt' |
|||
signingConfig signingConfigs.release |
|||
} |
|||
}**PACKAGING_OPTIONS****SPLITS** |
|||
**BUILT_APK_LOCATION** |
|||
bundle { |
|||
language { |
|||
enableSplit = false |
|||
} |
|||
density { |
|||
enableSplit = false |
|||
} |
|||
abi { |
|||
enableSplit = true |
|||
} |
|||
} |
|||
}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP** |
|
|||
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN |
|||
|
|||
apply plugin: 'com.android.library' |
|||
apply plugin: 'com.huawei.agconnect' |
|||
**APPLY_PLUGINS** |
|||
|
|||
dependencies { |
|||
implementation fileTree(dir: 'libs', include: ['*.jar']) |
|||
implementation "com.huawei.agconnect:agconnect-appmessaging:1.4.1.300" |
|||
implementation 'com.huawei.hms:hianalytics:5.1.0.300' |
|||
//Google |
|||
implementation 'com.google.android.gms:play-services-auth:18.1.0' |
|||
//Google Play Game |
|||
implementation 'com.google.android.gms:play-services-games:17.0.0' |
|||
//Twitter |
|||
implementation 'com.twitter.sdk.android:twitter-core:3.3.0' |
|||
//Wechat |
|||
api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' |
|||
//facebook |
|||
implementation 'com.facebook.android:facebook-android-sdk:4.20.0' |
|||
|
|||
|
|||
//cloud storage |
|||
implementation "com.huawei.agconnect:agconnect-storage:1.3.1.100" |
|||
//apm |
|||
implementation 'com.huawei.agconnect:agconnect-apms:1.5.2.300' |
|||
implementation 'com.huawei.agconnect:agconnect-apms-game:1.5.2.300' |
|||
|
|||
//hms |
|||
implementation 'com.huawei.hms:base:5.0.5.300' |
|||
implementation 'com.huawei.hms:game:5.0.4.302' |
|||
implementation 'com.huawei.hms:hwid:5.0.5.301' |
|||
|
|||
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300' |
|||
//auth |
|||
implementation 'com.huawei.agconnect:agconnect-core:1.4.1.300' |
|||
implementation 'com.huawei.agconnect:agconnect-auth:1.4.1.300' |
|||
//cloudfunction |
|||
implementation "com.huawei.agconnect:agconnect-function:1.4.2.300" |
|||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5' |
|||
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5' |
|||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.8.5' |
|||
// clouddb |
|||
implementation 'com.huawei.agconnect:agconnect-cloud-database:1.4.10.300' |
|||
**DEPS**} |
|||
|
|||
android { |
|||
compileSdkVersion **APIVERSION** |
|||
buildToolsVersion '**BUILDTOOLS**' |
|||
|
|||
compileOptions { |
|||
sourceCompatibility JavaVersion.VERSION_1_8 |
|||
targetCompatibility JavaVersion.VERSION_1_8 |
|||
} |
|||
|
|||
defaultConfig { |
|||
minSdkVersion **MINSDKVERSION** |
|||
targetSdkVersion **TARGETSDKVERSION** |
|||
ndk { |
|||
abiFilters **ABIFILTERS** |
|||
} |
|||
versionCode **VERSIONCODE** |
|||
versionName '**VERSIONNAME**' |
|||
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD** |
|||
} |
|||
|
|||
lintOptions { |
|||
abortOnError false |
|||
} |
|||
|
|||
aaptOptions { |
|||
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" |
|||
}**PACKAGING_OPTIONS** |
|||
}**REPOSITORIES****SOURCE_BUILD_SETUP** |
|||
**EXTERNAL_SOURCES** |
|
|||
using UnityEngine; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace HuaweiService.version |
|||
{ |
|||
public class LibraryInfos_Data : IHmsBaseClass{ |
|||
public string name => "com.huawei.agconnect.version.LibraryInfos"; |
|||
} |
|||
public class LibraryInfos :HmsClass<LibraryInfos_Data> |
|||
{ |
|||
public LibraryInfos (): base() { } |
|||
public static LibraryInfos getInstance() { |
|||
return CallStatic<LibraryInfos>("getInstance"); |
|||
} |
|||
public void registerLibraryType(string arg0) { |
|||
Call("registerLibraryType", arg0); |
|||
} |
|||
} |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue