├── LICENSE ├── README.md ├── android-wrapper ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── libs │ │ └── UnityPlayer.jar │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── org │ │ │ └── m0skit0 │ │ │ └── android │ │ │ └── hms │ │ │ └── unity │ │ │ ├── BridgeType.java │ │ │ ├── DebugHelper.java │ │ │ ├── GenericBridge.java │ │ │ ├── GenericBridgeCallback.java │ │ │ ├── HMSUnityPlayerActivity.java │ │ │ ├── activity │ │ │ ├── NativeBridgeActivity.java │ │ │ └── SplashActivity.java │ │ │ ├── ads │ │ │ ├── AdListener.java │ │ │ ├── AdListenerWrapper.java │ │ │ ├── BannerAd.java │ │ │ ├── Constants.java │ │ │ ├── OnMetadataChangedListener.java │ │ │ ├── OnMetadataChangedListenerWrapper.java │ │ │ ├── RewardAdLoadListener.java │ │ │ ├── RewardAdLoadListenerWrapper.java │ │ │ ├── RewardAdStatusListener.java │ │ │ ├── RewardAdStatusListenerWrapper.java │ │ │ ├── SplashAdDisplayListener.java │ │ │ ├── SplashAdDisplayListenerWrapper.java │ │ │ ├── SplashAdLoadListener.java │ │ │ ├── SplashAdLoadListenerWrapper.java │ │ │ ├── installreferrer │ │ │ │ └── bridge │ │ │ │ │ ├── InstallReferrerStateBridge.java │ │ │ │ │ ├── InstallReferrerStateCallbackListener.java │ │ │ │ │ └── InstallReferrerStateCallbackWrapper.java │ │ │ └── nativead │ │ │ │ └── HmsNativeView.java │ │ │ ├── appLinking │ │ │ └── AppLinking.java │ │ │ ├── base │ │ │ └── StatusBridge.java │ │ │ ├── game │ │ │ └── ArchiveBridge.java │ │ │ ├── helper │ │ │ ├── FilePicker │ │ │ │ ├── FilePickerBridge.java │ │ │ │ └── FilePickerBridgeCallback.java │ │ │ ├── MetadataHelper.java │ │ │ └── ServiceHelper.java │ │ │ ├── inAppComment │ │ │ ├── InAppComment.java │ │ │ ├── InAppCommentBridge.java │ │ │ └── InAppCommentListener.java │ │ │ ├── location │ │ │ ├── BroadcastListener.java │ │ │ ├── BroadcastWrapper.java │ │ │ ├── GeofenceBroadcastReceiver.java │ │ │ ├── LocationBridge.java │ │ │ ├── LocationBroadcastReceiver.java │ │ │ ├── LocationCallbackListener.java │ │ │ ├── LocationCallbackWrapper.java │ │ │ └── LocationPermissions.java │ │ │ ├── nearby │ │ │ ├── DataListener.java │ │ │ ├── DataListenerWrapper.java │ │ │ ├── NearbyListener.java │ │ │ ├── NearbyListenerWrapper.java │ │ │ ├── ScanEndpointListener.java │ │ │ ├── ScanEndpointWrapper.java │ │ │ ├── WifiShareListener.java │ │ │ └── WifiShareListenerWrapper.java │ │ │ ├── provider │ │ │ └── AnalyticsContentProvider.java │ │ │ ├── push │ │ │ ├── HMSPushService.java │ │ │ ├── NotificationListener.java │ │ │ ├── PushBridge.java │ │ │ └── PushListener.java │ │ │ ├── remoteConfig │ │ │ └── RemoteConfig.java │ │ │ └── scan │ │ │ ├── OnLightVisibleCallBack.java │ │ │ ├── OnLightVisibleCallBackWrapper.java │ │ │ ├── OnResultCallback.java │ │ │ ├── OnResultCallbackWrapper.java │ │ │ └── bridge │ │ │ ├── ScanBridgeCallback.java │ │ │ └── ScanKitBridge.java │ │ └── res │ │ ├── layout │ │ └── activity_splash.xml │ │ └── values │ │ └── strings.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle └── hms-sdk-unity ├── .github └── workflows │ └── dotnetcore.yml ├── .gitignore └── HuaweiMobileServices ├── APM ├── APMS.cs ├── AddCustomTrace.cs ├── CustomTrace.cs └── NetworkMeasure.cs ├── Ads ├── AdListenerWrapper.cs ├── AdParam.cs ├── AdProvider.cs ├── AdSize.cs ├── AdStatusListener.cs ├── AdvertiserInfo.cs ├── AdvertisingIdClient.cs ├── AppInfo.cs ├── BannerAd.cs ├── BannerAdSize.cs ├── BannerView.cs ├── Consent.cs ├── ConsentUpdateListener.cs ├── ContentClassification.cs ├── Gender.cs ├── HwAds.cs ├── IAdListener.cs ├── IConsentUpdateListener.cs ├── IOnMetadataChangedListener.cs ├── IRewardAdListener.cs ├── IRewardAdLoadListener.cs ├── IRewardAdStatusListener.cs ├── IVideoOperator.cs ├── Image.cs ├── InstallReferrer │ ├── InstallReferrerClient.cs │ ├── InstallReferrerResponse.cs │ ├── ReferrerDetails.cs │ └── StateBridge │ │ ├── IInstallReferrerStateCallback.cs │ │ ├── InstallReferrerStateBridge.cs │ │ ├── InstallReferrerStateCallbackListener.cs │ │ └── InstallReferrerStateListener.cs ├── InterstitialAd.cs ├── Location.cs ├── NativeAd │ ├── HmsNativeViews.cs │ ├── IDislikeAdListener.cs │ ├── IDislikeAdReason.cs │ ├── INativeAdLoadedListener.cs │ ├── NativeAd.cs │ ├── NativeAdConfiguration.cs │ └── NativeAdLoader.cs ├── NonPersonalizedAd.cs ├── OnMetadataChangedListener.cs ├── PromoteInfo.cs ├── RequestOptions.cs ├── Reward.cs ├── RewardAd.cs ├── RewardAdListenerWrapper.cs ├── RewardAdLoadListener.cs ├── RewardAdStatusListener.cs ├── RewardVerifyConfig.cs ├── SplashAd.cs ├── SplashAdDisplayListener.cs ├── SplashAdLoadListener.cs ├── TagForChild.cs ├── UnderAge.cs ├── Video.cs └── VideoConfiguration.cs ├── Analytics ├── HAEvent.cs ├── HAParamType.cs ├── HAUserProfileType.cs ├── HiAnalytics.cs ├── HiAnalyticsInstance.cs ├── HiAnalyticsTools.cs └── ReportPolicy.cs ├── AppLinking ├── AGConnectAppLinking.cs ├── AndroidLinkInfo.cs ├── AppLinking.cs ├── CampaignInfo.cs ├── IReferrerProvider.cs ├── ResolvedLinkData.cs ├── ShortAppLinking.cs └── SocialCardInfo.cs ├── AppMessaging ├── AGCAppMessagingException.cs ├── AGConnectAppMessaging.cs ├── AGConnectAppMessagingCallbackWrapper.cs ├── AGConnectAppMessagingDisplayWrapper.cs ├── AGConnectAppMessagingOnClickListenerWrapper.cs ├── AGConnectAppMessagingOnDismissListenerWrapper.cs ├── AGConnectAppMessagingOnDisplayListenerWrapper.cs ├── AGConnectAppMessagingOnErrorListenerWrapper.cs ├── Action.cs ├── ActionType.cs ├── AppMessage.cs ├── BannerMessage.cs ├── CardMessage.cs ├── DissmissType.cs ├── Location.cs ├── MessageType.cs └── PictureMessage.cs ├── AuthService ├── AGConnectAuth.cs ├── AGConnectAuthCredential.cs ├── AGConnectUser.cs ├── AGConnectUserExtra.cs ├── AlipayAuthProvider.cs ├── BaseUser.cs ├── EmailAuthProvider.cs ├── EmailUser.cs ├── FacebookAuthProvider.cs ├── GoogleAuthProvider.cs ├── GoogleGameAuthProvider.cs ├── HWGameAuthProvider.cs ├── HwIdAuthProvider.cs ├── Locale.cs ├── OnVerifyCodeCallBack.cs ├── PhoneAuthProvider.cs ├── PhoneUser.cs ├── ProfileRequest.cs ├── QQAuthProvider.cs ├── QuickLoginAuthProvider.cs ├── SelfBuildProvider.cs ├── SignInResult.cs ├── TokenResult.cs ├── TwitterAuthParam.cs ├── TwitterAuthProvider.cs ├── VKAuthProvider.cs ├── VerifyCodeResult.cs ├── VerifyCodeSettings.cs ├── WeiboAuthProvider.cs └── WeixinAuthProvider.cs ├── Base ├── AGConnectServicesConfig.cs ├── AbstractTask.cs ├── HuaweiMobileServicesUtil.cs ├── IOnFailureListener.cs ├── IOnSuccessListener.cs ├── ITask.cs ├── MetadataHelper.cs ├── OnCanceledListenerWrapper.cs ├── OnFailureListenerWrapper.cs ├── OnSuccessListenerWrapper.cs ├── Result.cs ├── ServiceHelper.cs ├── Status.cs ├── Task.cs ├── TaskAndroidJavaObject.cs ├── TaskHuaweiJavaObject.cs ├── TaskJavaObjectWrapper.cs ├── TaskPrimitive.cs ├── TaskStringWrapper.cs ├── TaskVoidWrapper.cs └── TaskWrapper.cs ├── CloudDB ├── AGConnectCloudDB.cs ├── AGConnectCloudDBException.cs ├── CloudDBZone.cs ├── CloudDBZoneConfig.cs ├── CloudDBZoneObject.cs ├── CloudDBZoneObjectList.cs ├── CloudDBZoneQuery.cs ├── CloudDBZoneSnapshot.cs ├── ListenerHandler.cs ├── ObjectTypeInfo.cs ├── OnSnapshotListenerWrapper.cs ├── ServerStatus.cs └── Text.cs ├── CloudStorage ├── AGCStorageManagement.cs ├── Core │ ├── CancelListener │ │ ├── IOnCanceledListener.cs │ │ └── OnCanceledListenerConverterWrapper.cs │ ├── CompleteListener │ │ ├── IOnCompleteListener.cs │ │ └── OnCompleteListenerConverterWrapper.cs │ ├── PausedListener │ │ ├── IOnPausedListener.cs │ │ └── OnPausedListenerConverterWrapper.cs │ └── ProgressListener │ │ ├── IOnProgressListener.cs │ │ └── OnProgressListenerConverterWrapper.cs ├── DownloadTask.cs ├── FileMetadata.cs ├── ListResult.cs ├── StorageException.cs ├── StorageReference.cs ├── StorageTask.cs ├── StreamDownloadTask.cs └── UploadTask.cs ├── Common ├── AGCRoutePolicy.cs ├── AGConnectInstance .cs ├── AGConnectOptions.cs └── AGConnectOptionsBuilder.cs ├── Crash ├── AGConnectCrash.cs ├── AGConnectCrashWrapper.cs └── IAGConnectCrash.cs ├── Drive ├── About.cs ├── AbstractClientRequest.cs ├── AbstractJsonClientRequest.cs ├── AccessMethodWrapper.cs ├── Change.cs ├── ChangeList.cs ├── Channel.cs ├── Comment.cs ├── CommentList.cs ├── DateTime.cs ├── Drive.cs ├── DriveCode.cs ├── DriveCredential.cs ├── DriveRequest.cs ├── File.cs ├── FileContent.cs ├── FileList.cs ├── HistoryVersion.cs ├── HistoryVersionList.cs ├── IMediaHttUploaderProgressListener.cs ├── IMediaHttpDownloaderProgressListener.cs ├── InputStreamContent.cs ├── MediaHttUploaderProgressListenerWrapper.cs ├── MediaHttpDownloader.cs ├── MediaHttpDownloaderProgressListenerWrapper.cs ├── MediaHttpUploader .cs ├── MimeType.cs ├── Reply.cs ├── ReplyList.cs ├── StartCursor.cs └── User.cs ├── Game ├── Achievement.cs ├── AchievementClientWrapper.cs ├── AntiAddictionCallWrapper.cs ├── AppParams.cs ├── AppPlayerInfo.cs ├── AppUpdateClientWrapper.cs ├── Archive.cs ├── ArchiveConstants.cs ├── ArchiveDetails.cs ├── ArchiveSummary.cs ├── ArchiveSummaryUpdate.cs ├── ArchivesClientWrapper.cs ├── BuoyClientWrapper.cs ├── CheckUpdateCallbackWrapper.cs ├── Difference.cs ├── Event.cs ├── EventsClientWrapper.cs ├── GamePlayerStatistics.cs ├── GamePlayerStatisticsClientWrapper.cs ├── GameScopes.cs ├── GameSummary.cs ├── GameSummaryClientWrapper.cs ├── GameTrialProcessWrapper.cs ├── Games.cs ├── GamesClientWrapper.cs ├── IAchievementsClient.cs ├── IAntiAddictionCallback.cs ├── IAppUpdateClient.cs ├── IArchivesClient.cs ├── IBuoyClient.cs ├── ICheckUpdateCallback.cs ├── IEventsClient.cs ├── IGamePlayerStatisticsClient.cs ├── IGameSummaryClient.cs ├── IGamesClient.cs ├── IJosAppsClient.cs ├── IPlayersClient.cs ├── IProductClient.cs ├── IRankingsClient.cs ├── JosApps.cs ├── JosAppsClientWrapper.cs ├── OperationResult.cs ├── Player.cs ├── PlayerExtraInfo.cs ├── PlayersClientWrapper.cs ├── ProductClientWrapper.cs ├── ProductOrderInfo.cs ├── Ranking.cs ├── RankingScore.cs ├── RankingScores.cs ├── RankingVariant.cs ├── RankingsClientWrapper.cs └── ScoreSubmissionInfo.cs ├── HuaweiMobileServices.csproj ├── IAP ├── BaseReq.cs ├── ConsumeOwnedPurchaseReq.cs ├── ConsumeOwnedPurchaseResult.cs ├── EnvReadyResult.cs ├── IIapClient.cs ├── Iap.cs ├── IapApiException.cs ├── IapClientWrapper.cs ├── InAppPurchaseData.cs ├── IsSandboxActivatedReq.cs ├── IsSandboxActivatedResult.cs ├── OrderStatusCode.cs ├── OwnedPurchasesReq.cs ├── OwnedPurchasesResult.cs ├── ProductInfo.cs ├── ProductInfoReq.cs ├── ProductInfoResult.cs ├── PurchaseIntentReq.cs ├── PurchaseIntentResult.cs ├── PurchaseIntentWithPriceReq.cs ├── PurchaseResultInfo.cs ├── SignAlgorithmConstants.cs ├── StartIapActivityReq.cs └── StartIapActivityResult.cs ├── Id ├── AAIDResult.cs ├── AccountAuthManager.cs ├── AccountAuthParams.cs ├── AccountAuthParamsHelper.cs ├── AccountAuthResult.cs ├── AccountAuthService.cs ├── AccountIcon.cs ├── AuthAccount.cs ├── AuthHuaweiId.cs ├── HmsInstanceId.cs ├── HuaweiIdAuthManager.cs ├── HuaweiIdAuthParams.cs ├── HuaweiIdAuthParamsHelper.cs ├── HuaweiIdAuthService.cs ├── PermissionInfo.cs ├── ReadSmsConstant.cs ├── ReadSmsManager.cs └── Scope.cs ├── InAppComment ├── IOnInAppCommentCallBack.cs └── InAppComment.cs ├── Location ├── Activity │ ├── ActivityConversionData.cs │ ├── ActivityConversionInfo.cs │ ├── ActivityConversionRequest.cs │ ├── ActivityConversionResponse.cs │ ├── ActivityIdentification.cs │ ├── ActivityIdentificationData.cs │ ├── ActivityIdentificationResponse.cs │ ├── ActivityIdentificationService.cs │ └── LocationBroadcastReceiver.cs ├── BroadcastListener.cs ├── Geofences │ ├── GeoFenceBroadcastReceiver.cs │ ├── GeocoderService.cs │ ├── Geofence.cs │ ├── GeofenceData.cs │ ├── GeofenceErrorCodes.cs │ ├── GeofenceRequest.cs │ └── GeofenceService.cs ├── IBroadcastListener.cs ├── ILocationCallback.cs ├── Location │ ├── FusedLocationProviderClient.cs │ ├── GetFromLocationNameRequest.cs │ ├── GetFromLocationRequest.cs │ ├── HWLocation.cs │ ├── LocationAvailability.cs │ ├── LocationCallback.cs │ ├── LocationRequest.cs │ ├── LocationResult.cs │ ├── LocationServices.cs │ ├── LocationSettingsRequest.cs │ ├── LocationSettingsResponse.cs │ ├── LocationSettingsResult.cs │ ├── LocationSettingsStates.cs │ └── LocationSettingsStatusCodes.cs ├── LocationBridge.cs ├── LocationCallbackListener.cs ├── LocationManager.cs ├── LocationPermissions.cs ├── LogConfig.cs ├── Looper.cs └── SettingsClient.cs ├── ML ├── Common │ ├── MLAnalyzerFactory.cs │ ├── MLApplication.cs │ ├── MLException.cs │ └── MLFrame.cs ├── DownloadModel │ ├── MLLocalModel.cs │ ├── MLLocalModelManager.cs │ ├── MLModelDownloadListener.cs │ ├── MLModelDownloadStrategy.cs │ └── MLRemoteModel.cs ├── LanguageDetection │ ├── Cloud │ │ ├── MLRemoteLangDetector.cs │ │ └── MLRemoteLangDetectorSetting.cs │ ├── Local │ │ ├── MLLocalLangDetector.cs │ │ └── MLLocalLangDetectorSetting.cs │ ├── MLDetectedLang.cs │ └── MLLangDetectorFactory.cs ├── TextRecognition │ ├── MLLocalTextSetting.cs │ ├── MLRemoteTextSetting.cs │ ├── MLText.cs │ ├── MLTextAnalyzer.cs │ └── TextLanguage.cs ├── TextToSpeech │ ├── MLTtsAudioFragment.cs │ ├── MLTtsCallback.cs │ ├── MLTtsConfig.cs │ ├── MLTtsConstants.cs │ ├── MLTtsEngine.cs │ ├── MLTtsError.cs │ ├── MLTtsLocalModel.cs │ ├── MLTtsSpeaker.cs │ └── MLTtsWarn.cs └── Translate │ ├── Cloud │ ├── MLRemoteTranslateSetting.cs │ └── MLRemoteTranslator.cs │ ├── Local │ ├── MLLocalTranslateSetting.cs │ ├── MLLocalTranslator.cs │ └── MLLocalTranslatorModel.cs │ ├── MLTranslateLanguage.cs │ └── MLTranslatorFactory.cs ├── Modeling3D ├── MeterialGenerateSdk │ ├── Cloud │ │ ├── Abstract │ │ │ ├── Modeling3dTextureDownloadListener.cs │ │ │ ├── Modeling3dTexturePreviewListener.cs │ │ │ └── Modeling3dTextureUploadListener.cs │ │ ├── Modeling3dTextureDownloadResult.cs │ │ ├── Modeling3dTextureEngine.cs │ │ ├── Modeling3dTextureInitResult.cs │ │ ├── Modeling3dTextureQueryResult.cs │ │ ├── Modeling3dTextureSetting.cs │ │ ├── Modeling3dTextureTaskUtils.cs │ │ └── Modeling3dTextureUploadResult.cs │ ├── MeterialGenApplication.cs │ ├── Modeling3dTextureConstants.cs │ └── Modeling3dTextureErrors.cs ├── ModelingCaptureSdk │ ├── Abstract │ │ └── Modeling3dCaptureImageListener.cs │ ├── Modeling3dCaptureErrors.cs │ ├── Modeling3dCaptureImageEngine.cs │ └── Modeling3dCaptureSetting.cs └── ObjReconstructSdk │ ├── Cloud │ ├── Abstract │ │ ├── Modeling3dReconstructDownloadListener.cs │ │ ├── Modeling3dReconstructPreviewListener.cs │ │ └── Modeling3dReconstructUploadListener.cs │ ├── Modeling3dReconstructDownloadConfig.cs │ ├── Modeling3dReconstructDownloadResult.cs │ ├── Modeling3dReconstructEngine.cs │ ├── Modeling3dReconstructInitResult.cs │ ├── Modeling3dReconstructPreviewConfig.cs │ ├── Modeling3dReconstructQueryResult.cs │ ├── Modeling3dReconstructSetting.cs │ ├── Modeling3dReconstructTaskUtils.cs │ ├── Modeling3dReconstructUploadResult.cs │ └── Rebody │ │ ├── TaskImageInfo.cs │ │ └── TaskRelationMeta.cs │ ├── Modeling3dReconstructConstants.cs │ ├── Modeling3dReconstructErrors.cs │ └── ReconstructApplication.cs ├── Nearby ├── Discovery │ ├── BleSignal.cs │ ├── BroadcastOption.cs │ ├── ChannelPolicy.cs │ ├── ConnectCallBack.cs │ ├── ConnectInfo.cs │ ├── ConnectOption.cs │ ├── ConnectResult.cs │ ├── DiscoveryEngine.cs │ ├── Distance.cs │ ├── IConnectCallBack.cs │ ├── IScanEndpointCallback.cs │ ├── Policy.cs │ ├── ScanEndpointCallback.cs │ ├── ScanEndpointInfo.cs │ └── ScanOption.cs ├── Message │ ├── BeaconId.cs │ ├── GetCallback.cs │ ├── GetOption.cs │ ├── IMessageHandler.cs │ ├── IStatusCallback.cs │ ├── Message.cs │ ├── MessageEngine.cs │ ├── MessageHandler.cs │ ├── MessageOption.cs │ ├── MessagePicker.cs │ ├── Policy.cs │ ├── PutCallback.cs │ ├── PutOption.cs │ └── StatusCallback.cs ├── Nearby.cs ├── NearbyApiContext.cs ├── StatusCode.cs ├── Transfer │ ├── Data.cs │ ├── DataCallback.cs │ ├── IDataCallback.cs │ ├── TransferEngine.cs │ └── TransferStateUpdate.cs └── WifiShare │ ├── IWifiShareCallback.cs │ ├── WifiShareCallback.cs │ ├── WifiShareEngine.cs │ └── WifiSharePolicy.cs ├── Push ├── FcmPushProxy.cs ├── HMSProfile.cs ├── HmsMessaging.cs ├── IPushListener.cs ├── NotificationData.cs ├── NotificationListenerWrapper.cs ├── OdidResult.cs ├── OpenDevice.cs ├── OpenDeviceClient.cs ├── ProxySettings.cs ├── PushListenerWrapper.cs ├── PushManager.cs └── RemoteMessage.cs ├── RemoteConfig ├── AGConnectConfig.cs ├── AGConnectConfigWrapper.cs ├── ConfigValues.cs └── IAGConnectConfig.cs ├── Scan ├── HmsBuildBitmapOption.cs ├── HmsScan.cs ├── HmsScanAnalyzer.cs ├── HmsScanAnalyzerOptions.cs ├── HmsScanBase.cs ├── OnLightVisibleCallBack │ ├── IOnLightVisibleCallBack.cs │ └── OnLightVisibleCallBackWrapper.cs ├── OnResultCallback │ ├── IOnResultCallback.cs │ └── OnResultCallbackWrapper.cs ├── Rect.cs ├── RemoteView.cs ├── ScanBridge │ └── ScanBridgeCallbackWrapper.cs └── ScanUtil.cs ├── Utils ├── AndroidAccount.cs ├── AndroidBitmap.cs ├── AndroidBitmapFactory.cs ├── AndroidBundle.cs ├── AndroidByteBuffer.cs ├── AndroidContext.cs ├── AndroidFilePicker.cs ├── AndroidFolderPicker.cs ├── AndroidImage.cs ├── AndroidIntent.cs ├── AndroidJavaClassExtensions.cs ├── AndroidJavaObjectExtensions.cs ├── AndroidJavaTypeConverter.cs ├── AndroidPendingIntent.cs ├── AndroidToast.cs ├── AndroidUtils.cs ├── ArchiveBridgeWrapper.cs ├── Bundle.cs ├── ClassLoader.cs ├── DictionaryOperations.cs ├── EnumerableUtils.cs ├── GenericBridgeCallbackWrapper.cs ├── GenericBridgeWrapper.cs ├── HMSDispatcher.cs ├── HMSException.cs ├── ImageView.ScaleType.cs ├── Java.io.cs ├── JavaObjectWrapper.cs ├── JavaReflectionUtils.cs ├── Map.cs ├── Pair.cs ├── ParameterUtils.cs ├── Point.cs ├── ResultCodes.cs ├── Set.cs ├── Uri.cs └── Void.cs └── libs ├── Unity2018 ├── UnityEngine.AIModule.dll ├── UnityEngine.ARModule.dll ├── UnityEngine.AccessibilityModule.dll ├── UnityEngine.AnimationModule.dll ├── UnityEngine.AssetBundleModule.dll ├── UnityEngine.AudioModule.dll ├── UnityEngine.ClothModule.dll ├── UnityEngine.ClusterInputModule.dll ├── UnityEngine.ClusterRendererModule.dll ├── UnityEngine.CoreModule.dll ├── UnityEngine.CrashReportingModule.dll ├── UnityEngine.DirectorModule.dll ├── UnityEngine.GameCenterModule.dll ├── UnityEngine.GridModule.dll ├── UnityEngine.IMGUIModule.dll ├── UnityEngine.ImageConversionModule.dll ├── UnityEngine.InputModule.dll ├── UnityEngine.JSONSerializeModule.dll ├── UnityEngine.ParticleSystemModule.dll ├── UnityEngine.ParticlesLegacyModule.dll ├── UnityEngine.PerformanceReportingModule.dll ├── UnityEngine.Physics2DModule.dll ├── UnityEngine.PhysicsModule.dll ├── UnityEngine.ScreenCaptureModule.dll ├── UnityEngine.SharedInternalsModule.dll ├── UnityEngine.SpriteMaskModule.dll ├── UnityEngine.SpriteShapeModule.dll ├── UnityEngine.StyleSheetsModule.dll ├── UnityEngine.TerrainModule.dll ├── UnityEngine.TerrainPhysicsModule.dll ├── UnityEngine.TextRenderingModule.dll ├── UnityEngine.TilemapModule.dll ├── UnityEngine.UIElementsModule.dll ├── UnityEngine.UIModule.dll ├── UnityEngine.UNETModule.dll ├── UnityEngine.UnityAnalyticsModule.dll ├── UnityEngine.UnityConnectModule.dll ├── UnityEngine.UnityWebRequestAudioModule.dll ├── UnityEngine.UnityWebRequestModule.dll ├── UnityEngine.UnityWebRequestTextureModule.dll ├── UnityEngine.UnityWebRequestWWWModule.dll ├── UnityEngine.VRModule.dll ├── UnityEngine.VehiclesModule.dll ├── UnityEngine.VideoModule.dll ├── UnityEngine.WebModule.dll ├── UnityEngine.WindModule.dll └── UnityEngine.dll └── Unity2019 ├── UnityEngine.AIModule.dll ├── UnityEngine.ARModule.dll ├── UnityEngine.AccessibilityModule.dll ├── UnityEngine.AndroidJNIModule.dll ├── UnityEngine.AnimationModule.dll ├── UnityEngine.AssetBundleModule.dll ├── UnityEngine.AudioModule.dll ├── UnityEngine.ClothModule.dll ├── UnityEngine.ClusterInputModule.dll ├── UnityEngine.ClusterRendererModule.dll ├── UnityEngine.CoreModule.dll ├── UnityEngine.CrashReportingModule.dll ├── UnityEngine.DSPGraphModule.dll ├── UnityEngine.DirectorModule.dll ├── UnityEngine.GameCenterModule.dll ├── UnityEngine.GridModule.dll ├── UnityEngine.HotReloadModule.dll ├── UnityEngine.IMGUIModule.dll ├── UnityEngine.ImageConversionModule.dll ├── UnityEngine.InputLegacyModule.dll ├── UnityEngine.InputModule.dll ├── UnityEngine.JSONSerializeModule.dll ├── UnityEngine.LocalizationModule.dll ├── UnityEngine.ParticleSystemModule.dll ├── UnityEngine.PerformanceReportingModule.dll ├── UnityEngine.Physics2DModule.dll ├── UnityEngine.PhysicsModule.dll ├── UnityEngine.ProfilerModule.dll ├── UnityEngine.ScreenCaptureModule.dll ├── UnityEngine.SharedInternalsModule.dll ├── UnityEngine.SpriteMaskModule.dll ├── UnityEngine.SpriteShapeModule.dll ├── UnityEngine.StreamingModule.dll ├── UnityEngine.SubstanceModule.dll ├── UnityEngine.SubsystemsModule.dll ├── UnityEngine.TLSModule.dll ├── UnityEngine.TerrainModule.dll ├── UnityEngine.TerrainPhysicsModule.dll ├── UnityEngine.TextCoreModule.dll ├── UnityEngine.TextRenderingModule.dll ├── UnityEngine.TilemapModule.dll ├── UnityEngine.UIElementsModule.dll ├── UnityEngine.UIModule.dll ├── UnityEngine.UNETModule.dll ├── UnityEngine.UmbraModule.dll ├── UnityEngine.UnityAnalyticsModule.dll ├── UnityEngine.UnityConnectModule.dll ├── UnityEngine.UnityTestProtocolModule.dll ├── UnityEngine.UnityWebRequestAssetBundleModule.dll ├── UnityEngine.UnityWebRequestAudioModule.dll ├── UnityEngine.UnityWebRequestModule.dll ├── UnityEngine.UnityWebRequestTextureModule.dll ├── UnityEngine.UnityWebRequestWWWModule.dll ├── UnityEngine.VFXModule.dll ├── UnityEngine.VRModule.dll ├── UnityEngine.VehiclesModule.dll ├── UnityEngine.VideoModule.dll ├── UnityEngine.WindModule.dll ├── UnityEngine.XRModule.dll └── UnityEngine.dll /android-wrapper/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | .DS_Store 6 | /build 7 | /captures 8 | .externalNativeBuild 9 | .cxx 10 | -------------------------------------------------------------------------------- /android-wrapper/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android-wrapper/app/libs/UnityPlayer.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/android-wrapper/app/libs/UnityPlayer.jar -------------------------------------------------------------------------------- /android-wrapper/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/BridgeType.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity; 2 | 3 | public interface BridgeType { 4 | int GENERIC = 0; 5 | int STATUS = 1; 6 | int ARCHIVE = 2; 7 | int IN_APP_COMMENT = 1001; 8 | int SCAN = 1002; 9 | int FILE_PICKER = 1003; 10 | } 11 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/GenericBridgeCallback.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity; 2 | 3 | import android.content.Intent; 4 | 5 | public interface GenericBridgeCallback { 6 | void onSuccess(final Intent data); 7 | void onFailure(final Exception exception); 8 | } 9 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/AdListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public interface AdListener { 4 | void onAdClosed(); 5 | void onAdFailed(int errorCode); 6 | void onAdLeave(); 7 | void onAdOpened(); 8 | void onAdLoaded(); 9 | void onAdClicked(); 10 | void onAdImpression(); 11 | } 12 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/OnMetadataChangedListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public interface OnMetadataChangedListener { 4 | void onMetadataChanged(); 5 | } 6 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/OnMetadataChangedListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public class OnMetadataChangedListenerWrapper extends com.huawei.hms.ads.reward.OnMetadataChangedListener { 4 | 5 | private final OnMetadataChangedListener listener; 6 | 7 | public OnMetadataChangedListenerWrapper(final OnMetadataChangedListener listener) { 8 | super(); 9 | this.listener = listener; 10 | } 11 | 12 | @Override 13 | public void onMetadataChanged() { 14 | listener.onMetadataChanged(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/RewardAdLoadListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public interface RewardAdLoadListener { 4 | void onRewardedLoaded(); 5 | void onRewardAdFailedToLoad(final int errorCode); 6 | } 7 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/RewardAdLoadListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public class RewardAdLoadListenerWrapper extends com.huawei.hms.ads.reward.RewardAdLoadListener { 4 | 5 | private final RewardAdLoadListener listener; 6 | 7 | public RewardAdLoadListenerWrapper(final RewardAdLoadListener listener) { 8 | super(); 9 | this.listener = listener; 10 | } 11 | 12 | @Override 13 | public void onRewardAdFailedToLoad(int errorCode) { 14 | super.onRewardAdFailedToLoad(errorCode); 15 | listener.onRewardAdFailedToLoad(errorCode); 16 | } 17 | 18 | @Override 19 | public void onRewardedLoaded() { 20 | super.onRewardedLoaded(); 21 | listener.onRewardedLoaded(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/RewardAdStatusListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | import com.huawei.hms.ads.reward.Reward; 4 | 5 | public interface RewardAdStatusListener { 6 | void onRewardAdClosed(); 7 | void onRewardAdFailedToShow(final int errorCode); 8 | void onRewardAdOpened(); 9 | void onRewarded(final Reward reward); 10 | } 11 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/SplashAdDisplayListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public interface SplashAdDisplayListener { 4 | void onAdClick(); 5 | 6 | void onAdShowed(); 7 | } 8 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/SplashAdDisplayListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public class SplashAdDisplayListenerWrapper extends com.huawei.hms.ads.splash.SplashAdDisplayListener { 4 | 5 | private final SplashAdDisplayListener listener; 6 | 7 | public SplashAdDisplayListenerWrapper(final SplashAdDisplayListener listener) { 8 | super(); 9 | this.listener = listener; 10 | } 11 | 12 | @Override 13 | public void onAdClick() { 14 | super.onAdClick(); 15 | listener.onAdClick(); 16 | } 17 | 18 | @Override 19 | public void onAdShowed() { 20 | super.onAdShowed(); 21 | listener.onAdShowed(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/SplashAdLoadListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | public interface SplashAdLoadListener { 4 | void onAdDismissed(); 5 | 6 | void onAdFailedToLoad(final int errorCode); 7 | 8 | void onAdLoaded(); 9 | } 10 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/SplashAdLoadListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads; 2 | 3 | import com.huawei.hms.ads.splash.SplashView; 4 | 5 | public class SplashAdLoadListenerWrapper extends SplashView.SplashAdLoadListener { 6 | private final SplashAdLoadListener listener; 7 | 8 | public SplashAdLoadListenerWrapper(final SplashAdLoadListener listener) { 9 | super(); 10 | this.listener = listener; 11 | } 12 | 13 | @Override 14 | public void onAdDismissed() { 15 | super.onAdDismissed(); 16 | listener.onAdDismissed(); 17 | } 18 | 19 | @Override 20 | public void onAdFailedToLoad(int errorCode) { 21 | super.onAdFailedToLoad(errorCode); 22 | listener.onAdFailedToLoad(errorCode); 23 | } 24 | 25 | @Override 26 | public void onAdLoaded() { 27 | super.onAdLoaded(); 28 | listener.onAdLoaded(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/installreferrer/bridge/InstallReferrerStateCallbackListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads.installreferrer.bridge; 2 | 3 | public interface InstallReferrerStateCallbackListener { 4 | void onInstallReferrerSetupFinished(int responseCode); 5 | void onInstallReferrerServiceDisconnected(); 6 | } 7 | 8 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/installreferrer/bridge/InstallReferrerStateCallbackWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads.installreferrer.bridge; 2 | 3 | import com.huawei.hms.ads.installreferrer.api.InstallReferrerStateListener; 4 | 5 | public class InstallReferrerStateCallbackWrapper implements InstallReferrerStateListener { 6 | 7 | private final InstallReferrerStateCallbackListener listener; 8 | 9 | public InstallReferrerStateCallbackWrapper(InstallReferrerStateCallbackListener listener) { 10 | super(); 11 | this.listener = listener; 12 | } 13 | 14 | @Override 15 | public void onInstallReferrerSetupFinished(int i) { 16 | listener.onInstallReferrerSetupFinished(i); 17 | } 18 | 19 | @Override 20 | public void onInstallReferrerServiceDisconnected() { 21 | listener.onInstallReferrerServiceDisconnected(); 22 | } 23 | } -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/ads/nativead/HmsNativeView.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.ads.nativead; 2 | 3 | 4 | import android.content.Context; 5 | import android.util.Log; 6 | 7 | import com.huawei.hms.ads.nativead.NativeAd; 8 | import com.huawei.hms.ads.nativead.NativeView; 9 | 10 | public class HmsNativeView { 11 | 12 | NativeView nativeView; 13 | 14 | public HmsNativeView(Context context) { 15 | nativeView = new NativeView(context); 16 | } 17 | 18 | public void setNativeAd(NativeAd nativeAd) 19 | { 20 | nativeView.setNativeAd(nativeAd); 21 | } 22 | 23 | public void performClick() 24 | { 25 | nativeView.performClick(); 26 | } 27 | 28 | public void callOnClick() 29 | { 30 | nativeView.callOnClick(); 31 | } 32 | 33 | public void gotoWhyThisAdPage() 34 | { 35 | nativeView.gotoWhyThisAdPage(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/helper/FilePicker/FilePickerBridgeCallback.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.helper.FilePicker; 2 | 3 | import android.content.Intent; 4 | import android.graphics.Bitmap; 5 | 6 | public interface FilePickerBridgeCallback { 7 | void onSuccess(final Intent intent, final Bitmap bitmap); 8 | void onFailure(final Exception exception); 9 | } 10 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/inAppComment/InAppCommentListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.inAppComment; 2 | 3 | public interface InAppCommentListener { 4 | void onInAppCommentResult(int code); 5 | } 6 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/location/BroadcastListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.location; 2 | 3 | import android.content.Intent; 4 | 5 | public interface BroadcastListener { 6 | 7 | void onReceive(Intent intent); 8 | } 9 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/location/BroadcastWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.location; 2 | 3 | import android.content.Intent; 4 | 5 | public class BroadcastWrapper implements BroadcastListener { 6 | 7 | private final BroadcastListener listener; 8 | 9 | public BroadcastWrapper(BroadcastListener listener) { 10 | super(); 11 | this.listener = listener; 12 | } 13 | 14 | @Override 15 | public void onReceive(Intent intent) { 16 | listener.onReceive(intent); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/location/LocationCallbackListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.location; 2 | 3 | import com.huawei.hms.location.LocationAvailability; 4 | import com.huawei.hms.location.LocationResult; 5 | 6 | public interface LocationCallbackListener { 7 | 8 | void onLocationResult(LocationResult locationResult); 9 | void onLocationAvailability(LocationAvailability locationAvailability); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/DataListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.transfer.Data; 4 | import com.huawei.hms.nearby.transfer.TransferStateUpdate; 5 | 6 | public interface DataListener { 7 | void onReceived(String endpointId, Data data); 8 | void onTransferUpdate(String endpointId, TransferStateUpdate update); 9 | } 10 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/DataListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.transfer.Data; 4 | import com.huawei.hms.nearby.transfer.TransferStateUpdate; 5 | 6 | public class DataListenerWrapper extends com.huawei.hms.nearby.transfer.DataCallback { 7 | 8 | private final DataListener listener; 9 | 10 | public DataListenerWrapper(final DataListener listener) { 11 | super(); 12 | this.listener = listener; 13 | } 14 | @Override 15 | public void onReceived(String s, Data data) { 16 | listener.onReceived(s, data); 17 | } 18 | @Override 19 | public void onTransferUpdate(String s, TransferStateUpdate transferStateUpdate) { 20 | listener.onTransferUpdate(s, transferStateUpdate); 21 | } 22 | } -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/NearbyListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.discovery.ConnectInfo; 4 | import com.huawei.hms.nearby.discovery.ConnectResult; 5 | 6 | public interface NearbyListener { 7 | void onEstablish(String p0, ConnectInfo p1); 8 | void onResult(String p0, ConnectResult p1); 9 | void onDisconnected(String p0); 10 | } 11 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/NearbyListenerWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.discovery.ConnectInfo; 4 | import com.huawei.hms.nearby.discovery.ConnectResult; 5 | 6 | public class NearbyListenerWrapper extends com.huawei.hms.nearby.discovery.ConnectCallback { 7 | 8 | private final NearbyListener listener; 9 | 10 | public NearbyListenerWrapper(final NearbyListener listener) { 11 | super(); 12 | this.listener = listener; 13 | } 14 | 15 | @Override 16 | public void onEstablish(String s, ConnectInfo connectInfo) { 17 | listener.onEstablish(s, connectInfo); 18 | } 19 | 20 | @Override 21 | public void onResult(String s, ConnectResult connectResult) { 22 | listener.onResult(s, connectResult); 23 | } 24 | 25 | @Override 26 | public void onDisconnected(String s) { 27 | listener.onDisconnected(s); 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/ScanEndpointListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.discovery.ScanEndpointInfo; 4 | 5 | public interface ScanEndpointListener { 6 | void onFound(String endpointId, ScanEndpointInfo info); 7 | void onLost(String endpointId); 8 | } 9 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/ScanEndpointWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.discovery.ScanEndpointInfo; 4 | 5 | public class ScanEndpointWrapper extends com.huawei.hms.nearby.discovery.ScanEndpointCallback { 6 | 7 | private final ScanEndpointListener listener; 8 | 9 | public ScanEndpointWrapper(final ScanEndpointListener listener) { 10 | super(); 11 | this.listener = listener; 12 | } 13 | @Override 14 | public void onFound(String s, ScanEndpointInfo scanEndpointInfo) { 15 | listener.onFound( s, scanEndpointInfo); 16 | } 17 | @Override 18 | public void onLost(String s) { 19 | listener.onLost(s); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/nearby/WifiShareListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.nearby; 2 | 3 | import com.huawei.hms.nearby.discovery.ScanEndpointInfo; 4 | 5 | public interface WifiShareListener { 6 | void onFound(String endpointId, ScanEndpointInfo info); 7 | void onLost(String endpointId); 8 | void onFetchAuthCode(String endpointId, String authCode); 9 | void onWifiShareResult(String endpointId, int statusCode); 10 | } 11 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/push/NotificationListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.push; 2 | 3 | public interface NotificationListener { 4 | void onNotificationMessage(PushBridge.NotificationData notificationData); 5 | } 6 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/push/PushListener.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.push; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.huawei.hms.push.RemoteMessage; 6 | 7 | public interface PushListener { 8 | void onNewToken(String token); 9 | void onNewToken(String token, Bundle bundle); 10 | void onTokenError(Exception e); 11 | void onTokenError(Exception exception, Bundle bundle); 12 | void onMessageReceived(RemoteMessage remoteMessage); 13 | void onMessageSent(String msgId); 14 | void onMessageDelivered(String msgId, Exception exception); 15 | void onSendError(String msgId, Exception exception); 16 | } 17 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/scan/OnLightVisibleCallBack.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.scan; 2 | 3 | public interface OnLightVisibleCallBack { 4 | void onVisibleChanged(boolean visible); 5 | } 6 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/scan/OnLightVisibleCallBackWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.scan; 2 | 3 | public class OnLightVisibleCallBackWrapper implements com.huawei.hms.hmsscankit.OnLightVisibleCallBack { 4 | 5 | private final OnLightVisibleCallBack listener; 6 | 7 | public OnLightVisibleCallBackWrapper(final OnLightVisibleCallBack listener) { 8 | super(); 9 | this.listener = listener; 10 | } 11 | 12 | @Override 13 | public void onVisibleChanged(boolean b) { 14 | listener.onVisibleChanged(b); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/scan/OnResultCallback.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.scan; 2 | 3 | import com.huawei.hms.ml.scan.HmsScan; 4 | 5 | public interface OnResultCallback { 6 | void onResult(HmsScan[] result); 7 | } 8 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/scan/OnResultCallbackWrapper.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.scan; 2 | 3 | import com.huawei.hms.ml.scan.HmsScan; 4 | 5 | public class OnResultCallbackWrapper implements com.huawei.hms.hmsscankit.OnResultCallback { 6 | 7 | private final OnResultCallback listener; 8 | 9 | public OnResultCallbackWrapper(final OnResultCallback listener) { 10 | super(); 11 | this.listener = listener; 12 | } 13 | 14 | @Override 15 | public void onResult(HmsScan[] hmsScans) { 16 | listener.onResult(hmsScans); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /android-wrapper/app/src/main/java/org/m0skit0/android/hms/unity/scan/bridge/ScanBridgeCallback.java: -------------------------------------------------------------------------------- 1 | package org.m0skit0.android.hms.unity.scan.bridge; 2 | 3 | import com.huawei.hms.ml.scan.HmsScan; 4 | 5 | public interface ScanBridgeCallback { 6 | void onSuccess(final String scanText, final HmsScan hmsScan); 7 | void onFailure(final Exception exception); 8 | } -------------------------------------------------------------------------------- /android-wrapper/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android-wrapper/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | maven {url 'http://developer.huawei.com/repo/'} 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.6.4' 11 | classpath 'com.huawei.agconnect:agcp:1.4.2.300' 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | google() 22 | jcenter() 23 | maven {url 'http://developer.huawei.com/repo/'} 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android-wrapper/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/android-wrapper/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android-wrapper/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Apr 14 17:05:24 CEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip 7 | -------------------------------------------------------------------------------- /android-wrapper/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name='HMS Unity Wrapper' 2 | include ':app' 3 | -------------------------------------------------------------------------------- /hms-sdk-unity/.github/workflows/dotnetcore.yml: -------------------------------------------------------------------------------- 1 | name: .NET Core 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | build: 11 | 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - uses: actions/checkout@v2 16 | - name: Setup .NET Core 17 | uses: actions/setup-dotnet@v1 18 | with: 19 | dotnet-version: 3.1.101 20 | - name: Install dependencies 21 | run: dotnet restore 22 | - name: Build 23 | run: dotnet build --configuration Release --no-restore 24 | - name: Test 25 | run: dotnet test --no-restore --verbosity normal 26 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/APM/AddCustomTrace.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.APM 6 | { 7 | public class AddCustomTrace : JavaObjectWrapper 8 | { 9 | public AddCustomTrace(AndroidJavaObject javaObject) : base(javaObject) { } 10 | public AddCustomTrace() : base("com.huawei.agconnect.apms.instrument.AddCustomTrace") { } 11 | public string Name() => CallAsString("name"); 12 | public bool Enabled() => Call("enabled"); 13 | } 14 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/AdSize.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Ads 5 | { 6 | public class AdSize : JavaObjectWrapper 7 | { 8 | //wrapper for com.huawei.hms.ads.AdSize 9 | //https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/adsize-0000001050064882 10 | 11 | public AdSize(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public AdSize(int width, int height) : base("com.huawei.hms.ads.AdSize", width, height) { } 13 | 14 | private static AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.AdSize"); 15 | 16 | public int Width 17 | { 18 | get => sJavaClass.Get("getWidth"); 19 | } 20 | 21 | public int Height 22 | { 23 | get => sJavaClass.Get("getHeight"); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/AdvertiserInfo.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Ads 5 | { 6 | public class AdvertiserInfo : JavaObjectWrapper 7 | { 8 | //wrapper for com.huawei.hms.ads.AdvertiserInfo 9 | //https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/advertiserinfo-0000001420607914 10 | 11 | public AdvertiserInfo(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | //private static AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.AdvertiserInfo"); 14 | 15 | public int Sequence 16 | { 17 | get => Call("getSeq").AsInt(); 18 | } 19 | 20 | public string Key 21 | { 22 | get => Call("getKey"); 23 | } 24 | 25 | public string Value 26 | { 27 | get => Call("getValue"); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/Gender.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | using UnityEngine; 4 | 5 | // Wrapper for com.huawei.hms.ads.Gender 6 | public static class Gender 7 | { 8 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.Gender"); 9 | 10 | public static string UNKNOWN = sJavaClass.GetStatic("UNKNOWN"); 11 | 12 | public static string MALE = sJavaClass.GetStatic("MALE"); 13 | 14 | public static string FEMALE = sJavaClass.GetStatic("FEMALE"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IAdListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | public interface IAdListener 4 | { 5 | void OnAdClosed(); 6 | void OnAdFailed(int reason); 7 | void OnAdLeave(); 8 | void OnAdOpened(); 9 | void OnAdLoaded(); 10 | void OnAdClicked(); 11 | void OnAdImpression(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IConsentUpdateListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | using System; 4 | using static HuaweiMobileServices.Ads.Consent; 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | public interface IConsentUpdateListener 9 | { 10 | void OnFail(String desc); 11 | 12 | void OnSuccess(ConsentStatus consentStatus, bool isNeedConsent, IList adProviders); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IOnMetadataChangedListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | public interface IOnMetadataChangedListener 4 | { 5 | void OnMetadataChanged(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IRewardAdListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | 4 | // Wrapper for com.huawei.hms.ads.reward.RewardAdListener 5 | public interface IRewardAdListener 6 | { 7 | void OnRewarded(Reward reward); 8 | 9 | void OnRewardAdClosed(); 10 | 11 | void OnRewardAdFailedToLoad(int errorCode); 12 | 13 | void OnRewardAdLeftApp(); 14 | 15 | void OnRewardAdLoaded(); 16 | 17 | void OnRewardAdOpened(); 18 | 19 | void OnRewardAdCompleted(); 20 | 21 | void OnRewardAdStarted(); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IRewardAdLoadListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | public interface IRewardAdLoadListener 4 | { 5 | void OnRewardAdFailedToLoad(int errorCode); 6 | void OnRewardedLoaded(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/IRewardAdStatusListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | public interface IRewardAdStatusListener 4 | { 5 | void OnRewardAdClosed(); 6 | void OnRewardAdFailedToShow(int errorCode); 7 | void OnRewardAdOpened(); 8 | void OnRewarded(Reward reward); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/InstallReferrer/InstallReferrerResponse.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads.InstallReferrer 2 | { 3 | public enum InstallReferrerResponse 4 | { 5 | SERVICE_DISCONNECTED = -1, 6 | OK = 0, 7 | SERVICE_UNAVAILABLE = 1, 8 | FEATURE_NOT_SUPPORTED = 2, 9 | DEVELOPER_ERROR = 3 10 | } 11 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/InstallReferrer/ReferrerDetails.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads.InstallReferrer 2 | { 3 | using HuaweiMobileServices.Utils; 4 | 5 | using UnityEngine; 6 | 7 | public class ReferrerDetails : JavaObjectWrapper 8 | { 9 | public ReferrerDetails(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public long GetInstallBeginTimestampMillisecond() => Call("getInstallBeginTimestampMillisecond"); 12 | public long GetReferrerClickTimestampMillisecond() => Call("getReferrerClickTimestampMillisecond"); 13 | public string GetInstallReferrer() => Call("getInstallReferrer"); 14 | public string GetInstallChannel() => Call("getInstallChannel"); 15 | } 16 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/InstallReferrer/StateBridge/IInstallReferrerStateCallback.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads.InstallReferrer 2 | { 3 | public interface IInstallReferrerStateCallback 4 | { 5 | void onInstallReferrerSetupFinished(int responseCode); 6 | void onInstallReferrerServiceDisconnected(); 7 | } 8 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/InstallReferrer/StateBridge/InstallReferrerStateBridge.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads.InstallReferrer 2 | { 3 | using HuaweiMobileServices.Utils; 4 | 5 | using UnityEngine; 6 | 7 | public class InstallReferrerStateBridge : JavaObjectWrapper 8 | { 9 | public InstallReferrerStateBridge(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("org.m0skit0.android.hms.unity.ads.installreferrer.bridge.InstallReferrerStateBridge"); 12 | public static InstallReferrerStateListener GetInstallReferrerStateCallback() => javaClass.CallStaticAsWrapper("getInstallReferrerStateListener"); 13 | public static void SetInstallReferrerCallbackListener(InstallReferrerStateCallbackListener listener) => javaClass.CallStatic("setInstallReferrerCallbackListener", listener.JavaObject); 14 | } 15 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/NativeAd/IDislikeAdListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Ads.NativeAd 4 | { 5 | public class DislikeAdListener : AndroidJavaProxy 6 | { 7 | //wrapper for com.huawei.hms.ads.nativead.DislikeAdListener 8 | //https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/dislikeadlistener-0000001050064902 9 | 10 | private readonly IDislikeAdListener IdislikeAdListener; 11 | 12 | public DislikeAdListener(IDislikeAdListener dislikeAdListener) : base("com.huawei.hms.ads.nativead.DislikeAdListener") 13 | { 14 | IdislikeAdListener = dislikeAdListener; 15 | } 16 | public void onAdDisliked() 17 | { 18 | IdislikeAdListener.onAdDisliked(); 19 | } 20 | } 21 | 22 | public interface IDislikeAdListener 23 | { 24 | void onAdDisliked(); 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/NativeAd/IDislikeAdReason.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Ads.NativeAd 4 | { 5 | public class DislikeAdReason : AndroidJavaProxy 6 | { 7 | //wrapper for com.huawei.hms.ads.nativead.DislikeAdReason 8 | //https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/dislikeadreason-0000001050066851 9 | 10 | private readonly IDislikeAdReason IDislikeAdReason; 11 | 12 | public DislikeAdReason(IDislikeAdReason DislikeAdReason) : base("com.huawei.hms.ads.nativead.DislikeAdReason") 13 | { 14 | IDislikeAdReason = DislikeAdReason; 15 | } 16 | public string getDescription() 17 | { 18 | return IDislikeAdReason.getDescription(); 19 | } 20 | } 21 | 22 | public interface IDislikeAdReason 23 | { 24 | string getDescription(); 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/NativeAd/INativeAdLoadedListener.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Ads.NativeAd 7 | { 8 | public class NativeAdLoadedListener : AndroidJavaProxy 9 | { 10 | 11 | private readonly INativeAdLoadedListener InativeAdLoadedListener; 12 | 13 | public NativeAdLoadedListener(INativeAdLoadedListener nativeAdLoadedListener) : base("com.huawei.hms.ads.nativead.NativeAd$NativeAdLoadedListener") 14 | { 15 | InativeAdLoadedListener = nativeAdLoadedListener; 16 | } 17 | public void onNativeAdLoaded(AndroidJavaObject nativeAd) 18 | { 19 | InativeAdLoadedListener.onNativeAdLoaded((NativeAd) nativeAd); 20 | } 21 | } 22 | 23 | public interface INativeAdLoadedListener 24 | { 25 | void onNativeAdLoaded(NativeAd nativeAd); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/NonPersonalizedAd.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | using UnityEngine; 4 | 5 | // Wrapper for com.huawei.hms.ads.NonPersonalizedAd 6 | public static class NonPersonalizedAd 7 | { 8 | 9 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.NonPersonalizedAd"); 10 | 11 | public static int ALLOW_NON_PERSONALIZED = sJavaClass.GetStatic("ALLOW_NON_PERSONALIZED"); 12 | 13 | public static int ALLOW_ALL = sJavaClass.GetStatic("ALLOW_ALL"); 14 | 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/PromoteInfo.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Ads 8 | { 9 | //https://developer.huawei.com/consumer/en/doc/HMSCore-References/promoteinfo-0000001750234640 10 | //https://developer.huawei.com/consumer/en/doc/HMSCore-References/nativead-0000001133473814#section6726104634610 11 | // Wrapper for com.huawei.hms.ads.base.PromoteInfo 12 | // com.huawei.openalliance.ad.beans.metadata.PromoteInfo 13 | public class PromoteInfo : JavaObjectWrapper 14 | { 15 | public PromoteInfo(AndroidJavaObject javaObject) : base(javaObject) { } 16 | 17 | /*Promotion subtype. 18 | 1- Quick app. 19 | 2- WeChat mini-program. 20 | */ 21 | public int Type => Call("getType"); 22 | 23 | public string Name => Call("getName"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/Reward.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.ads.reward.Reward 7 | public class Reward : JavaObjectWrapper 8 | { 9 | 10 | 11 | public Reward(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public string Name => CallAsString("getName"); 14 | 15 | public int Amount => Call("getAmount"); 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/TagForChild.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | using UnityEngine; 4 | 5 | // Wrapper for com.huawei.hms.ads.TagForChild 6 | public static class TagForChild 7 | { 8 | 9 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.TagForChild"); 10 | 11 | public static int TAG_FOR_CHILD_PROTECTION_UNSPECIFIED = sJavaClass.GetStatic("TAG_FOR_CHILD_PROTECTION_UNSPECIFIED"); 12 | 13 | public static int TAG_FOR_CHILD_PROTECTION_FALSE = sJavaClass.GetStatic("TAG_FOR_CHILD_PROTECTION_FALSE"); 14 | 15 | public static int TAG_FOR_CHILD_PROTECTION_TRUE = sJavaClass.GetStatic("TAG_FOR_CHILD_PROTECTION_TRUE"); 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/UnderAge.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Ads 2 | { 3 | 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.ads.UnderAge 7 | public static class UnderAge 8 | { 9 | 10 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.UnderAge"); 11 | 12 | public static int PROMISE_TRUE = sJavaClass.GetStatic("PROMISE_TRUE"); 13 | 14 | public static int PROMISE_FALSE = sJavaClass.GetStatic("PROMISE_FALSE"); 15 | 16 | public static int PROMISE_UNSPECIFIED = sJavaClass.GetStatic("PROMISE_UNSPECIFIED"); 17 | 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Ads/Video.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Ads 5 | { 6 | public class Video : JavaObjectWrapper 7 | { 8 | //wrapper for com.huawei.hms.ads.Video 9 | //https://developer.huawei.com/consumer/en/doc/development/HMSCore-References/video-0000001194699274 10 | 11 | public Video(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | private static AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.ads.Video"); 14 | 15 | public Uri Uri 16 | { 17 | get => CallAsWrapper("getUri"); 18 | } 19 | 20 | public float AspectRatio 21 | { 22 | get => sJavaClass.Get("getAspectRatio"); 23 | } 24 | 25 | public int Duration 26 | { 27 | get => sJavaClass.Get("getDuration"); 28 | } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Analytics/HAUserProfileType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.Analytics 6 | { 7 | using HuaweiMobileServices.Utils; 8 | using UnityEngine; 9 | 10 | public class HAUserProfileType : JavaObjectWrapper 11 | { 12 | public HAUserProfileType(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.analytics.type.HAUserProfileType"); 15 | 16 | public static string USERLEVEL => androidJavaClass.GetStatic("USERLEVEL"); 17 | 18 | public static string ISFULLLEVEL => androidJavaClass.GetStatic("ISFULLLEVEL"); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Analytics/HiAnalyticsTools.cs: -------------------------------------------------------------------------------- 1 |  2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Analystics 5 | { 6 | public static class HiAnalyticsTools 7 | { 8 | private static AndroidJavaClass sIapClass = new AndroidJavaClass("com.huawei.hms.analytics.HiAnalyticsTools"); 9 | 10 | public static void EnableLog() 11 | { 12 | sIapClass.CallStatic("enableLog"); 13 | } 14 | /** 15 | * Log.DEBUG(3) Log.INFO(4) Log.WARN(5) Log.ERROR(6) 16 | **/ 17 | public static void EnableLog(int level) 18 | { 19 | sIapClass.CallStatic("enableLog", level); 20 | } 21 | 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppLinking/IReferrerProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Base; 2 | 3 | namespace HuaweiMobileServices.AppLinking 4 | { 5 | public interface IReferrerProvider 6 | { 7 | ITask GetCustomReferrer(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGCAppMessagingException.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.AppMessaging 6 | { 7 | public class AGCAppMessagingException : JavaObjectWrapper 8 | { 9 | public AGCAppMessagingException(AndroidJavaObject javaObject) : base(javaObject) { } 10 | public AGCAppMessagingException() : base("com.huawei.agconnect.appmessaging") { } 11 | 12 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.agconnect.appmessaging"); 13 | 14 | public static int MSG_TYPE_UNDEFINE => androidJavaClass.Call("MSG_TYPE_UNDEFINE"); 15 | public static int DATA_NOT_MODIFIED => androidJavaClass.Call("DATA_NOT_MODIFIED"); 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGConnectAppMessagingDisplayWrapper.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AppMessaging 8 | { 9 | internal class AGConnectAppMessagingDisplayWrapper : AndroidJavaProxy 10 | { 11 | private Action mListener; 12 | 13 | public AGConnectAppMessagingDisplayWrapper(Action listener) : base("com.huawei.agconnect.appmessaging.AGConnectAppMessagingDisplay") 14 | { 15 | mListener = listener; 16 | } 17 | public void displayMessage(AndroidJavaObject appMessage, AGConnectAppMessagingCallbackWrapper callback) 18 | { 19 | this.CallOnMainThread(() => { mListener.Invoke(appMessage.AsWrapper()); }); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGConnectAppMessagingOnClickListenerWrapper.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HuaweiMobileServices.AppMessaging 3 | { 4 | using HuaweiMobileServices.Utils; 5 | using System; 6 | using UnityEngine; 7 | internal class AGConnectAppMessagingOnClickListenerWrapper : AndroidJavaProxy 8 | { 9 | private Action mListener; 10 | 11 | public AGConnectAppMessagingOnClickListenerWrapper(Action listener) : base("com.huawei.agconnect.appmessaging.AGConnectAppMessagingOnClickListener") 12 | { 13 | mListener = listener; 14 | } 15 | public void onMessageClick(AndroidJavaObject appMessage) 16 | { 17 | this.CallOnMainThread(() => { mListener.Invoke(appMessage.AsWrapper()); }); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGConnectAppMessagingOnDismissListenerWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.AppMessaging 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | using UnityEngine; 6 | internal class AGConnectAppMessagingOnDismissListenerWrapper : AndroidJavaProxy 7 | { 8 | private Action mListener; 9 | 10 | public AGConnectAppMessagingOnDismissListenerWrapper(Action listener) : base("com.huawei.agconnect.appmessaging.AGConnectAppMessagingOnDismissListener") 11 | { 12 | mListener = listener; 13 | } 14 | public void onMessageDismiss(AndroidJavaObject appMessage, DismissType dismissType) 15 | { 16 | this.CallOnMainThread(() => { mListener.Invoke(appMessage.AsWrapper(), dismissType); }); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGConnectAppMessagingOnDisplayListenerWrapper.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HuaweiMobileServices.AppMessaging 3 | { 4 | using HuaweiMobileServices.Utils; 5 | using System; 6 | using UnityEngine; 7 | internal class AGConnectAppMessagingOnDisplayListenerWrapper : AndroidJavaProxy 8 | { 9 | private Action mListener; 10 | 11 | public AGConnectAppMessagingOnDisplayListenerWrapper(Action listener) 12 | : base("com.huawei.agconnect.appmessaging.AGConnectAppMessagingOnDisplayListener") 13 | { 14 | mListener = listener; 15 | } 16 | public void onMessageDisplay(AndroidJavaObject appMessage) 17 | { 18 | this.CallOnMainThread(() => { mListener.Invoke(appMessage.AsWrapper()); }); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AGConnectAppMessagingOnErrorListenerWrapper.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | namespace HuaweiMobileServices.AppMessaging 7 | { 8 | internal class AGConnectAppMessagingOnErrorListenerWrapper : AndroidJavaProxy 9 | { 10 | private Action mListener; 11 | 12 | public AGConnectAppMessagingOnErrorListenerWrapper(Action listener) : base("com.huawei.agconnect.appmessaging.AGConnectAppMessagingOnErrorListener") 13 | { 14 | mListener = listener; 15 | } 16 | public void onMessageError(AndroidJavaObject appMessage) 17 | { 18 | this.CallOnMainThread(() => { mListener.Invoke(appMessage.AsWrapper()); }); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/Action.cs: -------------------------------------------------------------------------------- 1 |  2 | using HuaweiMobileServices.Utils; 3 | 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.AppMessaging 7 | { 8 | public class Action : JavaObjectWrapper 9 | { 10 | public Action(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public string GetMessageTitle => CallAsString("getMessageTitle"); 13 | public string GetActionUrl => CallAsString("getActionUrl"); 14 | public ActionType GetActionType => CallAsWrapper("getActionType"); 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/ActionType.cs: -------------------------------------------------------------------------------- 1 |  2 | using HuaweiMobileServices.Utils; 3 | 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.AppMessaging 7 | { 8 | public class ActionType : JavaObjectWrapper 9 | { 10 | public ActionType(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.agconnect.appmessaging.ActionType"); 13 | 14 | public static int REDIRECT => androidJavaClass.Call("REDIRECT"); 15 | public static int SHARE => androidJavaClass.Call("SHARE"); 16 | } 17 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/AppMessage.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.AppMessaging 7 | { 8 | public class AppMessage : JavaObjectWrapper 9 | { 10 | public AppMessage(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public long Id => Call("getId"); 13 | public MessageType MessageType => Call("getMessageType"); 14 | public long StartTime => Call("getStartTime"); 15 | public long EndTime => Call("getEndTime"); 16 | public int FrequencyType => Call("getFrequencyType"); 17 | public int GetFrequencyValue => Call("getFrequencyValue"); 18 | public int TestFlag => Call("getTestFlag"); 19 | public List TriggerEvents => Call>("getTriggerEvents"); 20 | } 21 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/Location.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.AppMessaging 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | public class Location : JavaObjectWrapper 9 | { 10 | public Location(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.agconnect.appmessaging.Location"); 13 | public static Location BOTTOM => androidJavaClass.GetStaticAsWrapper("BOTTOM"); 14 | public static Location CENTER => androidJavaClass.GetStaticAsWrapper("CENTER"); 15 | } 16 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AppMessaging/MessageType.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.AppMessaging 5 | { 6 | public class MessageType : JavaObjectWrapper 7 | { 8 | public MessageType(AndroidJavaObject javaObject) : base(javaObject) { } 9 | 10 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.agconnect.appmessaging.MessageType"); 11 | public static MessageType UN_SUPPORT => androidJavaClass.GetStaticAsWrapper("UN_SUPPORT"); 12 | public static MessageType CARD => androidJavaClass.GetStaticAsWrapper("CARD"); 13 | public static MessageType PICTURE => androidJavaClass.GetStaticAsWrapper("PICTURE"); 14 | public static MessageType BANNER => androidJavaClass.GetStaticAsWrapper("BANNER"); 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/AGConnectUserExtra.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class AGConnectUserExtra : JavaObjectWrapper 10 | { 11 | 12 | public AGConnectUserExtra(AndroidJavaObject javaObject) : base(javaObject) { } 13 | public AGConnectUserExtra() : base("com.huawei.agconnect.auth.AGConnectUserExtra") { } 14 | 15 | public string CreateTime => Call("getCreateTime"); 16 | 17 | public string LastSignInTime => Call("getLastSignInTime"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/AlipayAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class AlipayAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.AlipayAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithAuthCode(string authCode) 14 | => javaClass.CallStaticAsWrapper("credentialWithAuthCode", authCode); 15 | 16 | public static AGConnectAuthCredential CredentialWithAuthCode(string authCode, bool autoCreateUser) 17 | => javaClass.CallStaticAsWrapper("credentialWithAuthCode", authCode, autoCreateUser); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/BaseUser.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | class BaseUser : JavaObjectWrapper 10 | { 11 | 12 | public BaseUser(AndroidJavaObject javaObject) : base(javaObject) { } 13 | public BaseUser() : base("com.huawei.agconnect.auth.BaseUser") { } 14 | 15 | public string Password => Call("getPassword"); 16 | 17 | public string VerifyCode => Call("getVerifyCode"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/FacebookAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class FacebookAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.FacebookAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/GoogleAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class GoogleAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.GoogleAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/GoogleGameAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class GoogleGameAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.GoogleGameAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/HwIdAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class HwIdAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.HwIdAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/Locale.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class Locale : JavaObjectWrapper 10 | { 11 | public Locale(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public Locale() : base("java.util.Locale") { } 13 | public Locale(string paramString1) : base("java.util.Locale", paramString1) { } 14 | public Locale(string paramString1, string paramString2) : base("java.util.Locale", paramString1, paramString2) { } 15 | 16 | public static AndroidJavaClass javaClass = new AndroidJavaClass("java.util.Locale"); 17 | public static Locale GetDefault() => javaClass.CallStaticAsWrapper("getDefault"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/OnVerifyCodeCallBack.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.AuthService 6 | { 7 | public interface OnVerifyCodeCallBack 8 | { 9 | void onVerifySuccess(string paramString1, string paramString2); 10 | void onVerifyFailure(Exception exception); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/QQAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class QQAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.QQAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString, string paramString2) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramString2); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/QuickLoginAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class QuickLoginAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.QuickLoginAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string token) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", token, token); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string token, bool autoCreateUser) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", token, autoCreateUser); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/SelfBuildProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class SelfBuildProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.SelfBuildProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString, string paramString2) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramString2); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/SignInResult.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class SignInResult : JavaObjectWrapper 10 | { 11 | 12 | public SignInResult(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public AGConnectUser GetUser() => CallAsWrapper("getUser"); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/TokenResult.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class TokenResult : JavaObjectWrapper 10 | { 11 | 12 | public TokenResult(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public string Token => Call("getToken"); 15 | 16 | public long ExpirePeriod => Call("getExpirePeriod"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/TwitterAuthParam.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.AuthService 5 | { 6 | public class TwitterAuthParam : JavaObjectWrapper 7 | { 8 | public TwitterAuthParam(AndroidJavaObject javaObject) : base(javaObject) { } 9 | public TwitterAuthParam(string clientId, string authCode, string codeVerifier, string redirectUrl) : base("com.huawei.agconnect.auth.TwitterAuthParam", clientId, authCode, codeVerifier, redirectUrl) { } 10 | } 11 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/VKAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class VKAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.VKAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string accessToken, string uid) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", accessToken, uid); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string accessToken, string uid, bool autoCreateUser) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", accessToken, uid, autoCreateUser); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/VerifyCodeResult.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class VerifyCodeResult : JavaObjectWrapper 10 | { 11 | 12 | public VerifyCodeResult(AndroidJavaObject javaObject) : base(javaObject) { } 13 | public VerifyCodeResult(string paramString1, string paramString2) : base("com.huawei.agconnect.auth.VerifyCodeResult", paramString1, paramString2) { } 14 | 15 | public string ShortestInterval => Call("getShortestInterval"); 16 | 17 | public string ValidityPeriod => Call("getValidityPeriod"); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/WeiboAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class WeiboAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.WeiboAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string token, string uid) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", token, uid); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string token, string uid, bool autoCreateUser) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", token, uid, autoCreateUser); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/AuthService/WeixinAuthProvider.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.AuthService 8 | { 9 | public class WeixinAuthProvider 10 | { 11 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.auth.WeixinAuthProvider"); 12 | 13 | public static AGConnectAuthCredential CredentialWithToken(string paramString, string paramString2) 14 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramString2); 15 | 16 | public static AGConnectAuthCredential CredentialWithToken(string paramString, bool paramBoolean) 17 | => javaClass.CallStaticAsWrapper("credentialWithToken", paramString, paramBoolean); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/HuaweiMobileServicesUtil.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.api.HuaweiMobileServicesUtil 7 | public static class HuaweiMobileServicesUtil 8 | { 9 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.api.HuaweiMobileServicesUtil"); 10 | 11 | public static void SetApplication() 12 | { 13 | sJavaClass.CallStatic("setApplication", AndroidContext.ApplicationContext); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/IOnFailureListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnFailureListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnFailureListener onFailureListener; 10 | 11 | internal OnFailureListener(IOnFailureListener onFailureListener) : base("com.huawei.hmf.tasks.OnFailureListener") 12 | { 13 | this.onFailureListener = onFailureListener; 14 | } 15 | 16 | public void onFailure(AndroidJavaObject javaException) 17 | { 18 | onFailureListener.onFailure(javaException); 19 | } 20 | } 21 | 22 | public interface IOnFailureListener 23 | { 24 | void onFailure(AndroidJavaObject javaException); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/IOnSuccessListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnSuccessListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnSuccessListener onSuccessListener; 10 | 11 | public OnSuccessListener(IOnSuccessListener onSuccessListener) : base("com.huawei.hmf.tasks.OnSuccessListener") 12 | { 13 | this.onSuccessListener = onSuccessListener; 14 | } 15 | 16 | public void onSuccess(AndroidJavaObject result) 17 | { 18 | onSuccessListener.onSuccess(result); 19 | } 20 | } 21 | 22 | public interface IOnSuccessListener 23 | { 24 | void onSuccess(AndroidJavaObject var1); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/ITask.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace HuaweiMobileServices.Base 5 | { 6 | using HuaweiMobileServices.Utils; 7 | 8 | // Wrapper for com.huawei.hmf.tasks.Task 9 | public interface ITask 10 | { 11 | bool Complete { get; } 12 | 13 | bool Successful { get; } 14 | 15 | bool Canceled { get; } 16 | 17 | T Result { get; } 18 | 19 | Exception Exception { get; } 20 | 21 | ITask AddOnFailureListener(Action onFailureListener); 22 | 23 | ITask AddOnSuccessListener(Action onSuccessListener); 24 | 25 | Task Async(); 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/MetadataHelper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public static class MetadataHelper 7 | { 8 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("org.m0skit0.android.hms.unity.helper.MetadataHelper"); 9 | 10 | public static string AppId => sJavaClass.CallStaticAsString("getAppId"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/OnCanceledListenerWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hmf.tasks.OnCanceledListener 8 | internal class OnCanceledListenerWrapper : AndroidJavaProxy 9 | { 10 | 11 | private readonly Action mListener; 12 | 13 | internal OnCanceledListenerWrapper(Action listener) : base("com.huawei.hmf.tasks.OnCanceledListener") 14 | { 15 | mListener = listener; 16 | } 17 | 18 | public void onCanceled() 19 | { 20 | this.CallOnMainThread(() => { mListener.Invoke();}); 21 | } 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/OnFailureListenerWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hmf.tasks.OnFailureListener 8 | internal class OnFailureListenerWrapper : AndroidJavaProxy 9 | { 10 | 11 | private readonly Action mListener; 12 | 13 | internal OnFailureListenerWrapper(Action listener) : base("com.huawei.hmf.tasks.OnFailureListener") 14 | { 15 | mListener = listener; 16 | } 17 | 18 | public void onFailure(AndroidJavaObject javaException) 19 | { 20 | this.CallOnMainThread(() => { mListener.Invoke(javaException.AsException()); }); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/Result.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.support.api.client.Result 7 | public abstract class Result : JavaObjectWrapper 8 | { 9 | 10 | 11 | public Result(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public virtual Status Status => CallAsWrapper("getStatus"); 14 | 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/TaskAndroidJavaObject.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using UnityEngine; 4 | 5 | internal class TaskAndroidJavaObject : TaskWrapper 6 | { 7 | 8 | public TaskAndroidJavaObject(AndroidJavaObject javaObject) : base(javaObject, (jObject) => jObject) { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/TaskJavaObjectWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | internal class TaskJavaObjectWrapper : TaskWrapper where T : JavaObjectWrapper 7 | { 8 | 9 | public TaskJavaObjectWrapper(AndroidJavaObject javaObject) : base(javaObject, AndroidJavaObjectExtensions.AsWrapper) { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/TaskPrimitive.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | using UnityEngine; 6 | 7 | internal class TaskPrimitive : AbstractTask 8 | { 9 | 10 | 11 | public TaskPrimitive(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public override T Result => Call("getResult"); 14 | 15 | public override ITask AddOnSuccessListener(Action onSuccessListener) 16 | { 17 | JavaObject = Call("addOnSuccessListener", new OnSuccessListenerWrapper(onSuccessListener)); 18 | return this; 19 | } 20 | } 21 | 22 | 23 | internal class TaskPrimitiveInt : TaskPrimitive 24 | { 25 | 26 | public TaskPrimitiveInt(AndroidJavaObject javaObject) : base(javaObject) { } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/TaskStringWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | internal class TaskStringWrapper : TaskWrapper 7 | { 8 | 9 | public TaskStringWrapper(AndroidJavaObject javaObject) : base(javaObject, AndroidJavaObjectExtensions.AsString) { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Base/TaskVoidWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Base 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | internal class TaskVoidWrapper : TaskWrapper 7 | { 8 | 9 | public TaskVoidWrapper(AndroidJavaObject javaObject) : base(javaObject, (jObject) => Void.INSTANCE) { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudDB/AGConnectCloudDBException.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.CloudDB 8 | { 9 | public class AGConnectCloudDBException : JavaObjectWrapper 10 | { 11 | 12 | public AGConnectCloudDBException(AndroidJavaObject javaObject) : base(javaObject) { } 13 | public AGConnectCloudDBException(string msg, int code) : base("com.huawei.agconnect.cloud.database.exceptions.AGConnectCloudDBException", msg, code) { } 14 | 15 | public int Code => Call("getCode"); 16 | public string ErrMsg => Call("getErrMsg"); 17 | public string Message => Call("getMessage"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudDB/ListenerHandler.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.CloudDB 8 | { 9 | public class ListenerHandler : JavaObjectWrapper 10 | { 11 | public ListenerHandler(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public void Remove() => Call("remove"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudDB/ServerStatus.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | //com.huawei.agconnect.cloud.database.ServerStatus 5 | namespace HuaweiMobileServices.CloudDB 6 | { 7 | public class ServerStatus : JavaObjectWrapper 8 | { 9 | public ServerStatus(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public long ServerTimestamp 12 | { 13 | get => Call("getServerTimestamp"); 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudStorage/Core/CancelListener/IOnCanceledListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnCanceledListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnCanceledListener onCanceledListener; 10 | 11 | public OnCanceledListener(IOnCanceledListener onCanceledListener) : base("com.huawei.hmf.tasks.OnCanceledListener") 12 | { 13 | this.onCanceledListener = onCanceledListener; 14 | } 15 | 16 | public void onCanceled() 17 | { 18 | onCanceledListener.onCanceled(); 19 | } 20 | } 21 | 22 | public interface IOnCanceledListener 23 | { 24 | void onCanceled(); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudStorage/Core/CompleteListener/IOnCompleteListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnCompleteListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnCompleteListener onCompleteListener; 10 | 11 | public OnCompleteListener(IOnCompleteListener onCompleteListener) : base("com.huawei.hmf.tasks.OnCompleteListener") 12 | { 13 | this.onCompleteListener = onCompleteListener; 14 | } 15 | 16 | public void onComplete(AndroidJavaObject result) 17 | { 18 | onCompleteListener.onComplete(result); 19 | } 20 | } 21 | 22 | public interface IOnCompleteListener 23 | { 24 | void onComplete(AndroidJavaObject var1); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudStorage/Core/PausedListener/IOnPausedListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnPausedListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnPausedListener onPausedListener; 10 | 11 | public OnPausedListener(IOnPausedListener onPausedListener) : base("com.huawei.agconnect.cloud.storage.core.OnPausedListener") 12 | { 13 | this.onPausedListener = onPausedListener; 14 | } 15 | 16 | public void onPaused(AndroidJavaObject result) 17 | { 18 | onPausedListener.onPaused(result); 19 | } 20 | } 21 | 22 | public interface IOnPausedListener 23 | { 24 | void onPaused(AndroidJavaObject var1); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/CloudStorage/Core/ProgressListener/IOnProgressListener.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Base 4 | { 5 | 6 | internal class OnProgressListener : AndroidJavaProxy 7 | { 8 | 9 | private readonly IOnProgressListener onProgressListener; 10 | 11 | public OnProgressListener(IOnProgressListener onProgressListener) : base("com.huawei.agconnect.cloud.storage.core.OnProgressListener") 12 | { 13 | this.onProgressListener = onProgressListener; 14 | } 15 | 16 | public void onProgress(AndroidJavaObject result) 17 | { 18 | onProgressListener.onProgress(result); 19 | } 20 | } 21 | 22 | public interface IOnProgressListener 23 | { 24 | void onProgress(AndroidJavaObject var1); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Common/AGConnectOptions.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Common 5 | { 6 | public class AGConnectOptions : JavaObjectWrapper 7 | { 8 | private static AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.agconnect.AGConnectOptions"); 9 | 10 | public AGConnectOptions(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public AGCRoutePolicy GetRoutePolicy() => CallAsWrapper("getRoutePolicy"); 13 | public string GetPackageName() => Call("getPackageName"); 14 | public string GetString(string path) => Call("getString",path.AsJavaString()); 15 | public string GetString(string path, string def) => Call("getString", path.AsJavaString(), def.AsJavaString()); 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Crash/AGConnectCrash.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Crash 5 | { 6 | public class AGConnectCrash 7 | { 8 | private static AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.agconnect.crash.AGConnectCrash"); 9 | 10 | public static IAGConnectCrash GetInstance() 11 | { 12 | return sJavaClass.CallStaticAsWrapper("getInstance"); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Crash/IAGConnectCrash.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Crash 5 | { 6 | public interface IAGConnectCrash 7 | { 8 | void EnableCrashCollection(Boolean enable); 9 | void TestIt(); 10 | void SetUserId(String userId); 11 | void SetCustomKey(String key, String value); 12 | void SetCustomKey(String key, Boolean value); 13 | void SetCustomKey(String key, double value); 14 | void SetCustomKey(String key, float value); 15 | void SetCustomKey(String key, int value); 16 | void SetCustomKey(String key, long value); 17 | void Log(String message); 18 | void Log(int level, String message); 19 | void RecordException(AndroidJavaObject throwable); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/AbstractClientRequest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Drive 8 | { 9 | public abstract class AbstractClientRequest : JavaObjectWrapper 10 | { 11 | public AbstractClientRequest(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public T Execute() => Call("execute"); 13 | public MediaHttpDownloader GetMediaHttpDownloader() => CallAsWrapper("getMediaHttpDownloader"); 14 | public MediaHttpUploader GetMediaHttpUploader() => CallAsWrapper("getMediaHttpUploader"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/AbstractJsonClientRequest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Drive 7 | { 8 | public abstract class AbstractJsonClientRequest : AbstractClientRequest 9 | { 10 | public AbstractJsonClientRequest( AndroidJavaObject javaObject) : base(javaObject) { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/AccessMethodWrapper.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Drive 8 | { 9 | internal class AccessMethodWrapper : AndroidJavaProxy 10 | { 11 | 12 | private readonly Func mListener; 13 | 14 | internal AccessMethodWrapper(Func listener) : base("com.huawei.cloud.base.auth.DriveCredential$AccessMethod") 15 | { 16 | mListener = listener; 17 | } 18 | 19 | public String RefreshToken() => mListener(); 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/DateTime.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Drive 8 | { 9 | public class DateTime : JavaObjectWrapper 10 | { 11 | public DateTime(string var1) : base("com.huawei.cloud.base.util.DateTime", var1) { } 12 | public DateTime(long var1) : base("com.huawei.cloud.base.util.DateTime", var1) { } 13 | public DateTime(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public long GetValue() => Call("getValue"); 16 | public bool IsDateOnly() => Call("isDateOnly"); 17 | public int GetTimeZoneShift() => Call("getTimeZoneShift"); 18 | override public string ToString() => Call("toString"); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/FileList.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Drive 8 | { 9 | public class FileList : JavaObjectWrapper 10 | { 11 | public FileList(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public IList GetFiles() => Call("getFiles").AsListFromWrappable(); 14 | public String GetNextCursor() => Call("getNextCursor"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/IMediaHttUploaderProgressListener.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.Drive 6 | { 7 | public interface IMediaHttpUploaderProgressListener 8 | { 9 | void progressChanged(MediaHttpUploader uploader); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/IMediaHttpDownloaderProgressListener.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.Drive 6 | { 7 | public interface IMediaHttpDownloaderProgressListener 8 | { 9 | void progressChanged(MediaHttpDownloader downloader); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/InputStreamContent.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Text; 6 | using UnityEngine; 7 | 8 | namespace HuaweiMobileServices.Drive 9 | { 10 | public class InputStreamContent : JavaObjectWrapper 11 | { 12 | public InputStreamContent(AndroidJavaObject javaObject) : base(javaObject) { } 13 | public InputStreamContent() : base("com.huawei.cloud.base.http.InputStreamContent"){} 14 | 15 | public InputStreamContent(String mimeType, AndroidJavaObject inputStream) : base("com.huawei.cloud.base.http.InputStreamContent", mimeType, inputStream){} 16 | public long? GetLength() => Call("getLength").AsLong(); 17 | public InputStreamContent SetLength(long var1) => CallAsWrapper("setLength", var1); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/MediaHttUploaderProgressListenerWrapper.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | namespace HuaweiMobileServices.Drive 4 | { 5 | using HuaweiMobileServices.Utils; 6 | using UnityEngine; 7 | public class MediaHttpUploaderProgressListenerWrapper : AndroidJavaProxy 8 | { 9 | private readonly IMediaHttpUploaderProgressListener mListener; 10 | 11 | public MediaHttpUploaderProgressListenerWrapper(IMediaHttpUploaderProgressListener listener) : base("com.huawei.cloud.base.media.MediaHttpUploaderProgressListener") 12 | { 13 | mListener = listener; 14 | } 15 | public void progressChanged(AndroidJavaObject uploader) 16 | { 17 | this.CallOnMainThread(() => { mListener.progressChanged(uploader.AsWrapper()); }); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Drive/MediaHttpDownloaderProgressListenerWrapper.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HuaweiMobileServices.Drive 3 | { 4 | using HuaweiMobileServices.Utils; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Text; 8 | using UnityEngine; 9 | 10 | public class MediaHttpDownloaderProgressListenerWrapper : AndroidJavaProxy 11 | { 12 | private readonly IMediaHttpDownloaderProgressListener mListener; 13 | 14 | public MediaHttpDownloaderProgressListenerWrapper(IMediaHttpDownloaderProgressListener listener) : base("com.huawei.cloud.base.media.MediaHttpDownloaderProgressListener") 15 | { 16 | mListener = listener; 17 | } 18 | 19 | public void ProgressChanged(MediaHttpDownloader downloader) 20 | { 21 | this.CallOnMainThread(() => { mListener.progressChanged(downloader); }); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/AntiAddictionCallWrapper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace HuaweiMobileServices.Game 4 | { 5 | public class AntiAddictionCallWrapper : AndroidJavaProxy 6 | { 7 | private readonly IAntiAddictionCallback mListener; 8 | 9 | public AntiAddictionCallWrapper(IAntiAddictionCallback listener) : base("com.huawei.hms.jos.AntiAddictionCallback") 10 | { 11 | mListener = listener; 12 | } 13 | 14 | public void onExit() 15 | { 16 | mListener.OnExit(); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/AppPlayerInfo.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.AppPlayerInfo 7 | public class AppPlayerInfo : JavaObjectWrapper 8 | { 9 | public AppPlayerInfo(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public virtual string Rank => CallAsString("getRank"); 12 | 13 | public virtual string Role => CallAsString("getRole"); 14 | 15 | public virtual string Area => CallAsString("getArea"); 16 | 17 | public virtual string Sociaty => CallAsString("getSociaty"); 18 | 19 | public virtual string PlayerId => CallAsString("getPlayerId"); 20 | 21 | public virtual string OpenId => CallAsString("getOpenId"); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/AppUpdateClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class AppUpdateClientWrapper : JavaObjectWrapper, IAppUpdateClient 7 | { 8 | public AppUpdateClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 9 | 10 | public void CheckAppUpdate(ICheckUpdateCallback checkUpdateCallback) 11 | { 12 | Call("checkAppUpdate", AndroidContext.ActivityContext, new CheckUpdateCallbackWrapper(checkUpdateCallback)); 13 | } 14 | 15 | public void ReleaseCallback() 16 | { 17 | Call("releaseCallback"); 18 | } 19 | 20 | public void ShowUpdateDialog(AndroidJavaObject apkUpgradeInfo, bool mustBtnOne) 21 | { 22 | Call("showUpdateDialog", AndroidContext.ActivityContext, apkUpgradeInfo, mustBtnOne); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/Archive.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.archive.Archive 7 | public class Archive : JavaObjectWrapper 8 | { 9 | 10 | public Archive(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public virtual ArchiveSummary Summary => CallAsWrapper("getSummary"); 13 | 14 | public virtual ArchiveDetails Details => CallAsWrapper("getDetails"); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/ArchiveConstants.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | 5 | namespace HuaweiMobileServices.Game 6 | { 7 | public class ArchiveConstants 8 | { 9 | //private const string CLASS_NAME = "com.huawei.hms.jos.games.archive.ArchiveConstants"; 10 | public static int ARCHIVE_LIST_SHOW_MAX_SIZE = -1; 11 | public static int STRATEGY_SELF = -1; 12 | public static int STRATEGY_TOTAL_PROGRESS = 1; 13 | public static int STRATEGY_ACTIVE_TIME = 3; 14 | public static int STRATEGY_LAST_UPDATE = 2; 15 | public static String ARCHIVE_SELECT = "com.huawei.hms.games.ARCHIVE_METADATA"; 16 | public static String ARCHIVE_ADD = "com.huawei.hms.games.ARCHIVE_NEW"; 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/BuoyClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | internal class BuoyClientWrapper : JavaObjectWrapper, IBuoyClient 7 | { 8 | 9 | 10 | public BuoyClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public void HideFloatWindow() => Call("hideFloatWindow"); 13 | 14 | public void ShowFloatWindow() => Call("showFloatWindow"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/Difference.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class Difference : JavaObjectWrapper 7 | { 8 | 9 | public Difference(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public Archive ServerArchive => CallAsWrapper("getServerArchive"); 12 | 13 | public ArchiveDetails EmptyArchiveDetails => CallAsWrapper("getEmptyArchiveDetails"); 14 | 15 | public Archive RecentArchive() => CallAsWrapper("getRecentArchive"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/GamePlayerStatistics.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.playerstats.GamePlayerStatistics 7 | public sealed class GamePlayerStatistics : JavaObjectWrapper 8 | { 9 | 10 | 11 | public GamePlayerStatistics(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public float AverageOnLineMinutes => Call("getAverageOnLineMinutes"); 14 | 15 | public int DaysFromLastGame => Call("getDaysFromLastGame"); 16 | 17 | public int PaymentTimes => Call("getPaymentTimes"); 18 | 19 | public int OnlineTimes => Call("getOnlineTimes"); 20 | 21 | public int TotalPurchasesAmountRange => Call("getTotalPurchasesAmountRange"); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/GamePlayerStatisticsClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | internal class GamePlayerStatisticsClientWrapper : JavaObjectWrapper, IGamePlayerStatisticsClient 8 | { 9 | 10 | 11 | public GamePlayerStatisticsClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public ITask GetGamePlayerStatistics(bool paramBoolean) => 14 | CallAsWrapper>("getGamePlayerStatistics", paramBoolean); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/GameScopes.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Id; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hms.jos.games.GameScopes 8 | public class GameScopes 9 | { 10 | public static Scope DRIVE_APP_DATA = new Scope("https://www.huawei.com/auth/drive.appdata"); 11 | public static Scope GAME_SERVICE_LITE = new Scope("https://www.huawei.com/game/services.lite"); 12 | public static Scope CHECK_MOBILE_SCOPE = new Scope("https://www.huawei.com/auth/jos/checkmobile"); 13 | } 14 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/GameSummaryClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | internal class GameSummaryClientWrapper : JavaObjectWrapper, IGameSummaryClient 8 | { 9 | 10 | public GameSummaryClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public ITask LocalGameSummary => CallAsWrapper>("getLocalGameSummary"); 13 | 14 | public ITask GameSummary => CallAsWrapper>("getGameSummary"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/GamesClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | 4 | using HuaweiMobileServices.Base; 5 | using HuaweiMobileServices.Utils; 6 | using UnityEngine; 7 | 8 | internal class GamesClientWrapper : JavaObjectWrapper, IGamesClient 9 | { 10 | public GamesClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public ITask AppId => CallAsWrapper("getAppId"); 13 | 14 | public ITask SetPopupsPosition(int paramInt) => CallAsWrapper("setPopupsPosition", paramInt); 15 | 16 | public ITask CancelGameService() => CallAsWrapper>("cancelGameService"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IAntiAddictionCallback.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | public interface IAntiAddictionCallback 4 | { 5 | void OnExit(); 6 | } 7 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IAppUpdateClient.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HuaweiMobileServices.Game 3 | { 4 | using UnityEngine; 5 | 6 | public interface IAppUpdateClient 7 | { 8 | void CheckAppUpdate(ICheckUpdateCallback checkUpdateCallback); 9 | void ShowUpdateDialog(AndroidJavaObject apkUpgradeInfo, bool mustBtnOne); 10 | void ReleaseCallback(); 11 | } 12 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IBuoyClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | // Wrapper for com.huawei.hms.jos.games.buoy.BuoyClient 4 | public interface IBuoyClient 5 | { 6 | void ShowFloatWindow(); 7 | 8 | void HideFloatWindow(); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/ICheckUpdateCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace HuaweiMobileServices.Game 7 | { 8 | public interface ICheckUpdateCallback 9 | { 10 | void OnUpdateInfo(AndroidIntent intent); 11 | void OnMarketInstallInfo(AndroidIntent intent); 12 | void OnMarketStoreError(int responseCode); 13 | void OnUpdateStoreError(int responseCode); 14 | } 15 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IEventsClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using System.Collections.Generic; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.EventsClient 7 | public interface IEventsClient 8 | { 9 | void Grow(string aString, int aInt); 10 | 11 | ITask> GetEventList(bool paramBoolean); 12 | 13 | ITask> GetEventListByIds(bool paramBoolean, params string[] paramVarArgs); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IGamePlayerStatisticsClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | 5 | // Wrapper for com.huawei.hms.jos.games.playerstats.GamePlayerStatisticsClient 6 | public interface IGamePlayerStatisticsClient 7 | { 8 | ITask GetGamePlayerStatistics(bool paramBoolean); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IGameSummaryClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | 5 | // Wrapper for com.huawei.hms.jos.games.GameSummaryClient 6 | public interface IGameSummaryClient 7 | { 8 | ITask LocalGameSummary { get; } 9 | 10 | ITask GameSummary { get; } 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IGamesClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.GamesClient 7 | public interface IGamesClient 8 | { 9 | ITask AppId { get; } 10 | 11 | ITask SetPopupsPosition(int paramInt); 12 | 13 | ITask CancelGameService(); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IJosAppsClient.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | 6 | public interface IJosAppsClient 7 | { 8 | ITask Init(AppParams appParams); 9 | 10 | ITask AppId { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/IProductClient.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace HuaweiMobileServices.Game 4 | { 5 | using HuaweiMobileServices.Base; 6 | 7 | // Wrapper for com.huawei.hms.jos.product.ProductClient 8 | public interface IProductClient 9 | { 10 | ITask> GetMissProductOrder(); 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/JosAppsClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | internal class JosAppsClientWrapper : JavaObjectWrapper, IJosAppsClient 8 | { 9 | public JosAppsClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public ITask AppId 12 | { 13 | get 14 | { 15 | var javaTask = JavaObject.Call("getAppId"); 16 | return new TaskWrapper(javaTask, AndroidJavaObjectExtensions.AsString); 17 | } 18 | } 19 | 20 | public ITask Init(AppParams appParams) 21 | { 22 | var javaTask = JavaObject.Call("init", appParams.JavaObject); 23 | return new TaskVoidWrapper(javaTask); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/OperationResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.archive.OperationResult 7 | public class OperationResult : JavaObjectWrapper 8 | { 9 | 10 | 11 | public OperationResult(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public virtual bool Different => Call("isDifference"); 14 | 15 | public virtual Archive Archive => CallAsWrapper("getArchive"); 16 | 17 | public virtual Difference Difference => CallAsWrapper("getDifference"); 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/PlayerExtraInfo.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.games.player.PlayerExtraInfo 7 | public class PlayerExtraInfo : JavaObjectWrapper 8 | { 9 | public PlayerExtraInfo(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public PlayerExtraInfo(string json) : base("com.huawei.hms.jos.games.player.PlayerExtraInfo", json.AsJavaString()) { } 12 | 13 | public virtual bool IsAdult => Call("getIsAdult"); 14 | 15 | public virtual string PlayerId => CallAsString("getPlayerId"); 16 | 17 | public virtual int PlayerDuration => Call("getPlayerDuration"); 18 | 19 | public virtual bool IsRealName => Call("getIsRealName"); 20 | 21 | public virtual string OpenId => CallAsString("getOpenId"); 22 | } 23 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/ProductClientWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | // Wrapper for com.huawei.hms.jos.product.ProductClientImpl 9 | public class ProductClientWrapper : JavaObjectWrapper, IProductClient 10 | { 11 | 12 | 13 | public ProductClientWrapper(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public virtual ITask> GetMissProductOrder() 16 | { 17 | var javaResult = Call("getMissProductOrder", AndroidContext.ActivityContext); 18 | return new TaskWrapper>(javaResult, AndroidJavaObjectExtensions.AsListFromWrappable); 19 | } 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/ProductOrderInfo.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.jos.product.ProductOrderInfo 7 | public class ProductOrderInfo : JavaObjectWrapper 8 | { 9 | 10 | 11 | public ProductOrderInfo(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public virtual string TradeId => CallAsString("getTradeId"); 14 | 15 | public virtual string ProductNo => CallAsString("getProductNo"); 16 | 17 | public virtual string OrderId => CallAsString("getOrderId"); 18 | 19 | public virtual string Sign => CallAsString("getSign"); 20 | 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/RankingScores.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace HuaweiMobileServices.Game 4 | { 5 | 6 | using HuaweiMobileServices.Utils; 7 | using UnityEngine; 8 | 9 | // Wrapper for com.huawei.hms.jos.games.RankingsClient.RankingScores 10 | public class RankingScores : JavaObjectWrapper 11 | { 12 | 13 | 14 | public RankingScores(AndroidJavaObject javaObject) : base(javaObject) { } 15 | 16 | public Ranking Ranking => CallAsWrapper("getRanking"); 17 | 18 | public IList RankingScore => CallAsWrapperList("getRankingScores"); 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Game/ScoreSubmissionInfo.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Game 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hms.jos.games.ranking.ScoreSubmissionInfo 8 | public sealed class ScoreSubmissionInfo : JavaObjectWrapper 9 | { 10 | 11 | 12 | public ScoreSubmissionInfo(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public string RankingId => CallAsString("getRankingId"); 15 | 16 | public string PlayerId => CallAsString("getPlayerId"); 17 | 18 | public Result GetSubmissionScoreResult(int paramInt) => CallAsWrapper("getSubmissionScoreResult", paramInt); 19 | 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/ConsumeOwnedPurchaseResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.iap.entity.ConsumeOwnedPurchaseResult 7 | public class ConsumeOwnedPurchaseResult : JavaObjectWrapper 8 | { 9 | public ConsumeOwnedPurchaseResult(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public InAppPurchaseData ConsumePurchaseData => new InAppPurchaseData(CallAsString("getConsumePurchaseData")); 12 | 13 | public string ConsumePurchaseDataRaw => CallAsString("getConsumePurchaseData"); 14 | 15 | public string DataSignature => CallAsString("getDataSignature"); 16 | 17 | public string SignatureAlgorithm => CallAsString("getSignatureAlgorithm"); 18 | 19 | public int ReturnCode => Call("getReturnCode"); 20 | 21 | public string ErrMsg => CallAsString("getErrMsg"); 22 | } 23 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/EnvReadyResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class EnvReadyResult : JavaObjectWrapper 7 | { 8 | 9 | public EnvReadyResult(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public int ReturnCode => Call("getReturnCode"); 12 | 13 | public int AccountFlag => Call("getAccountFlag"); 14 | 15 | public string CarrierId => CallAsString("getCarrierId"); 16 | 17 | public string Country => CallAsString("getCountry"); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/Iap.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.iap.Iap 7 | public static class Iap 8 | { 9 | 10 | private static AndroidJavaClass sIapClass = new AndroidJavaClass("com.huawei.hms.iap.Iap"); 11 | 12 | private static IIapClient sIapClient = null; 13 | 14 | public static IIapClient GetIapClient() 15 | { 16 | if (sIapClient == null) 17 | { 18 | AndroidJavaObject iapClient = sIapClass.CallStatic("getIapClient", AndroidContext.ActivityContext); 19 | sIapClient = new IapClientWrapper(iapClient); 20 | } 21 | return sIapClient; 22 | } 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/IapApiException.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | 4 | using HuaweiMobileServices.Base; 5 | using HuaweiMobileServices.Utils; 6 | using UnityEngine; 7 | 8 | public class IapApiException : HMSException 9 | { 10 | 11 | public IapApiException(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public Status Status => JavaException.Call("getStatus").AsWrapper(); 14 | } 15 | 16 | public static class IapApiExceptionUtils 17 | { 18 | 19 | public static bool IsIapApiException(this HMSException exception) => 20 | exception.JavaException.InstanceOf("com.huawei.hms.iap.IapApiException"); 21 | 22 | public static IapApiException AsIapApiException(this HMSException exception) => 23 | new IapApiException(exception.JavaException); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/IsSandboxActivatedReq.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | 5 | public class IsSandboxActivatedReq : JavaObjectWrapper 6 | { 7 | public IsSandboxActivatedReq() : base("com.huawei.hms.iap.entity.IsSandboxActivatedReq") { } 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/IsSandboxActivatedResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class IsSandboxActivatedResult : JavaObjectWrapper 7 | { 8 | public IsSandboxActivatedResult(AndroidJavaObject javaObject) : base(javaObject) { } 9 | 10 | public int ReturnCode => Call("getReturnCode"); 11 | 12 | public string ErrMsg => Call("getErrMsg"); 13 | 14 | public bool SandboxUser => CallAsBool("getIsSandboxUser"); 15 | 16 | public bool SandboxApk => CallAsBool("getIsSandboxApk"); 17 | 18 | public string VersionInApk => Call("getVersionInApk"); 19 | 20 | public string VersionFrMarket => Call("getVersionFrMarket"); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/OwnedPurchasesReq.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | 5 | public class OwnedPurchasesReq : BaseReq 6 | { 7 | 8 | public OwnedPurchasesReq() : base("com.huawei.hms.iap.entity.OwnedPurchasesReq") { } 9 | 10 | public virtual string ContinuationToken 11 | { 12 | get => CallAsString("getContinuationToken"); 13 | set => Call("setContinuationToken", value.AsJavaString()); 14 | } 15 | 16 | public virtual PriceType PriceType 17 | { 18 | get => new PriceType(Call("getPriceType")); 19 | set => Call("setPriceType", value.Value); 20 | } 21 | 22 | public string SignatureAlgorithm 23 | { 24 | get => CallAsString("getSignatureAlgorithm"); 25 | set => Call("setSignatureAlgorithm", value.AsJavaString()); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/ProductInfoReq.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hms.iap.entity.PriceType 8 | public class ProductInfoReq : BaseReq 9 | { 10 | 11 | public ProductInfoReq() : base("com.huawei.hms.iap.entity.ProductInfoReq") { } 12 | 13 | public virtual PriceType PriceType 14 | { 15 | get => new PriceType(Call("getPriceType")); 16 | set => Call("setPriceType", value.Value); 17 | } 18 | 19 | public virtual IList ProductIds 20 | { 21 | get => Call("getProductIds").AsStringList(); 22 | set => Call("setProductIds", value.AsJavaStringList()); 23 | } 24 | 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/ProductInfoResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | 4 | using HuaweiMobileServices.Utils; 5 | using System.Collections.Generic; 6 | using UnityEngine; 7 | 8 | // Wrapper for com.huawei.hms.iap.entity.ProductInfoResult 9 | public class ProductInfoResult : JavaObjectWrapper 10 | { 11 | 12 | 13 | public ProductInfoResult(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public virtual int ReturnCode => Call("getReturnCode"); 16 | 17 | public virtual string ErrMsg => CallAsString("getErrMsg"); 18 | 19 | public virtual IList ProductInfoList => 20 | Call("getProductInfoList").AsListFromWrappable(); 21 | 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/PurchaseIntentResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Base; 4 | using UnityEngine; 5 | 6 | public class PurchaseIntentResult : Result 7 | { 8 | 9 | 10 | public PurchaseIntentResult(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public virtual int ReturnCode => Call("getReturnCode"); 13 | 14 | public virtual string ErrMsg => CallAsString("getErrMsg"); 15 | 16 | public virtual string PaymentData => CallAsString("getPaymentData"); 17 | 18 | public virtual string PaymentSignature => CallAsString("getPaymentSignature"); 19 | 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/PurchaseResultInfo.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.iap.entity.PurchaseResultInfo 7 | public class PurchaseResultInfo : JavaObjectWrapper 8 | { 9 | 10 | public PurchaseResultInfo(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public virtual int ReturnCode => Call("getReturnCode"); 13 | 14 | public virtual string ErrMsg => CallAsString("getErrMsg"); 15 | 16 | public virtual InAppPurchaseData InAppPurchaseData => new InAppPurchaseData(CallAsString("getInAppPurchaseData")); 17 | 18 | public virtual string InAppPurchaseDataRawJSON => CallAsString("getInAppPurchaseData"); 19 | 20 | public virtual string InAppDataSignature => CallAsString("getInAppDataSignature"); 21 | 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/SignAlgorithmConstants.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using UnityEngine; 4 | 5 | public static class SignAlgorithmConstants 6 | { 7 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("com.huawei.hms.iap.entity.SignAlgorithmConstants"); 8 | 9 | public static string SIGNATURE_ALGORITHM_SHA256WITHRSA_PSS = sJavaClass.GetStatic("SIGNATURE_ALGORITHM_SHA256WITHRSA_PSS"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/StartIapActivityReq.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | 5 | public class StartIapActivityReq : JavaObjectWrapper 6 | { 7 | public static int TYPE_SUBSCRIBE_MANAGER_ACTIVITY = 2; 8 | 9 | public static int TYPE_SUBSCRIBE_EDIT_ACTIVITY = 3; 10 | 11 | public StartIapActivityReq() : base("com.huawei.hms.iap.entity.StartIapActivityReq") { } 12 | 13 | public virtual int Type 14 | { 15 | get => Call("getType"); 16 | set => Call("setType", value); 17 | } 18 | 19 | public virtual string SubscribeProductId 20 | { 21 | get => CallAsString("getSubscribeProductId"); 22 | set => Call("setSubscribeProductId", value.AsJavaString()); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/IAP/StartIapActivityResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.IAP 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class StartIapActivityResult : JavaObjectWrapper 7 | { 8 | 9 | public StartIapActivityResult(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public StartIapActivityResult(AndroidIntent intent) : base("com.huawei.hms.iap.entity.StartIapActivityResult", intent) { } 12 | 13 | public void StartActivity() 14 | { 15 | Call("startActivity", AndroidContext.ActivityContext); 16 | } 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Id/AAIDResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Id 2 | { 3 | 4 | using HuaweiMobileServices.Utils; 5 | using UnityEngine; 6 | 7 | // Wrapper for com.huawei.hms.aaid.entity.AAIDResult 8 | public class AAIDResult : JavaObjectWrapper 9 | { 10 | 11 | 12 | public AAIDResult(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public virtual string Id => CallAsString("getId"); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Id/AccountAuthResult.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Id 8 | { 9 | //com.huawei.hms.support.hwid 10 | public class AccountAuthResult : JavaObjectWrapper 11 | { 12 | 13 | public AccountAuthResult(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public AuthAccount AuthResult => CallAsWrapper("getAuthResult"); 16 | 17 | public void SetAuthAccount(AuthAccount authAccount) => Call("getAuthResult", authAccount); 18 | public bool Success => Call("isSuccess"); 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Id/AccountIcon.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | namespace HuaweiMobileServices.Id 4 | { 5 | public class AccountIcon : JavaObjectWrapper 6 | { 7 | 8 | public AccountIcon(AndroidJavaObject javaObject) : base(javaObject) { } 9 | public AndroidBitmap Bitmap => CallAsWrapper("getIcon"); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Id/ReadSmsConstant.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.Id 6 | { 7 | public class ReadSmsConstant 8 | { 9 | public static readonly String READ_SMS_BROADCAST_ACTION = "com.huawei.hms.auth.api.phone.SMS_RETRIEVED"; 10 | public static readonly String EXTRA_SMS_MESSAGE = "com.huawei.hms.auth.api.phone.EXTRA_SMS_MESSAGE"; 11 | public static readonly String EXTRA_STATUS = "com.huawei.hms.auth.api.phone.EXTRA_STATUS"; 12 | public static readonly int FAIL = 2022; 13 | public static readonly int TIMEOUT = 15; 14 | public static readonly int SUCCESS = 0; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Id/Scope.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Id 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | // Wrapper for com.huawei.hms.support.api.entity.auth.Scope 7 | public class Scope : JavaObjectWrapper 8 | { 9 | 10 | public Scope() : base("com.huawei.hms.support.api.entity.auth.Scope") { } 11 | 12 | public Scope(string uri) : base("com.huawei.hms.support.api.entity.auth.Scope", uri.AsJavaString()) { } 13 | 14 | 15 | public Scope(AndroidJavaObject javaObject) : base(javaObject) { } 16 | 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Activity/ActivityIdentification.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | 5 | namespace HuaweiMobileServices.Location 6 | { 7 | public class ActivityIdentification : JavaObjectWrapper 8 | { 9 | public ActivityIdentification(AndroidJavaObject javaObject) : base(javaObject) { } 10 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.hms.location.ActivityIdentification"); 11 | 12 | public static ActivityIdentificationService GetService() => 13 | javaClass.CallStaticAsWrapper("getService", AndroidContext.ActivityContext); 14 | } 15 | } 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Activity/LocationBroadcastReceiver.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Location 5 | { 6 | public class LocationBroadcastReceiver : JavaObjectWrapper 7 | { 8 | public LocationBroadcastReceiver(AndroidJavaObject javaObject) : base(javaObject) { } 9 | 10 | private static AndroidJavaClass sJavaClass = 11 | new AndroidJavaClass("org.m0skit0.android.hms.unity.location.LocationBroadcastReceiver"); 12 | 13 | public static AndroidPendingIntent GetPendingIntent() => sJavaClass.CallStaticAsWrapper("getPendingIntent", AndroidContext.ActivityContext); 14 | 15 | public static void SetLocationCallbackListener(BroadcastListener listener) => sJavaClass.CallStatic("setLocationBroadcastListener", listener.JavaObject); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Geofences/GeoFenceBroadcastReceiver.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Location.Geofences 5 | { 6 | public class GeofenceBroadcastReceiver : JavaObjectWrapper 7 | { 8 | public GeofenceBroadcastReceiver(AndroidJavaObject javaObject) : base(javaObject) { } 9 | 10 | private static AndroidJavaClass sJavaClass = 11 | new AndroidJavaClass("org.m0skit0.android.hms.unity.location.GeofenceBroadcastReceiver"); 12 | 13 | public static AndroidPendingIntent GetPendingIntent() => 14 | sJavaClass.CallStaticAsWrapper("getPendingIntent", AndroidContext.ActivityContext); 15 | 16 | public static void SetGeofenceBroadcastListener(BroadcastListener listener) => sJavaClass.CallStatic("setGeofenceBroadcastListener", listener.JavaObject); 17 | 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/IBroadcastListener.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | namespace HuaweiMobileServices.Location 4 | { 5 | public interface IBroadcastListener 6 | { 7 | void OnReceive(AndroidIntent intent); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/ILocationCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Location.Location; 2 | 3 | namespace HuaweiMobileServices.Location 4 | { 5 | public interface ILocationCallback 6 | { 7 | void OnLocationResult(LocationResult result); 8 | void OnLocationAvailability(LocationAvailability availability); 9 | } 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Location/LocationSettingsResponse.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Location.Location 5 | { 6 | public class LocationSettingsResponse : JavaObjectWrapper 7 | { 8 | public LocationSettingsResponse(AndroidJavaObject javaObject) : base(javaObject) { } 9 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.hms.location.LocationSettingsResponse"); 10 | 11 | public LocationSettingsResponse(LocationSettingsResult locationSettingsResultt) 12 | : base("com.huawei.hms.location.LocationSettingsResponse", locationSettingsResultt) { } 13 | 14 | public LocationSettingsStates GetLocationSettingsStates() 15 | => CallAsWrapper("getLocationSettingsStates"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Location/LocationSettingsStatusCodes.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Location.Location 5 | { 6 | public class LocationSettingsStatusCodes : JavaObjectWrapper 7 | { 8 | public LocationSettingsStatusCodes(AndroidJavaObject javaObject) : base(javaObject) { } 9 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.hms.location.LocationSettingsStatusCodes"); 10 | 11 | public static int RESOLUTION_REQUIRED => javaClass.GetStatic("RESOLUTION_REQUIRED"); 12 | 13 | public static int SETTINGS_CHANGE_UNAVAILABLE => javaClass.GetStatic("SETTINGS_CHANGE_UNAVAILABLE"); 14 | 15 | } 16 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/LocationBridge.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Location.Location; 2 | using HuaweiMobileServices.Utils; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Location 6 | { 7 | public class LocationBridge : JavaObjectWrapper 8 | { 9 | public LocationBridge(AndroidJavaObject javaObject) : base(javaObject) { } 10 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("org.m0skit0.android.hms.unity.location.LocationBridge"); 11 | 12 | public static LocationCallback GetLocationResult() => javaClass.CallStaticAsWrapper("getLocationResult"); 13 | 14 | public static void SetLocationCallbackListener(LocationCallbackListener listener) => javaClass.CallStatic("setLocationCallbackListener", listener.JavaObject); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/Looper.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Location 5 | { 6 | public class Looper : JavaObjectWrapper 7 | { 8 | public Looper(AndroidJavaObject javaObject) : base(javaObject) { } 9 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("android.os.Looper"); 10 | 11 | public static Looper GetMainLooper() => javaClass.CallStaticAsWrapper("getMainLooper"); 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Location/SettingsClient.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Base; 2 | using HuaweiMobileServices.Location.Location; 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Location 7 | { 8 | public class SettingsClient : JavaObjectWrapper 9 | { 10 | public SettingsClient(AndroidJavaObject javaObject) : base(javaObject) { } 11 | private static readonly AndroidJavaClass javaClass = new AndroidJavaClass("com.huawei.hms.location.SettingsClient"); 12 | 13 | public ITask SetLogConfig(LogConfig logConfig) 14 | => CallAsWrapper("setLogConfig", logConfig); 15 | 16 | public ITask CheckLocationSettings(LocationSettingsRequest locationSettingsRequest) => CallAsWrapper>("checkLocationSettings", locationSettingsRequest); 17 | 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/ML/DownloadModel/MLLocalModel.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.ML.DownloadModel 5 | { 6 | // Wrapper for com.huawei.hms.mlsdk.model.download.MLLocalModel 7 | // https://developer.huawei.com/consumer/en/doc/hiai-References/mllocalmodel-0000001054841474 8 | public class MLLocalModel : JavaObjectWrapper 9 | { 10 | public MLLocalModel(AndroidJavaObject javaObject) : base(javaObject) 11 | { 12 | } 13 | 14 | public string ModelName => Call("getModelName"); 15 | public string AssetPathFile => Call("getAssetPathFile"); 16 | public string LocalFullPathFile => Call("getLocalFullPathFile"); 17 | 18 | public override int GetHashCode() => Call("hashCode"); 19 | public override bool Equals(object other) => CallAsBool("equals", other); 20 | 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/ML/DownloadModel/MLRemoteModel.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.ML.DownloadModel 5 | { 6 | // Wrapper for com.huawei.hms.mlsdk.model.download.MLRemoteModel 7 | // https://developer.huawei.com/consumer/en/doc/hiai-References/mlremotemodel-0000001050444221 8 | public class MLRemoteModel : JavaObjectWrapper 9 | { 10 | public MLRemoteModel(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public override bool Equals(object other) => CallAsBool("equals", other); 13 | public override int GetHashCode() => Call("hashCode"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/ML/TextRecognition/TextLanguage.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.ML.TextRecognition 8 | { 9 | public class TextLanguage : JavaObjectWrapper 10 | { 11 | public const string CLASS_NAME = "com.huawei.hms.mlsdk.text.TextLanguage"; 12 | public readonly AndroidJavaClass androidJavaClass = new AndroidJavaClass(CLASS_NAME); 13 | public TextLanguage(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public string Language => Call("getLanguage"); 16 | 17 | public override int GetHashCode() 18 | { 19 | return Call("hashCode"); 20 | } 21 | 22 | public override bool Equals(object obj) 23 | { 24 | return Call("equals", obj); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/ML/Translate/Cloud/MLRemoteTranslator.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Base; 2 | using HuaweiMobileServices.Utils; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.ML.Translate.Cloud 6 | { 7 | // Wrapper for com.huawei.hms.mlsdk.translate.cloud.MLRemoteTranslator 8 | // https://developer.huawei.com/consumer/en/doc/hiai-References/mlremotetranslator-0000001050167532 9 | public class MLRemoteTranslator : JavaObjectWrapper 10 | { 11 | public MLRemoteTranslator(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public ITask TranslateAsync(string text) => CallAsWrapper>("asyncTranslate", text); 14 | 15 | public void Stop() => Call("stop"); 16 | 17 | public string Translate(string text) => Call("syncTranslate", text); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/BleSignal.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | namespace HuaweiMobileServices.Nearby.Discovery 4 | { 5 | public class BleSignal : JavaObjectWrapper 6 | { 7 | 8 | public BleSignal() : base("com.huawei.hms.nearby.discovery.BleSignal") { } 9 | public int Rssi => Call("getRssi"); 10 | public int TxPower => Call("getTxPower"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/BroadcastOption.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Nearby.Discovery 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using System; 6 | using UnityEngine; 7 | 8 | public class BroadcastOption : JavaObjectWrapper 9 | { 10 | 11 | public BroadcastOption(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public Policy Policy => CallAsWrapper("getPolicy"); 13 | public class Builder : JavaObjectWrapper 14 | { 15 | 16 | public Builder(AndroidJavaObject javaObject) : base(javaObject) { } 17 | 18 | public Builder() : base("com.huawei.hms.nearby.discovery.BroadcastOption$Builder") { } 19 | public BroadcastOption Build() => CallAsWrapper("build"); 20 | public Builder SetPolicy(Policy policy) => CallAsWrapper("setPolicy", policy); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ChannelPolicy.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public class ChannelPolicy : JavaObjectWrapper 7 | { 8 | 9 | public ChannelPolicy(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.nearby.discovery.ChannelPolicy"); 12 | public static ChannelPolicy CHANNEL_AUTO => androidJavaClass.GetStaticAsWrapper("CHANNEL_AUTO"); 13 | public static ChannelPolicy CHANNEL_HIGH_THROUGHPUT => androidJavaClass.GetStaticAsWrapper("CHANNEL_HIGH_THROUGHPUT"); 14 | public static ChannelPolicy CHANNEL_INSTANCE => androidJavaClass.GetStaticAsWrapper("CHANNEL_INSTANCE"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ConnectInfo.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Nearby.Discovery 6 | { 7 | //com.huawei.hms.nearby.discovery.ConnectInfo 8 | public class ConnectInfo : JavaObjectWrapper 9 | { 10 | 11 | public ConnectInfo(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public String AuthCode => Call("getAuthCode"); 13 | public String EndpointName => Call("getEndpointName"); 14 | public bool IsRemoteConnect => Call("isRemoteConnect"); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ConnectOption.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public class ConnectOption : JavaObjectWrapper 7 | { 8 | public ConnectOption(AndroidJavaObject javaObject) : base(javaObject) { } 9 | public ChannelPolicy Policy => CallAsWrapper("getPolicy"); 10 | public class Builder : JavaObjectWrapper 11 | { 12 | 13 | public Builder(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public Builder() : base("com.huawei.hms.nearby.discovery.ConnectOption$Builder") { } 16 | public ConnectOption Build() => CallAsWrapper("build"); 17 | public Builder SetPolicy(ChannelPolicy policy) => CallAsWrapper("setPolicy", policy); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ConnectResult.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Nearby.Discovery 2 | { 3 | using HuaweiMobileServices.Base; 4 | using HuaweiMobileServices.Utils; 5 | using System; 6 | using UnityEngine; 7 | //com.huawei.hms.nearby.discovery.ConnectResult 8 | public class ConnectResult : JavaObjectWrapper 9 | { 10 | 11 | public ConnectResult(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public Status Status => CallAsWrapper("getStatus"); 13 | } 14 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/Distance.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | namespace HuaweiMobileServices.Nearby.Discovery 4 | { 5 | public class Distance : JavaObjectWrapper 6 | { 7 | 8 | public Distance() : base("com.huawei.hms.nearby.discovery.Distance") { } 9 | public int Precision => Call("getPrecision"); 10 | public int Meters => Call("getMeters"); 11 | } 12 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/IConnectCallBack.cs: -------------------------------------------------------------------------------- 1 |  2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public interface IConnectCallBack 7 | { 8 | void onEstablish(string p0, ConnectInfo p1); 9 | void onResult(string p0, ConnectResult p1); 10 | void onDisconnected(string p0); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/IScanEndpointCallback.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public interface IScanEndpointCallback 7 | { 8 | void onFound(String endpointId, ScanEndpointInfo info); 9 | void onLost(String endpointId); 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/Policy.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public class Policy : JavaObjectWrapper 7 | { 8 | 9 | public Policy(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.nearby.discovery.Policy"); 12 | public static Policy POLICY_MESH => androidJavaClass.GetStaticAsWrapper("POLICY_MESH"); 13 | public static Policy POLICY_P2P => androidJavaClass.GetStaticAsWrapper("POLICY_P2P"); 14 | public static Policy POLICY_STAR => androidJavaClass.GetStaticAsWrapper("POLICY_STAR"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ScanEndpointInfo.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Nearby.Discovery 6 | { 7 | public class ScanEndpointInfo : JavaObjectWrapper 8 | { 9 | 10 | public ScanEndpointInfo(AndroidJavaObject javaObject) : base(javaObject) { } 11 | public String Name => Call("getName"); 12 | public String ServiceID => Call("getServiceID"); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Discovery/ScanOption.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.Discovery 5 | { 6 | public class ScanOption : JavaObjectWrapper 7 | { 8 | 9 | public ScanOption(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public Policy Policy => CallAsWrapper("getPolicy"); 12 | 13 | public class Builder : JavaObjectWrapper 14 | { 15 | 16 | public Builder(AndroidJavaObject javaObject) : base(javaObject) { } 17 | 18 | public Builder() : base("com.huawei.hms.nearby.discovery.ScanOption$Builder") { } 19 | public ScanOption Build() => CallAsWrapper("build"); 20 | public Builder SetPolicy(Policy policy) => CallAsWrapper("setPolicy", policy); } 21 | } 22 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/GetCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Nearby.Message 6 | { 7 | public class GetCallback : AndroidJavaProxy 8 | { 9 | private Action OnTimeout; 10 | public GetCallback(Action onTimeout) : base("com.huawei.hms.nearby.message.GetCallback") 11 | { 12 | OnTimeout = onTimeout; 13 | } 14 | public void onTimeout() 15 | { 16 | this.CallOnMainThread(() => { OnTimeout.Invoke(); }); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/IMessageHandler.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Nearby.Discovery; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace HuaweiMobileServices.Nearby.Message 7 | { 8 | public interface IMessageHandler 9 | { 10 | void OnBleSignalChanged(Message message, BleSignal bleSignal); 11 | void OnDistanceChanged(Message message, BleSignal bleSignal); 12 | void OnFound(Message message); 13 | void OnLost(Message message); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/IStatusCallback.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace HuaweiMobileServices.Nearby.Message 6 | { 7 | public interface IStatusCallback 8 | { 9 | void onPermissionChanged(bool grantPermission); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/MessageOption.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Nearby.Message 8 | { 9 | public class MessageOption : JavaObjectWrapper 10 | { 11 | 12 | public MessageOption(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public int Permissions => Call("getPermissions"); 15 | 16 | public class Builder : JavaObjectWrapper 17 | { 18 | 19 | public Builder(AndroidJavaObject javaObject) : base(javaObject) { } 20 | 21 | public Builder() : base("com.huawei.hms.nearby.message.MessageOption$Builder") { } 22 | public GetOption Build() => CallAsWrapper("build"); 23 | public Builder SetPermissions(int permissions) => CallAsWrapper("setPermissions", permissions); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/PutCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Nearby.Message 6 | { 7 | public class PutCallback : AndroidJavaProxy 8 | { 9 | private Action OnTimeout; 10 | 11 | public PutCallback(Action onTimeout) : base("com.huawei.hms.nearby.message.PutCallback") 12 | { 13 | OnTimeout = onTimeout; 14 | } 15 | 16 | public void onTimeout() 17 | { 18 | this.CallOnMainThread(() => { OnTimeout.Invoke(); }); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Message/StatusCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Nearby.Message 8 | { 9 | public class StatusCallback : AndroidJavaProxy 10 | { 11 | private Action OnPermissionChanged; 12 | 13 | public StatusCallback(Action onPermissionChanged) : base("com.huawei.hms.nearby.message.StatusCallback") 14 | { 15 | OnPermissionChanged = onPermissionChanged; 16 | } 17 | 18 | public void onPermissionChanged(bool grantPermission) 19 | { 20 | this.CallOnMainThread(() => { OnPermissionChanged.Invoke(grantPermission); }); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/NearbyApiContext.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Nearby.Discovery; 2 | using HuaweiMobileServices.Nearby.Transfer; 3 | using System; 4 | using HuaweiMobileServices.Nearby.WifiShare; 5 | using HuaweiMobileServices.Utils; 6 | using UnityEngine; 7 | 8 | namespace HuaweiMobileServices.Nearby 9 | { 10 | public class NearbyApiContext : JavaObjectWrapper 11 | { 12 | 13 | public NearbyApiContext(AndroidJavaObject javaObject) : base(javaObject) { } 14 | private static readonly AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.nearby.NearbyApiContext"); 15 | public static NearbyApiContext Instance => androidJavaClass.CallStaticAsWrapper("getInstance"); 16 | 17 | public string ApiKey 18 | { 19 | get => Call("getApiKey"); 20 | set => Call("setApiKey", value); 21 | } 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/Transfer/IDataCallback.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Nearby.Transfer 7 | { 8 | public interface IDataCallback 9 | { 10 | void onReceived(String endpointId, Data data); 11 | void onTransferUpdate(String endpointId, TransferStateUpdate update); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/WifiShare/IWifiShareCallback.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Nearby.Discovery; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | 8 | namespace HuaweiMobileServices.Nearby.WifiShare 9 | { 10 | public interface IWifiShareCallback 11 | { 12 | void onFound(String endpointId, ScanEndpointInfo info); 13 | void onLost(String endpointId); 14 | void onFetchAuthCode(String endpointId, String authCode); 15 | void onWifiShareResult(String endpointId, int statusCode); 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Nearby/WifiShare/WifiSharePolicy.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Nearby.WifiShare 5 | { 6 | public class WifiSharePolicy : JavaObjectWrapper 7 | { 8 | 9 | public WifiSharePolicy(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.nearby.wifishare.WifiSharePolicy"); 12 | public static WifiSharePolicy POLICY_MESH => androidJavaClass.GetStatic("POLICY_SHARE"); 13 | public static WifiSharePolicy POLICY_SET => androidJavaClass.GetStatic("POLICY_SET"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/FcmPushProxy.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Push 7 | { 8 | public class FcmPushProxy 9 | { 10 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.push.plugin.fcm.FcmPushProxy"); 11 | public static bool Init() => androidJavaClass.Call("init", AndroidContext.ApplicationContext); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/IPushListener.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Push 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | 6 | public interface IPushListener 7 | { 8 | void OnNewToken(string token); 9 | void OnNewToken(string token, Bundle bundle); 10 | void OnTokenError(Exception e); 11 | void OnMessageReceived(RemoteMessage remoteMessage); 12 | void OnTokenError(Exception exception, Bundle bundle); 13 | void OnMessageSent(String msgId); 14 | void OnMessageDelivered(String msgId, Exception exception); 15 | void OnSendError(String msgId, Exception exception); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/NotificationData.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Push 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using UnityEngine; 5 | 6 | public class NotificationData : JavaObjectWrapper 7 | { 8 | public NotificationData(AndroidJavaObject javaObject) : base(javaObject) 9 | { 10 | } 11 | 12 | private static AndroidJavaClass sJavaClass = new AndroidJavaClass("org.m0skit0.android.hms.unity.push.PushBridge$NotificationData"); 13 | 14 | public string MsgId => sJavaClass.GetStatic("msgid"); 15 | 16 | public string CmdType => sJavaClass.GetStatic("cmdType"); 17 | 18 | public int NotifyId => sJavaClass.GetStatic("notifyId"); 19 | 20 | public string KeyValueJSON => sJavaClass.GetStatic("keyValueJson"); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/NotificationListenerWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Push 2 | { 3 | using HuaweiMobileServices.Utils; 4 | using System; 5 | using UnityEngine; 6 | 7 | internal class NotificationListenerWrapper : AndroidJavaProxy 8 | { 9 | private Action mOnNotificationMessage; 10 | 11 | public NotificationListenerWrapper(Action onNotificationMessage) : base("org.m0skit0.android.hms.unity.push.NotificationListener") 12 | { 13 | mOnNotificationMessage = onNotificationMessage; 14 | } 15 | 16 | public void onNotificationMessage(AndroidJavaObject notificationData) 17 | { 18 | this.CallOnMainThread(() => { mOnNotificationMessage.Invoke(notificationData.AsWrapper()); }); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/OdidResult.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Push 8 | { 9 | public class OdidResult : JavaObjectWrapper 10 | { 11 | public OdidResult(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public bool Id => Call("getId"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/OpenDevice.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Base; 2 | using HuaweiMobileServices.Utils; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Push 6 | { 7 | public class OpenDevice : JavaObjectWrapper 8 | { 9 | public OpenDevice(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.opendevice.OpenDevice"); 12 | public static OpenDeviceClient OpenDeviceClient() => androidJavaClass.CallStaticAsWrapper("getOpenDeviceClient",AndroidContext.ApplicationContext); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/OpenDeviceClient.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Base; 2 | using HuaweiMobileServices.Utils; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | using UnityEngine; 7 | 8 | namespace HuaweiMobileServices.Push 9 | { 10 | public class OpenDeviceClient : JavaObjectWrapper 11 | { 12 | public OpenDeviceClient(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public ITask Odid() => CallAsWrapper>("getOdid"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Push/ProxySettings.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace HuaweiMobileServices.Push 8 | { 9 | public class ProxySettings 10 | { 11 | private static AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.huawei.hms.push.plugin.base.proxy.ProxySettings"); 12 | public static void SetCountryCode(String countryCode) => androidJavaClass.Call("setCountryCode",AndroidContext.ApplicationContext, countryCode); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Scan/OnLightVisibleCallBack/IOnLightVisibleCallBack.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Scan 2 | { 3 | public interface IOnLightVisibleCallBack 4 | { 5 | void OnVisibleChanged(bool visible); 6 | } 7 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Scan/OnResultCallback/IOnResultCallback.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Scan 2 | { 3 | public interface IOnResultCallback 4 | { 5 | void OnResult(HmsScan[] result); 6 | } 7 | } 8 | 9 | //OnResultCallbackWrapper -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Scan/Rect.cs: -------------------------------------------------------------------------------- 1 | using HuaweiMobileServices.Utils; 2 | 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | using UnityEngine; 7 | 8 | 9 | namespace HuaweiMobileServices 10 | { 11 | public class Rect : JavaObjectWrapper 12 | { 13 | public Rect(AndroidJavaObject javaObject) : base(javaObject) { } 14 | public Rect() : base("android.graphics.Rect") { } 15 | 16 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("android.graphics.Rect"); 17 | 18 | 19 | 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/AndroidAccount.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | using UnityEngine; 4 | 5 | // Wrapper for android.accounts.Account 6 | public class AndroidAccount : JavaObjectWrapper 7 | { 8 | 9 | 10 | public AndroidAccount(AndroidJavaObject javaObject) : base(javaObject) { } 11 | 12 | public virtual AndroidJavaObject Account => JavaObject; 13 | 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/AndroidBitmap.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | using UnityEngine; 4 | 5 | public class AndroidBitmap : JavaObjectWrapper 6 | { 7 | 8 | 9 | public AndroidBitmap(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public AndroidJavaObject Bitmap => JavaObject; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/AndroidBitmapFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | namespace HuaweiMobileServices.Utils 6 | { 7 | public class AndroidBitmapFactory : JavaObjectWrapper 8 | { 9 | private const string CLASS_NAME = "android.graphics.BitmapFactory"; 10 | private static AndroidJavaClass BitmapFactoryClass = new AndroidJavaClass(CLASS_NAME); 11 | 12 | 13 | public AndroidBitmapFactory(AndroidJavaObject javaObject) : base(javaObject) { } 14 | 15 | public static AndroidJavaObject DecodeFile (string fileName) => BitmapFactoryClass.CallStatic("decodeFile", fileName); 16 | 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/AndroidBundle.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | using UnityEngine; 4 | 5 | public class AndroidBundle : JavaObjectWrapper 6 | { 7 | 8 | 9 | public AndroidBundle(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public AndroidJavaObject Bundle => JavaObject; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/AndroidPendingIntent.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | using UnityEngine; 4 | 5 | public class AndroidPendingIntent : JavaObjectWrapper 6 | { 7 | 8 | 9 | public AndroidPendingIntent(AndroidJavaObject javaObject) : base(javaObject) { } 10 | 11 | public AndroidJavaObject Intent => JavaObject; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/ClassLoader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Utils 7 | { 8 | public class ClassLoader :JavaObjectWrapper 9 | { 10 | private const string CLASS_NAME = "java.lang.ClassLoader"; 11 | public ClassLoader(AndroidJavaObject javaObject) : base(javaObject) { } 12 | public ClassLoader(AndroidJavaClass ActivityClass) : base(CLASS_NAME) { } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/EnumerableUtils.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | internal static class EnumerableUtils 7 | { 8 | 9 | public static IList Map(this IList list, Func action) 10 | { 11 | if (list == null) return null; 12 | var newList = new List(); 13 | foreach (T element in list) 14 | { 15 | newList.Add(action.Invoke(element)); 16 | } 17 | return newList; 18 | } 19 | 20 | public static ISet Map(this ISet set, Func action) 21 | { 22 | if (set == null) return null; 23 | var newSet = new HashSet(); 24 | foreach (T element in set) 25 | { 26 | newSet.Add(action.Invoke(element)); 27 | } 28 | return newSet; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/JavaReflectionUtils.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | 4 | using UnityEngine; 5 | 6 | internal static class JavaReflectionUtils 7 | { 8 | 9 | public static AndroidJavaObject GetJavaClass(this AndroidJavaObject javaObject) => 10 | javaObject.Call("getClass"); 11 | 12 | public static bool InstanceOf(this AndroidJavaObject javaObject, string className) => 13 | javaObject.GetJavaClass().Call("isInstance", className.AsJavaString()); 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/ParameterUtils.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | internal static class ParameterUtils 4 | { 5 | 6 | public static object[] AsAutoParams(this object[] args) 7 | { 8 | var newArgs = new object[args.Length]; 9 | for (int i = 0; i < args.Length; i++) 10 | { 11 | newArgs[i] = AsAutoType(args[i]); 12 | } 13 | return newArgs; 14 | } 15 | 16 | public static object AsAutoType(this object arg) 17 | { 18 | if (arg is JavaObjectWrapper) return (arg as JavaObjectWrapper).JavaObject; 19 | if (arg is string) return (arg as string).AsJavaString(); 20 | return arg; 21 | } 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/Point.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | 4 | namespace HuaweiMobileServices.Utils 5 | { 6 | public class Point : JavaObjectWrapper 7 | { 8 | public Point(AndroidJavaObject javaObject) : base(javaObject) { } 9 | public Point() : base("android.graphics.Point") { } 10 | 11 | private static readonly AndroidJavaClass sJavaClass = new AndroidJavaClass("android.graphics.Point"); 12 | } 13 | } -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/Set.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | namespace HuaweiMobileServices.Utils 7 | { 8 | public class Set : JavaObjectWrapper 9 | { 10 | private const string CLASS_NAME = "java.util.Set"; 11 | 12 | public Set(AndroidJavaObject javaObject) : base(javaObject) { } 13 | 14 | public Set() : base(CLASS_NAME) { } 15 | 16 | public Set(String arg1, String arg2) : base(CLASS_NAME, arg1, arg2) { } 17 | public int Size => Call("size"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/Uri.cs: -------------------------------------------------------------------------------- 1 |  2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace HuaweiMobileServices.Utils 6 | { 7 | public class Uri : JavaObjectWrapper 8 | { 9 | 10 | private const string CLASS_NAME = "android.net.Uri"; 11 | public Uri(AndroidJavaObject javaObject) : base(javaObject) { } 12 | 13 | public override string ToString() => CallAsString("toString"); 14 | public string GetPath => CallAsString("getPath"); 15 | public string LastPathSegment => CallAsString("getLastPathSegment"); 16 | public IList PathSegments => CallAsStringList("getPathSegments"); 17 | public string GetScheme => CallAsString("getScheme"); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/Utils/Void.cs: -------------------------------------------------------------------------------- 1 | namespace HuaweiMobileServices.Utils 2 | { 3 | public sealed class Void 4 | { 5 | 6 | internal static readonly Void INSTANCE = new Void(); 7 | 8 | private Void() { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ARModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ARModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AccessibilityModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AccessibilityModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AnimationModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AnimationModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AssetBundleModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AssetBundleModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AudioModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.AudioModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClothModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClothModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClusterInputModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClusterInputModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClusterRendererModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ClusterRendererModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.CoreModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.CoreModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.CrashReportingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.CrashReportingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.DirectorModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.DirectorModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.GameCenterModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.GameCenterModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.GridModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.GridModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.IMGUIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.IMGUIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ImageConversionModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ImageConversionModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.InputModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.InputModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.JSONSerializeModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.JSONSerializeModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ParticleSystemModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ParticleSystemModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ParticlesLegacyModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ParticlesLegacyModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.PerformanceReportingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.PerformanceReportingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.Physics2DModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.Physics2DModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.PhysicsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.PhysicsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ScreenCaptureModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.ScreenCaptureModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SharedInternalsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SharedInternalsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SpriteMaskModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SpriteMaskModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SpriteShapeModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.SpriteShapeModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.StyleSheetsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.StyleSheetsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TerrainModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TerrainModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TerrainPhysicsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TerrainPhysicsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TextRenderingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TextRenderingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TilemapModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.TilemapModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UIElementsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UIElementsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UNETModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UNETModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityAnalyticsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityAnalyticsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityConnectModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityConnectModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestAudioModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestAudioModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestTextureModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestTextureModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestWWWModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.UnityWebRequestWWWModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VRModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VRModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VehiclesModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VehiclesModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VideoModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.VideoModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.WebModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.WebModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.WindModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.WindModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2018/UnityEngine.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ARModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ARModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AccessibilityModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AccessibilityModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AndroidJNIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AndroidJNIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AnimationModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AnimationModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AssetBundleModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AssetBundleModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AudioModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.AudioModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClothModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClothModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClusterInputModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClusterInputModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClusterRendererModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ClusterRendererModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.CoreModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.CoreModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.CrashReportingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.CrashReportingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.DSPGraphModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.DSPGraphModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.DirectorModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.DirectorModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.GameCenterModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.GameCenterModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.GridModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.GridModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.HotReloadModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.HotReloadModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.IMGUIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.IMGUIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ImageConversionModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ImageConversionModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.InputLegacyModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.InputLegacyModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.InputModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.InputModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.JSONSerializeModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.JSONSerializeModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.LocalizationModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.LocalizationModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ParticleSystemModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ParticleSystemModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.PerformanceReportingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.PerformanceReportingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.Physics2DModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.Physics2DModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.PhysicsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.PhysicsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ProfilerModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ProfilerModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ScreenCaptureModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.ScreenCaptureModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SharedInternalsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SharedInternalsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SpriteMaskModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SpriteMaskModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SpriteShapeModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SpriteShapeModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.StreamingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.StreamingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SubstanceModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SubstanceModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SubsystemsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.SubsystemsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TLSModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TLSModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TerrainModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TerrainModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TerrainPhysicsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TerrainPhysicsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TextCoreModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TextCoreModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TextRenderingModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TextRenderingModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TilemapModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.TilemapModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UIElementsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UIElementsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UIModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UIModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UNETModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UNETModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UmbraModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UmbraModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityAnalyticsModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityAnalyticsModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityConnectModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityConnectModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityTestProtocolModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityTestProtocolModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestAssetBundleModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestAssetBundleModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestAudioModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestAudioModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestTextureModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestTextureModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestWWWModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.UnityWebRequestWWWModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VFXModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VFXModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VRModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VRModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VehiclesModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VehiclesModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VideoModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.VideoModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.WindModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.WindModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.XRModule.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.XRModule.dll -------------------------------------------------------------------------------- /hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvilMindDevs/hms-sdk-unity/7f5ede0c18b663707aedfc2cc87506054caebad2/hms-sdk-unity/HuaweiMobileServices/libs/Unity2019/UnityEngine.dll --------------------------------------------------------------------------------