siyao 4 年前
当前提交
e763c307
共有 32 个文件被更改,包括 662 次插入142 次删除
  1. 5
      Assets/HuaweiService/Android/huaweiappgallery.aar.meta
  2. 6
      Assets/HuaweiService/ads/AdParam.cs
  3. 18
      Assets/HuaweiService/ads/RequestOptions.cs
  4. 33
      Assets/HuaweiService/apm/APMS.cs
  5. 55
      Assets/HuaweiService/apm/CustomTrace.cs
  6. 58
      Assets/HuaweiService/apm/NetworkMeasure.cs
  7. 2
      Assets/HuaweiService/base/ActivityCompat.cs
  8. 12
      Assets/HuaweiService/push/RemoteMessage.cs
  9. 12
      Assets/HuaweiServiceDemo/Scripts/test/ads/AdsTest.cs
  10. 30
      Assets/Plugins/Android/HmsAnalyticActivity.java
  11. 9
      Assets/Plugins/Android/launcherTemplate.gradle
  12. 7
      ProjectSettings/EditorBuildSettings.asset
  13. 6
      ProjectSettings/ProjectSettings.asset
  14. 14
      Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs
  15. 22
      Assets/HuaweiService/base/Continuation.cs
  16. 11
      Assets/HuaweiService/base/Continuation.cs.meta
  17. 26
      Assets/HuaweiService/base/ExecuteResult.cs
  18. 11
      Assets/HuaweiService/base/ExecuteResult.cs.meta
  19. 49
      Assets/HuaweiService/base/HttpURLConnection.cs
  20. 11
      Assets/HuaweiService/base/HttpURLConnection.cs.meta
  21. 13
      Assets/HuaweiService/base/InputStream.cs
  22. 11
      Assets/HuaweiService/base/InputStream.cs.meta
  23. 19
      Assets/HuaweiService/base/Integer.cs
  24. 11
      Assets/HuaweiService/base/Integer.cs.meta
  25. 18
      Assets/HuaweiService/base/SuccessContinuation.cs
  26. 11
      Assets/HuaweiService/base/SuccessContinuation.cs.meta
  27. 155
      Assets/Plugins/Android/proguard-unity.txt
  28. 7
      Assets/Plugins/Android/proguard-unity.txt.meta
  29. 155
      Assets/Plugins/Android/proguard-user.txt
  30. 7
      Assets/Plugins/Android/proguard-user.txt.meta
  31. 0
      /Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs.meta
  32. 0
      /Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs

5
Assets/HuaweiService/Android/huaweiappgallery.aar.meta


fileFormatVersion: 2
guid: 3738c5893faa944ac804a4fa1d6b8be1
timeCreated: 1583743993
licenseType: Free
defineConstraints: []
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android

6
Assets/HuaweiService/ads/AdParam.cs


public Builder setAdContentClassification(string arg0) {
return Call<Builder>("setAdContentClassification", arg0);
}
public Builder setTagForUnderAgeOfPromise(int arg0) {
public Builder setTagForUnderAgeOfPromise(Integer arg0) {
public Builder setTagForChildProtection(int arg0) {
public Builder setTagForChildProtection(Integer arg0) {
public Builder setNonPersonalizedAd(int arg0) {
public Builder setNonPersonalizedAd(Integer arg0) {
return Call<Builder>("setNonPersonalizedAd", arg0);
}
public Builder setAppCountry(string arg0) {

18
Assets/HuaweiService/ads/RequestOptions.cs


public string getAppCountry() {
return Call<string>("getAppCountry");
}
public int getTagForChildProtection() {
return Call<int>("getTagForChildProtection");
public Integer getTagForChildProtection() {
return Call<Integer>("getTagForChildProtection");
public int getTagForUnderAgeOfPromise() {
return Call<int>("getTagForUnderAgeOfPromise");
public Integer getTagForUnderAgeOfPromise() {
return Call<Integer>("getTagForUnderAgeOfPromise");
public int getNonPersonalizedAd() {
return Call<int>("getNonPersonalizedAd");
public Integer getNonPersonalizedAd() {
return Call<Integer>("getNonPersonalizedAd");
}
public class Builder_Data : IHmsBaseClass{

public Builder setAdContentClassification(string arg0) {
return Call<Builder>("setAdContentClassification", arg0);
}
public Builder setTagForChildProtection(int arg0) {
public Builder setTagForChildProtection(Integer arg0) {
public Builder setTagForUnderAgeOfPromise(int arg0) {
public Builder setTagForUnderAgeOfPromise(Integer arg0) {
public Builder setNonPersonalizedAd(int arg0) {
public Builder setNonPersonalizedAd(Integer arg0) {
return Call<Builder>("setNonPersonalizedAd", arg0);
}
public Builder setAppLang(string arg0) {

33
Assets/HuaweiService/apm/APMS.cs


using UnityEngine;
using System.Collections.Generic;
public class APMS_Data : IHmsBaseClass
{
public class APMS_Data : IHmsBaseClass{
public class APMS : HmsClass<APMS_Data>
public class APMS :HmsClass<APMS_Data>
public APMS() : base()
{
}
public static APMS getInstance()
{
public APMS (): base() { }
public static APMS getInstance() {
public void enableCollection(bool arg0)
{
public void enableCollection(bool arg0) {
public void enableAnrMonitor(bool arg0)
{
public void enableAnrMonitor(bool arg0) {
public CustomTrace createCustomTrace(string arg0)
{
public CustomTrace createCustomTrace(string arg0) {
public NetworkMeasure createNetworkMeasure(string arg0, string arg1)
{
public NetworkMeasure createNetworkMeasure(string arg0, string arg1) {
return Call<NetworkMeasure>("createNetworkMeasure", arg0, arg1);
}
}

55
Assets/HuaweiService/apm/CustomTrace.cs


using UnityEngine;
using System.Collections.Generic;
public class CustomTrace_Data : IHmsBaseClass
{
public class CustomTrace_Data : IHmsBaseClass{
public class CustomTrace : HmsClass<CustomTrace_Data>
public class CustomTrace :HmsClass<CustomTrace_Data>
{
public const int MAX_CUSTOM_TRACE_NAME_LENGTH = 100;
public const int MAX_CUSTOM_TRACE_PROPERTIES = 5;

public const string NAME_RULE = "^[\u4e00-\u9fa5_a-zA-Z0-9]+$";
public CustomTrace(string arg0) : base(arg0)
{
}
public CustomTrace() : base()
{
}
public void start()
{
public CustomTrace (string arg0): base(arg0) { }
public CustomTrace (): base() { }
public void start() {
public void stop()
{
public void stop() {
public void putProperty(string arg0, string arg1)
{
public void putProperty(string arg0, string arg1) {
public void removeProperty(string arg0)
{
public void removeProperty(string arg0) {
public string getProperty(string arg0)
{
public string getProperty(string arg0) {
public void incrementMeasure(string arg0, long arg1)
{
public void incrementMeasure(string arg0, long arg1) {
public long getMeasure(string arg0)
{
public long getMeasure(string arg0) {
public void putMeasure(string arg0, long arg1)
{
public void putMeasure(string arg0, long arg1) {
public Map getTraceProperties()
{
public Map getTraceProperties() {
return Call<Map>("getTraceProperties");
}
}

58
Assets/HuaweiService/apm/NetworkMeasure.cs


using UnityEngine;
using System.Collections.Generic;
public class NetworkMeasure_Data : IHmsBaseClass
{
public class NetworkMeasure_Data : IHmsBaseClass{
public class NetworkMeasure : HmsClass<NetworkMeasure_Data>
public class NetworkMeasure :HmsClass<NetworkMeasure_Data>
public NetworkMeasure(string arg0, string arg1) : base(arg0, arg1)
{
}
public NetworkMeasure() : base()
{
}
public void start()
{
public NetworkMeasure (string arg0, string arg1): base(arg0, arg1) { }
public NetworkMeasure (): base() { }
public void start() {
public void stop()
{
public void stop() {
public void setStatusCode(int arg0)
{
public void setStatusCode(int arg0) {
public void setBytesSent(long arg0)
{
public void setBytesSent(long arg0) {
public void setBytesReceived(long arg0)
{
public void setBytesReceived(long arg0) {
public void setContentType(string arg0)
{
public void setContentType(string arg0) {
public void putProperty(string arg0, string arg1)
{
public void putProperty(string arg0, string arg1) {
public void removeProperty(string arg0)
{
public void removeProperty(string arg0) {
public Map getProperties()
{
public Map getProperties() {
public string getProperty(string arg0)
{
public string getProperty(string arg0) {
return Call<string>("getProperty", arg0);
}
}

2
Assets/HuaweiService/base/ActivityCompat.cs


namespace HuaweiService
{
public class ActivityCompat_Data : IHmsBaseClass{
public string name => "android.support.v4.app.ActivityCompat";
public string name => "androidx.core.app.ActivityCompat";
}
public class ActivityCompat :HmsClass<ActivityCompat_Data>
{

12
Assets/HuaweiService/push/RemoteMessage.cs


public int[] getLightSettings() {
return Call<int[]>("getLightSettings");
}
public int getBadgeNumber() {
return Call<int>("getBadgeNumber");
public Integer getBadgeNumber() {
return Call<Integer>("getBadgeNumber");
public int getImportance() {
return Call<int>("getImportance");
public Integer getImportance() {
return Call<Integer>("getImportance");
}
public string getTicker() {
return Call<string>("getTicker");

}
public int getVisibility() {
return Call<int>("getVisibility");
public Integer getVisibility() {
return Call<Integer>("getVisibility");
}
public string getIntentUri() {
return Call<string>("getIntentUri");

12
Assets/HuaweiServiceDemo/Scripts/test/ads/AdsTest.cs


registerEvent("set consent personal",() => SetConsentStatus(true));
registerEvent("set consent non personal", ()=> SetConsentStatus(false));
registerEvent("consent",checkConsentStatus);
registerEvent("set RequestOptions NonPersonalizedAd",setRequestOptionsNonPersonalizedAd);
}
public void LoadImageAds()
{

{
Consent consentInfo = Consent.getInstance(new Context());
consentInfo.requestConsentUpdate(new MConsentUpdateListener());
}
public void setRequestOptionsNonPersonalizedAd()
{
RequestOptions reqOptions = HwAds.getRequestOptions()
.toBuilder()
.setNonPersonalizedAd( new Integer(NonPersonalizedAd.ALLOW_ALL) )
.build();
HwAds.setRequestOptions(reqOptions);
TestTip.Inst.ShowText("RequestOptions NonPersonalizedAd:"+ HwAds.getRequestOptions().getNonPersonalizedAd());
}
}
}

30
Assets/Plugins/Android/HmsAnalyticActivity.java


import com.huawei.hms.aaid.HmsInstanceId;
import com.hw.unity.Agc.Auth.ThirdPartyLogin.LoginManager;
import android.content.Intent;
import java.lang.Boolean;
import com.unity3d.player.UnityPlayer;
public class HmsAnalyticActivity extends UnityPlayerActivity {
private AGConnectAppMessaging appMessaging;

appMessaging.setDisplayEnable(true);
appMessaging.setForceFetch();
LoginManager.getInstance().initialize(this);
boolean pretendCallMain = false;
if(pretendCallMain == true){
main();
}
private static void callCrash() {
throwCrash();
}
private static void throwCrash() {
throw new NullPointerException();
}
public static void main(){
JavaCrash();
}
private static void JavaCrash(){
new Thread(new Runnable() {
@Override
public void run() { // 子线程
UnityPlayer.currentActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
callCrash();
}
});
}
}).start();
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)

9
Assets/Plugins/Android/launcherTemplate.gradle


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 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.huawei.hms:hianalytics:5.0.0.301'
implementation 'com.huawei.agconnect:agconnect-crash:1.4.1.300'
implementation 'com.huawei.agconnect:agconnect-core:1.4.1.300'

jniDebuggable true
}
release {
minifyEnabled **MINIFY_RELEASE**
useProguard **PROGUARD_RELEASE**
proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-unity.txt','proguard-user.txt'
signingConfig signingConfigs.release
}
}**PACKAGING_OPTIONS****SPLITS**
**BUILT_APK_LOCATION**

7
ProjectSettings/EditorBuildSettings.asset


- enabled: 0
path: Assets/HuaweiServiceDemo/Scenes/HmsRemoteConfigSampleScene.unity
guid: 9a5ee55b1b9414774becf40683d28db8
- enabled: 0
- enabled: 1
- enabled: 1
- enabled: 0
path: Assets/HuaweiServiceDemo/Scenes/HmsAppMessageSampleScene.unity
guid: b3476cb507ef74fc3ba3f5a751256fe8
- enabled: 0

- enabled: 0
path: Assets/HuaweiServiceDemo/Scenes/AgcAuthScene.unity
guid: 99a57a8576159410ab2702dc4c1a4324
- enabled: 0
path: Assets/HuaweiServiceDemo/HuaweiCloudFunctionDemo/Scenes/AGCCloudFunctionScene.unity
guid: b572b4b6e597f465fb89e6cf1e198b99
m_configObjects: {}

6
ProjectSettings/ProjectSettings.asset


AndroidTargetArchitectures: 1
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName: /Users/zhenzhu/Desktop/Player-Identity/HuaweiAuthTest6/android.keystore
AndroidKeyaliasName: zhenzhu16
AndroidKeystoreName: '{inproject}: hhms.keystore'
AndroidKeyaliasName: hhms
AndroidBuildApkPerCpuArchitecture: 0
AndroidTVCompatibility: 0
AndroidIsGame: 1

androidUseCustomKeystore: 0
androidUseCustomKeystore: 1
m_AndroidBanners:
- width: 320
height: 180

14
Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs


using System.Security.Cryptography;
using HuaweiService;
using HuaweiService.crash;
using HuaweiService.crash;
using System.Runtime.InteropServices;
namespace HuaweiServiceDemo
{

{
registerEvent("enableCrashCollection(true)", () => SetCrashCollection(true));
registerEvent("enableCrashCollection(false)", () => SetCrashCollection(false));
registerEvent("testIt", SetTestIt);
registerEvent("setUserId(String userId)", () => SetUserId("TestUserId2"));
registerEvent("JAVA crash", SetTestIt);
registerEvent("setUserId(String userId)", () => SetUserId("TestUserIdz"));
registerEvent("setCustomKey(String key, String value)", () => SetCustomKey("stringKey", "world"));
registerEvent("setCustomKey(String key, boolean value)", () => SetCustomKey("booleanKey", false));
registerEvent("setCustomKey(String key, double value)", () => SetCustomKey("doubleKey", 1.1));

}
public void SetCrashCollection(bool isCollection)
{
if (isCollection)
if (isCollection == true)
{
AGConnectCrash.getInstance().enableCrashCollection(true);
TestTip.Inst.ShowText("upload crash collection");

public void SetTestIt()
{
TestTip.Inst.ShowText("create crash");
Application.ForceCrash(0);
AndroidJavaClass jc = new AndroidJavaClass("com.hms.hms_analytic_activity.HmsAnalyticActivity");
jc.CallStatic("main");
}
public void SetUserId(string userid)

TestTip.Inst.ShowText($"set log lever: {level}," + $"log message: {log}");
}
}
}
}

22
Assets/HuaweiService/base/Continuation.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class ContinuationData : IHmsBaseListener
{
public string name => "com.huawei.hmf.tasks.Continuation";
public string buildName => "";
}
public class Continuation : HmsListener<ContinuationData>
{
public virtual AndroidJavaObject then(Task arg0) {
return Call<AndroidJavaObject>("then", arg0);
}
public AndroidJavaObject then(AndroidJavaObject arg0){
return then(HmsUtil.GetHmsBase<Task>(arg0));
}
}
}

11
Assets/HuaweiService/base/Continuation.cs.meta


fileFormatVersion: 2
guid: aa68d90c8e96e49878372a625daf2b16
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

26
Assets/HuaweiService/base/ExecuteResult.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class ExecuteResultData : IHmsBaseListener
{
public string name => "com.huawei.hmf.tasks.ExecuteResult";
public string buildName => "";
}
public class ExecuteResult : HmsListener<ExecuteResultData>
{
public virtual void onComplete(Task arg0) {
Call("onComplete", arg0);
}
public void onComplete(AndroidJavaObject arg0){
onComplete(HmsUtil.GetHmsBase<Task>(arg0));
}
public virtual void cancel() {
Call("cancel");
}
}
}

11
Assets/HuaweiService/base/ExecuteResult.cs.meta


fileFormatVersion: 2
guid: 5171a3d5ceaf34926bbd95fa49de763f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

49
Assets/HuaweiService/base/HttpURLConnection.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class HttpURLConnection_Data : IHmsBaseClass{
public string name => "java.net.HttpURLConnection";
}
public class HttpURLConnection :HmsClass<HttpURLConnection_Data>
{
public const int HTTP_OK = 200;
public const int HTTP_CREATED = 201;
public const int HTTP_ACCEPTED = 202;
public const int HTTP_NOT_AUTHORITATIVE = 203;
public const int HTTP_NO_CONTENT = 204;
public const int HTTP_RESET = 205;
public const int HTTP_PARTIAL = 206;
public const int HTTP_MULT_CHOICE = 300;
public const int HTTP_MOVED_PERM = 301;
public const int HTTP_MOVED_TEMP = 302;
public const int HTTP_SEE_OTHER = 303;
public const int HTTP_NOT_MODIFIED = 304;
public const int HTTP_USE_PROXY = 305;
public const int HTTP_BAD_REQUEST = 400;
public const int HTTP_UNAUTHORIZED = 401;
public const int HTTP_PAYMENT_REQUIRED = 402;
public const int HTTP_FORBIDDEN = 403;
public const int HTTP_NOT_FOUND = 404;
public const int HTTP_BAD_METHOD = 405;
public const int HTTP_NOT_ACCEPTABLE = 406;
public const int HTTP_PROXY_AUTH = 407;
public const int HTTP_CLIENT_TIMEOUT = 408;
public const int HTTP_CONFLICT = 409;
public const int HTTP_GONE = 410;
public const int HTTP_LENGTH_REQUIRED = 411;
public const int HTTP_PRECON_FAILED = 412;
public const int HTTP_ENTITY_TOO_LARGE = 413;
public const int HTTP_REQ_TOO_LONG = 414;
public const int HTTP_UNSUPPORTED_TYPE = 415;
public const int HTTP_SERVER_ERROR = 500;
public const int HTTP_INTERNAL_ERROR = 500;
public const int HTTP_NOT_IMPLEMENTED = 501;
public const int HTTP_BAD_GATEWAY = 502;
public const int HTTP_UNAVAILABLE = 503;
public const int HTTP_GATEWAY_TIMEOUT = 504;
public const int HTTP_VERSION = 505;
public HttpURLConnection (): base() { }
}
}

11
Assets/HuaweiService/base/HttpURLConnection.cs.meta


fileFormatVersion: 2
guid: 6b46c895079c84f2d9b2f66976d86be9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

13
Assets/HuaweiService/base/InputStream.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class InputStream_Data : IHmsBaseClass{
public string name => "java.io.InputStream";
}
public class InputStream :HmsClass<InputStream_Data>
{
public InputStream (): base() { }
}
}

11
Assets/HuaweiService/base/InputStream.cs.meta


fileFormatVersion: 2
guid: fc6733f560b3347df865fe65fac1bd39
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

19
Assets/HuaweiService/base/Integer.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class Integer_Data : IHmsBaseClass{
public string name => "java.lang.Integer";
}
public class Integer :HmsClass<Integer_Data>
{
public const int MIN_VALUE = -2147483648;
public const int MAX_VALUE = 2147483647;
public const int SIZE = 32;
public const int BYTES = 4;
public Integer (int arg0): base(arg0) { }
public Integer (string arg0): base(arg0) { }
public Integer (): base() { }
}
}

11
Assets/HuaweiService/base/Integer.cs.meta


fileFormatVersion: 2
guid: d0fa916babb954986af6b7a55e82719a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

18
Assets/HuaweiService/base/SuccessContinuation.cs


using UnityEngine;
using System.Collections.Generic;
namespace HuaweiService
{
public class SuccessContinuationData : IHmsBaseListener
{
public string name => "com.huawei.hmf.tasks.SuccessContinuation";
public string buildName => "";
}
public class SuccessContinuation : HmsListener<SuccessContinuationData>
{
public virtual Task then(AndroidJavaObject arg0) {
return Call<Task>("then", arg0);
}
}
}

11
Assets/HuaweiService/base/SuccessContinuation.cs.meta


fileFormatVersion: 2
guid: 2851232393f734bdd9a89668375b9835
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

155
Assets/Plugins/Android/proguard-unity.txt


# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#####################
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-keepattributes *Annotation*,InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-optimizations !code/simplification/cast,!field/*,!class/merging/*
#############################################
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Appliction
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class * extends android.view.View
-keep public class com.android.vending.licensing.ILicensingService
-keep class com.unity.** {public *;}
-keep class com.hw.** {public *;}
-keep class com.huawei.** {public *;}
-keep class androidx.** {public *;}
-keep class android.support.** {*;}
-keep public class * extends android.support.v4.**
-keep public class * extends android.support.v7.**
-keep public class * extends android.support.annotation.**
-keep class **.R$* {*;}
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclassmembers class * extends android.app.Activity{
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep public class * extends android.view.View{
*** get*();
void set*(***);
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
!private <fields>;
!private <methods>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
-keepclasseswithmembers public class * {
public static void main();
}
-keep public class com.hms.hms_analytic_activity.HmsAnalyticActivity
-keepclassmembers class * {
void *(**On*Event);
void *(**On*Listener);
}
-keepclassmembers class ** {
public static *** parse(***);
}
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#-keepclassmembers class * extends android.webkit.webViewClient {
# public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);
# public boolean *(android.webkit.WebView, java.lang.String);
#}
#-keepclassmembers class * extends android.webkit.webViewClient {
# public void *(android.webkit.webView, jav.lang.String);
#}
#-assumenosideeffects class android.util.Log {
# public static int v(...);
# public static int i(...);
# public static int w(...);
# public static int d(...);
# public static int e(...);
#}
#-ignorewarnings
#-keep class com.huawei.agconnect.**{*;}
-printmapping mapping.txt
-keepclasseswithmembernames class * {
native <methods>;
}

7
Assets/Plugins/Android/proguard-unity.txt.meta


fileFormatVersion: 2
guid: c6f0944098fb9c94f9d36c5fb348c35c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

155
Assets/Plugins/Android/proguard-user.txt


# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#####################
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-keepattributes *Annotation*,InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-optimizations !code/simplification/cast,!field/*,!class/merging/*
#############################################
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Appliction
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class * extends android.view.View
-keep public class com.android.vending.licensing.ILicensingService
-keep class com.unity.** {public *;}
-keep class com.hw.** {public *;}
-keep class com.huawei.** {public *;}
-keep class androidx.** {public *;}
-keep class android.support.** {*;}
-keep public class * extends android.support.v4.**
-keep public class * extends android.support.v7.**
-keep public class * extends android.support.annotation.**
-keep class **.R$* {*;}
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclassmembers class * extends android.app.Activity{
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep public class * extends android.view.View{
*** get*();
void set*(***);
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
!private <fields>;
!private <methods>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
-keepclasseswithmembers public class * {
public static void main();
}
-keep public class com.hms.hms_analytic_activity.HmsAnalyticActivity
-keepclassmembers class * {
void *(**On*Event);
void *(**On*Listener);
}
-keepclassmembers class ** {
public static *** parse(***);
}
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#-keepclassmembers class * extends android.webkit.webViewClient {
# public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);
# public boolean *(android.webkit.WebView, java.lang.String);
#}
#-keepclassmembers class * extends android.webkit.webViewClient {
# public void *(android.webkit.webView, jav.lang.String);
#}
#-assumenosideeffects class android.util.Log {
# public static int v(...);
# public static int i(...);
# public static int w(...);
# public static int d(...);
# public static int e(...);
#}
#-ignorewarnings
#-keep class com.huawei.agconnect.**{*;}
-printmapping mapping.txt
-keepclasseswithmembernames class * {
native <methods>;
}

7
Assets/Plugins/Android/proguard-user.txt.meta


fileFormatVersion: 2
guid: dda2435ebf78ed24eb05797e26bfd83b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/Assets/HuaweiServiceDemo/Scripts/test/location/CrashTest.cs.meta → /Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs.meta

/Assets/HuaweiServiceDemo/Scripts/test/location/CrashTest.cs → /Assets/HuaweiServiceDemo/Scripts/test/CrashTest.cs

正在加载...
取消
保存