com.beanbag.huaweiads 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Documentation.md +9 -0
- package/Documentation.md.meta +7 -0
- package/Editor/Editor/Extensions/ActionExtensions.cs +32 -0
- package/Editor/Editor/Extensions/ActionExtensions.cs.meta +11 -0
- package/Editor/Editor/Extensions/CollectionExtensions.cs +36 -0
- package/Editor/Editor/Extensions/CollectionExtensions.cs.meta +11 -0
- package/Editor/Editor/Extensions/StringExtensions.cs +119 -0
- package/Editor/Editor/Extensions/StringExtensions.cs.meta +11 -0
- package/Editor/Editor/Extensions/WindowExtensions.cs +59 -0
- package/Editor/Editor/Extensions/WindowExtensions.cs.meta +11 -0
- package/Editor/Editor/Extensions.meta +8 -0
- package/Editor/Editor/General/UI/Button/Button.cs +143 -0
- package/Editor/Editor/General/UI/Button/Button.cs.meta +11 -0
- package/Editor/Editor/General/UI/Button/Clickable.cs +30 -0
- package/Editor/Editor/General/UI/Button/Clickable.cs.meta +11 -0
- package/Editor/Editor/General/UI/Button.meta +8 -0
- package/Editor/Editor/General/UI/Collections/IReadOnlyList.cs +10 -0
- package/Editor/Editor/General/UI/Collections/IReadOnlyList.cs.meta +11 -0
- package/Editor/Editor/General/UI/Collections.meta +8 -0
- package/Editor/Editor/General/UI/ConditionalDrawer.cs +25 -0
- package/Editor/Editor/General/UI/ConditionalDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/CustomEditorDrawer.cs +12 -0
- package/Editor/Editor/General/UI/CustomEditorDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Depth.cs +27 -0
- package/Editor/Editor/General/UI/Depth.cs.meta +11 -0
- package/Editor/Editor/General/UI/DisabledDrawer.cs +53 -0
- package/Editor/Editor/General/UI/DisabledDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Dropdown/EnumDropdown.cs +35 -0
- package/Editor/Editor/General/UI/Dropdown/EnumDropdown.cs.meta +11 -0
- package/Editor/Editor/General/UI/Dropdown/EnumFlagsDropdown.cs +24 -0
- package/Editor/Editor/General/UI/Dropdown/EnumFlagsDropdown.cs.meta +11 -0
- package/Editor/Editor/General/UI/Dropdown/IDropdown.cs +9 -0
- package/Editor/Editor/General/UI/Dropdown/IDropdown.cs.meta +11 -0
- package/Editor/Editor/General/UI/Dropdown/StringDropdown.cs +46 -0
- package/Editor/Editor/General/UI/Dropdown/StringDropdown.cs.meta +11 -0
- package/Editor/Editor/General/UI/Dropdown.meta +8 -0
- package/Editor/Editor/General/UI/Focusable.cs +53 -0
- package/Editor/Editor/General/UI/Focusable.cs.meta +11 -0
- package/Editor/Editor/General/UI/Foldout.cs +61 -0
- package/Editor/Editor/General/UI/Foldout.cs.meta +11 -0
- package/Editor/Editor/General/UI/HelpBox/HelpBox.cs +42 -0
- package/Editor/Editor/General/UI/HelpBox/HelpBox.cs.meta +11 -0
- package/Editor/Editor/General/UI/HelpBox/RichHelpBox.cs +35 -0
- package/Editor/Editor/General/UI/HelpBox/RichHelpBox.cs.meta +11 -0
- package/Editor/Editor/General/UI/HelpBox.meta +8 -0
- package/Editor/Editor/General/UI/HorizontalLine.cs +13 -0
- package/Editor/Editor/General/UI/HorizontalLine.cs.meta +11 -0
- package/Editor/Editor/General/UI/IDrawer.cs +7 -0
- package/Editor/Editor/General/UI/IDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Image/Image.cs +49 -0
- package/Editor/Editor/General/UI/Image/Image.cs.meta +11 -0
- package/Editor/Editor/General/UI/Image.meta +8 -0
- package/Editor/Editor/General/UI/InlineGroup.cs +41 -0
- package/Editor/Editor/General/UI/InlineGroup.cs.meta +11 -0
- package/Editor/Editor/General/UI/Label/DelegatedLabel.cs +31 -0
- package/Editor/Editor/General/UI/Label/DelegatedLabel.cs.meta +11 -0
- package/Editor/Editor/General/UI/Label/Label.cs +133 -0
- package/Editor/Editor/General/UI/Label/Label.cs.meta +11 -0
- package/Editor/Editor/General/UI/Label.meta +8 -0
- package/Editor/Editor/General/UI/List/AlteratingListDrawer.cs +93 -0
- package/Editor/Editor/General/UI/List/AlteratingListDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/List/ListDrawer.cs +77 -0
- package/Editor/Editor/General/UI/List/ListDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/List.meta +8 -0
- package/Editor/Editor/General/UI/LongProcess.cs +24 -0
- package/Editor/Editor/General/UI/LongProcess.cs.meta +11 -0
- package/Editor/Editor/General/UI/Menu/EditableMenu.cs +46 -0
- package/Editor/Editor/General/UI/Menu/EditableMenu.cs.meta +11 -0
- package/Editor/Editor/General/UI/Menu/Menu.cs +55 -0
- package/Editor/Editor/General/UI/Menu/Menu.cs.meta +11 -0
- package/Editor/Editor/General/UI/Menu.meta +8 -0
- package/Editor/Editor/General/UI/PersistentFoldout.cs +72 -0
- package/Editor/Editor/General/UI/PersistentFoldout.cs.meta +11 -0
- package/Editor/Editor/General/UI/ScrollView/ScrollView.cs +16 -0
- package/Editor/Editor/General/UI/ScrollView/ScrollView.cs.meta +11 -0
- package/Editor/Editor/General/UI/ScrollView.meta +8 -0
- package/Editor/Editor/General/UI/Sequence/EmptySequenceDrawer.cs +33 -0
- package/Editor/Editor/General/UI/Sequence/EmptySequenceDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Sequence/HorizontalSequenceDrawer.cs +18 -0
- package/Editor/Editor/General/UI/Sequence/HorizontalSequenceDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Sequence/SequenceDrawer.cs +74 -0
- package/Editor/Editor/General/UI/Sequence/SequenceDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Sequence/VerticalSequenceDrawer.cs +28 -0
- package/Editor/Editor/General/UI/Sequence/VerticalSequenceDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Sequence.meta +8 -0
- package/Editor/Editor/General/UI/Space.cs +19 -0
- package/Editor/Editor/General/UI/Space.cs.meta +11 -0
- package/Editor/Editor/General/UI/Spacer.cs +13 -0
- package/Editor/Editor/General/UI/Spacer.cs.meta +11 -0
- package/Editor/Editor/General/UI/TabBar/TabBar.cs +42 -0
- package/Editor/Editor/General/UI/TabBar/TabBar.cs.meta +11 -0
- package/Editor/Editor/General/UI/TabBar/TabView.cs +13 -0
- package/Editor/Editor/General/UI/TabBar/TabView.cs.meta +11 -0
- package/Editor/Editor/General/UI/TabBar.meta +8 -0
- package/Editor/Editor/General/UI/TextArea/TextArea.cs +74 -0
- package/Editor/Editor/General/UI/TextArea/TextArea.cs.meta +11 -0
- package/Editor/Editor/General/UI/TextArea.meta +8 -0
- package/Editor/Editor/General/UI/TextField/ReturnChecker.cs +40 -0
- package/Editor/Editor/General/UI/TextField/ReturnChecker.cs.meta +11 -0
- package/Editor/Editor/General/UI/TextField/TextField.cs +169 -0
- package/Editor/Editor/General/UI/TextField/TextField.cs.meta +11 -0
- package/Editor/Editor/General/UI/TextField/TextFieldWithAccept.cs +65 -0
- package/Editor/Editor/General/UI/TextField/TextFieldWithAccept.cs.meta +11 -0
- package/Editor/Editor/General/UI/TextField.meta +8 -0
- package/Editor/Editor/General/UI/TimedDrawer.cs +35 -0
- package/Editor/Editor/General/UI/TimedDrawer.cs.meta +11 -0
- package/Editor/Editor/General/UI/Toggle/Toggle.cs +67 -0
- package/Editor/Editor/General/UI/Toggle/Toggle.cs.meta +11 -0
- package/Editor/Editor/General/UI/Toggle/ToggledTextFieldWithButton.cs +41 -0
- package/Editor/Editor/General/UI/Toggle/ToggledTextFieldWithButton.cs.meta +11 -0
- package/Editor/Editor/General/UI/Toggle.meta +8 -0
- package/Editor/Editor/General/UI/Window/DisplayDialog.cs +55 -0
- package/Editor/Editor/General/UI/Window/DisplayDialog.cs.meta +11 -0
- package/Editor/Editor/General/UI/Window/HMSEditorWindow.cs +60 -0
- package/Editor/Editor/General/UI/Window/HMSEditorWindow.cs.meta +11 -0
- package/Editor/Editor/General/UI/Window/ModalDialog.cs +93 -0
- package/Editor/Editor/General/UI/Window/ModalDialog.cs.meta +11 -0
- package/Editor/Editor/General/UI/Window/ModalWindow.cs +88 -0
- package/Editor/Editor/General/UI/Window/ModalWindow.cs.meta +11 -0
- package/Editor/Editor/General/UI/Window.meta +8 -0
- package/Editor/Editor/General/UI.meta +8 -0
- package/Editor/Editor/General.meta +8 -0
- package/Editor/Editor/HuaweiAdsFileCopier.cs +62 -0
- package/Editor/Editor/HuaweiAdsFileCopier.cs.meta +11 -0
- package/Editor/Editor/HuaweiMobileServices.Editor.asmdef +17 -0
- package/Editor/Editor/HuaweiMobileServices.Editor.asmdef.meta +7 -0
- package/Editor/Editor/Utils/HMSEditorUtils.cs +490 -0
- package/Editor/Editor/Utils/HMSEditorUtils.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSExcelHelper.cs +50 -0
- package/Editor/Editor/Utils/HMSExcelHelper.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSGradleFixer.cs +178 -0
- package/Editor/Editor/Utils/HMSGradleFixer.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSGradleWorker.cs +316 -0
- package/Editor/Editor/Utils/HMSGradleWorker.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSPackageChecker.cs +26 -0
- package/Editor/Editor/Utils/HMSPackageChecker.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSPluginUpdater.cs +208 -0
- package/Editor/Editor/Utils/HMSPluginUpdater.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSPluginUpdaterInit.cs +20 -0
- package/Editor/Editor/Utils/HMSPluginUpdaterInit.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSWebRequestHelper.cs +388 -0
- package/Editor/Editor/Utils/HMSWebRequestHelper.cs.meta +11 -0
- package/Editor/Editor/Utils/HMSWebUtils.cs +113 -0
- package/Editor/Editor/Utils/HMSWebUtils.cs.meta +11 -0
- package/Editor/Editor/Utils.meta +8 -0
- package/Editor/Editor/View/AdsTab/HMSAdsSettingsDrawer.cs +427 -0
- package/Editor/Editor/View/AdsTab/HMSAdsSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/AdsTab/HMSAdsTabFactory.cs +14 -0
- package/Editor/Editor/View/AdsTab/HMSAdsTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/AdsTab.meta +8 -0
- package/Editor/Editor/View/CloudDBTab/HMSCloudDBSettingsDrawer.cs +208 -0
- package/Editor/Editor/View/CloudDBTab/HMSCloudDBSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/CloudDBTab/HMSCloudDBTabFactory.cs +13 -0
- package/Editor/Editor/View/CloudDBTab/HMSCloudDBTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/CloudDBTab.meta +8 -0
- package/Editor/Editor/View/ConnectAPI/HMSConnectAPITabFactory.cs +30 -0
- package/Editor/Editor/View/ConnectAPI/HMSConnectAPITabFactory.cs.meta +11 -0
- package/Editor/Editor/View/ConnectAPI/HMSConnectAPIWindow.cs +22 -0
- package/Editor/Editor/View/ConnectAPI/HMSConnectAPIWindow.cs.meta +11 -0
- package/Editor/Editor/View/ConnectAPI/TokenObtainerEditor.cs +43 -0
- package/Editor/Editor/View/ConnectAPI/TokenObtainerEditor.cs.meta +11 -0
- package/Editor/Editor/View/ConnectAPI.meta +8 -0
- package/Editor/Editor/View/GameServiceTab/AchievementsManipulator.cs +92 -0
- package/Editor/Editor/View/GameServiceTab/AchievementsManipulator.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab/HMSAchievementsAdderDrawer.cs +35 -0
- package/Editor/Editor/View/GameServiceTab/HMSAchievementsAdderDrawer.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab/HMSGameServiceSettingsDrawer.cs +138 -0
- package/Editor/Editor/View/GameServiceTab/HMSGameServiceSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab/HMSGameServiceTabFactory.cs +13 -0
- package/Editor/Editor/View/GameServiceTab/HMSGameServiceTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab/HMSLeaderboardAdderDrawer.cs +34 -0
- package/Editor/Editor/View/GameServiceTab/HMSLeaderboardAdderDrawer.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab/LeaderboardManipulator.cs +92 -0
- package/Editor/Editor/View/GameServiceTab/LeaderboardManipulator.cs.meta +11 -0
- package/Editor/Editor/View/GameServiceTab.meta +8 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPProductAdderDrawer.cs +36 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPProductAdderDrawer.cs.meta +11 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPSettingsDrawer.cs +195 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPTabFactory.cs +14 -0
- package/Editor/Editor/View/InAppPurchaseTab/HMSIAPTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/InAppPurchaseTab/IAPProductManipulator.cs +111 -0
- package/Editor/Editor/View/InAppPurchaseTab/IAPProductManipulator.cs.meta +11 -0
- package/Editor/Editor/View/InAppPurchaseTab.meta +8 -0
- package/Editor/Editor/View/KeyToolTab/HMSKeyToolWindow.cs +240 -0
- package/Editor/Editor/View/KeyToolTab/HMSKeyToolWindow.cs.meta +11 -0
- package/Editor/Editor/View/KeyToolTab.meta +8 -0
- package/Editor/Editor/View/KitSettingsTab/APMToggleEditor.cs +59 -0
- package/Editor/Editor/View/KitSettingsTab/APMToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AccountToggleEditor.cs +78 -0
- package/Editor/Editor/View/KitSettingsTab/AccountToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AdsToggleEditor.cs +76 -0
- package/Editor/Editor/View/KitSettingsTab/AdsToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AnalyticsToggleEditor.cs +92 -0
- package/Editor/Editor/View/KitSettingsTab/AnalyticsToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AppLinkingToggleEditor.cs +67 -0
- package/Editor/Editor/View/KitSettingsTab/AppLinkingToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AppMessagingToggleEditor.cs +57 -0
- package/Editor/Editor/View/KitSettingsTab/AppMessagingToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/AuthToggleEditor.cs +71 -0
- package/Editor/Editor/View/KitSettingsTab/AuthToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/CloudDBToggleEditor.cs +80 -0
- package/Editor/Editor/View/KitSettingsTab/CloudDBToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/CloudStorageToggleEditor.cs +64 -0
- package/Editor/Editor/View/KitSettingsTab/CloudStorageToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/CrashToggleEditor.cs +63 -0
- package/Editor/Editor/View/KitSettingsTab/CrashToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/DriveKitToggleEditor.cs +74 -0
- package/Editor/Editor/View/KitSettingsTab/DriveKitToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/GameServiceToggleEditor.cs +81 -0
- package/Editor/Editor/View/KitSettingsTab/GameServiceToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/HelpboxAGConnectFile.cs +24 -0
- package/Editor/Editor/View/KitSettingsTab/HelpboxAGConnectFile.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/IAPToggleEditor.cs +76 -0
- package/Editor/Editor/View/KitSettingsTab/IAPToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/LocationToogleEditor.cs +66 -0
- package/Editor/Editor/View/KitSettingsTab/LocationToogleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/MLKitToggleEditor.cs +87 -0
- package/Editor/Editor/View/KitSettingsTab/MLKitToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/Modeling3dKitToggleEditor.cs +75 -0
- package/Editor/Editor/View/KitSettingsTab/Modeling3dKitToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/NearbyServiceToggleEditor.cs +56 -0
- package/Editor/Editor/View/KitSettingsTab/NearbyServiceToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/PluginToggleEditor.cs +58 -0
- package/Editor/Editor/View/KitSettingsTab/PluginToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/PushToggleEditor.cs +71 -0
- package/Editor/Editor/View/KitSettingsTab/PushToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/RemoteConfigToggleEditor.cs +80 -0
- package/Editor/Editor/View/KitSettingsTab/RemoteConfigToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/ScanKitToggleEditor.cs +59 -0
- package/Editor/Editor/View/KitSettingsTab/ScanKitToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab/ToggleEditor.cs +12 -0
- package/Editor/Editor/View/KitSettingsTab/ToggleEditor.cs.meta +11 -0
- package/Editor/Editor/View/KitSettingsTab.meta +8 -0
- package/Editor/Editor/View/LibrariesTab/HMSLibrariesDrawer.cs +65 -0
- package/Editor/Editor/View/LibrariesTab/HMSLibrariesDrawer.cs.meta +11 -0
- package/Editor/Editor/View/LibrariesTab.meta +8 -0
- package/Editor/Editor/View/MLKitTab/HMSMLKitSettingsDrawer.cs +145 -0
- package/Editor/Editor/View/MLKitTab/HMSMLKitSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/MLKitTab/HMSMLKitTabFactory.cs +15 -0
- package/Editor/Editor/View/MLKitTab/HMSMLKitTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/MLKitTab.meta +8 -0
- package/Editor/Editor/View/MainWindow/HMSMainKitsTabFactory.cs +136 -0
- package/Editor/Editor/View/MainWindow/HMSMainKitsTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/MainWindow/HMSMainWindow.cs +60 -0
- package/Editor/Editor/View/MainWindow/HMSMainWindow.cs.meta +11 -0
- package/Editor/Editor/View/MainWindow.meta +8 -0
- package/Editor/Editor/View/ModelingTab/ModelingSettingsDrawer.cs +43 -0
- package/Editor/Editor/View/ModelingTab/ModelingSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/ModelingTab/ModelingTabFactory.cs +12 -0
- package/Editor/Editor/View/ModelingTab/ModelingTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/ModelingTab.meta +8 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/AllIAPProductsEditor.cs +192 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/AllIAPProductsEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/HMSAllIAPProductsWindow.cs +34 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/HMSAllIAPProductsWindow.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/IAPQueryListEditor.cs +41 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/IAPQueryListEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/HMSUpdateIAPProductWindow.cs +24 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/HMSUpdateIAPProductWindow.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/UpdateIAPProductEditor.cs +269 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/UpdateIAPProductEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow.meta +8 -0
- package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow.meta +8 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/CreateProductEditor.cs +452 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/CreateProductEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/HMSCreateAProductWindow.cs +34 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/HMSCreateAProductWindow.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/LanguagesFoldoutEditor.cs +96 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow/LanguagesFoldoutEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateAProductWindow.meta +8 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/CreateProductsEditor.cs +322 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/CreateProductsEditor.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCSVReader.cs +53 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCSVReader.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCreateProductsWindow.cs +34 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCreateProductsWindow.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow/CreateProductsWindow.meta +8 -0
- package/Editor/Editor/View/PMSWindow/HMSPMSAPITabFactory.cs +40 -0
- package/Editor/Editor/View/PMSWindow/HMSPMSAPITabFactory.cs.meta +11 -0
- package/Editor/Editor/View/PMSWindow.meta +8 -0
- package/Editor/Editor/View/PublishingAPI/HMSPublishingAPITabFactory.cs +15 -0
- package/Editor/Editor/View/PublishingAPI/HMSPublishingAPITabFactory.cs.meta +11 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/HelpBoxEnablingAppSigning.cs +22 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/HelpBoxEnablingAppSigning.cs.meta +11 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoEditor.cs +546 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoEditor.cs.meta +11 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoWindow.cs +32 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoWindow.cs.meta +11 -0
- package/Editor/Editor/View/PublishingAPI/QueryingAppInformation.meta +8 -0
- package/Editor/Editor/View/PublishingAPI.meta +8 -0
- package/Editor/Editor/View/RemoteConfigTab/DefaultValueManipulator.cs +115 -0
- package/Editor/Editor/View/RemoteConfigTab/DefaultValueManipulator.cs.meta +11 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigAdderDrawer.cs +33 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigAdderDrawer.cs.meta +11 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigSettingsDrawer.cs +103 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigSettingsDrawer.cs.meta +11 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigTabFactory.cs +14 -0
- package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigTabFactory.cs.meta +11 -0
- package/Editor/Editor/View/RemoteConfigTab.meta +8 -0
- package/Editor/Editor/View/Utils/CompilationWindow.cs +46 -0
- package/Editor/Editor/View/Utils/CompilationWindow.cs.meta +11 -0
- package/Editor/Editor/View/Utils/ICollectionManipulator.cs +9 -0
- package/Editor/Editor/View/Utils/ICollectionManipulator.cs.meta +11 -0
- package/Editor/Editor/View/Utils/WindowEditRedirect.cs +18 -0
- package/Editor/Editor/View/Utils/WindowEditRedirect.cs.meta +11 -0
- package/Editor/Editor/View/Utils.meta +8 -0
- package/Editor/Editor/View.meta +8 -0
- package/Editor/Editor.meta +8 -0
- package/Editor.meta +8 -0
- package/LICENSE.md +9 -0
- package/LICENSE.md.meta +7 -0
- package/ReadMe.md +2 -0
- package/ReadMe.md.meta +7 -0
- package/Runtime/Demos/APM/APMDemo.unity +2375 -0
- package/Runtime/Demos/APM/APMDemo.unity.meta +7 -0
- package/Runtime/Demos/APM/APMDemoManager.cs +105 -0
- package/Runtime/Demos/APM/APMDemoManager.cs.meta +11 -0
- package/Runtime/Demos/APM/APMDemoUIView.cs +76 -0
- package/Runtime/Demos/APM/APMDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/APM.meta +8 -0
- package/Runtime/Demos/Account/AccountDemo.unity +1255 -0
- package/Runtime/Demos/Account/AccountDemo.unity.meta +7 -0
- package/Runtime/Demos/Account/AccountDemoManager.cs +79 -0
- package/Runtime/Demos/Account/AccountDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Account/AccountUIView.cs +72 -0
- package/Runtime/Demos/Account/AccountUIView.cs.meta +11 -0
- package/Runtime/Demos/Account.meta +8 -0
- package/Runtime/Demos/Ads/AdsDemo.unity +2332 -0
- package/Runtime/Demos/Ads/AdsDemo.unity.meta +7 -0
- package/Runtime/Demos/Ads/AdsDemoManager.cs +257 -0
- package/Runtime/Demos/Ads/AdsDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Ads/AdsUIView.cs +87 -0
- package/Runtime/Demos/Ads/AdsUIView.cs.meta +11 -0
- package/Runtime/Demos/Ads/InstallReferrer/Demo.unity +344 -0
- package/Runtime/Demos/Ads/InstallReferrer/Demo.unity.meta +7 -0
- package/Runtime/Demos/Ads/InstallReferrer/InstallReferrerDemo.cs +55 -0
- package/Runtime/Demos/Ads/InstallReferrer/InstallReferrerDemo.cs.meta +11 -0
- package/Runtime/Demos/Ads/InstallReferrer.meta +8 -0
- package/Runtime/Demos/Ads.meta +8 -0
- package/Runtime/Demos/Analytics/AnalyticsDemo.unity +1918 -0
- package/Runtime/Demos/Analytics/AnalyticsDemo.unity.meta +11 -0
- package/Runtime/Demos/Analytics/AnalyticsDemoManager.cs +46 -0
- package/Runtime/Demos/Analytics/AnalyticsDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Analytics/AnalyticsUIView.cs +49 -0
- package/Runtime/Demos/Analytics/AnalyticsUIView.cs.meta +11 -0
- package/Runtime/Demos/Analytics.meta +8 -0
- package/Runtime/Demos/AppLinking/AppLinkingDemo.cs +144 -0
- package/Runtime/Demos/AppLinking/AppLinkingDemo.cs.meta +11 -0
- package/Runtime/Demos/AppLinking/AppLinkingDemo.unity +1709 -0
- package/Runtime/Demos/AppLinking/AppLinkingDemo.unity.meta +7 -0
- package/Runtime/Demos/AppLinking/AppLinkingUIView.cs +108 -0
- package/Runtime/Demos/AppLinking/AppLinkingUIView.cs.meta +11 -0
- package/Runtime/Demos/AppLinking.meta +8 -0
- package/Runtime/Demos/AppMessaging/AppMessaging.unity +541 -0
- package/Runtime/Demos/AppMessaging/AppMessaging.unity.meta +7 -0
- package/Runtime/Demos/AppMessaging/AppMessagingDemoManager.cs +28 -0
- package/Runtime/Demos/AppMessaging/AppMessagingDemoManager.cs.meta +11 -0
- package/Runtime/Demos/AppMessaging.meta +8 -0
- package/Runtime/Demos/AuthService/AuthServiceDemo.cs +204 -0
- package/Runtime/Demos/AuthService/AuthServiceDemo.cs.meta +11 -0
- package/Runtime/Demos/AuthService/AuthServiceDemo.unity +5006 -0
- package/Runtime/Demos/AuthService/AuthServiceDemo.unity.meta +7 -0
- package/Runtime/Demos/AuthService.meta +8 -0
- package/Runtime/Demos/CloudDB/CloudDBDemo.cs +348 -0
- package/Runtime/Demos/CloudDB/CloudDBDemo.cs.meta +11 -0
- package/Runtime/Demos/CloudDB/CloudDBDemo.unity +3420 -0
- package/Runtime/Demos/CloudDB/CloudDBDemo.unity.meta +7 -0
- package/Runtime/Demos/CloudDB/CloudDBDemoUIView.cs +180 -0
- package/Runtime/Demos/CloudDB/CloudDBDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/CloudDB.meta +8 -0
- package/Runtime/Demos/CloudStorage/CloudStorageDemo.cs +201 -0
- package/Runtime/Demos/CloudStorage/CloudStorageDemo.cs.meta +11 -0
- package/Runtime/Demos/CloudStorage/CloudStorageDemo.unity +2074 -0
- package/Runtime/Demos/CloudStorage/CloudStorageDemo.unity.meta +7 -0
- package/Runtime/Demos/CloudStorage.meta +8 -0
- package/Runtime/Demos/CrashKit/CrashDemo.unity +1455 -0
- package/Runtime/Demos/CrashKit/CrashDemo.unity.meta +7 -0
- package/Runtime/Demos/CrashKit/CrashDemoManager.cs +50 -0
- package/Runtime/Demos/CrashKit/CrashDemoManager.cs.meta +11 -0
- package/Runtime/Demos/CrashKit/CrashDemoView.cs +64 -0
- package/Runtime/Demos/CrashKit/CrashDemoView.cs.meta +11 -0
- package/Runtime/Demos/CrashKit.meta +8 -0
- package/Runtime/Demos/DriveKit/DriveDemoManager.cs +135 -0
- package/Runtime/Demos/DriveKit/DriveDemoManager.cs.meta +11 -0
- package/Runtime/Demos/DriveKit/DriveDemoView.cs +90 -0
- package/Runtime/Demos/DriveKit/DriveDemoView.cs.meta +11 -0
- package/Runtime/Demos/DriveKit/DriveKitDemo.unity +1791 -0
- package/Runtime/Demos/DriveKit/DriveKitDemo.unity.meta +7 -0
- package/Runtime/Demos/DriveKit.meta +8 -0
- package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemo.unity +813 -0
- package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemo.unity.meta +7 -0
- package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemoManager.cs +127 -0
- package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Game/GameAddictionPreventionDemo.meta +8 -0
- package/Runtime/Demos/Game/GameDemo.unity +3107 -0
- package/Runtime/Demos/Game/GameDemo.unity.meta +7 -0
- package/Runtime/Demos/Game/GameDemoManager.cs +347 -0
- package/Runtime/Demos/Game/GameDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Game/GameDemoUIView.cs +92 -0
- package/Runtime/Demos/Game/GameDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/Game.meta +8 -0
- package/Runtime/Demos/IAP/IAPDemoUIView.cs +114 -0
- package/Runtime/Demos/IAP/IAPDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/IAP/IapDemo.unity +4418 -0
- package/Runtime/Demos/IAP/IapDemo.unity.meta +7 -0
- package/Runtime/Demos/IAP/IapDemoManager.cs +157 -0
- package/Runtime/Demos/IAP/IapDemoManager.cs.meta +11 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/MainMenuManager.cs +200 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/MainMenuManager.cs.meta +11 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene0_MainMenu.unity +2109 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene0_MainMenu.unity.meta +7 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene1_Store.unity +6210 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene1_Store.unity.meta +7 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/StoreManager.cs +145 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store/StoreManager.cs.meta +11 -0
- package/Runtime/Demos/IAP/Second Demo-Menu_Store.meta +8 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIAPDemoUIView.cs +96 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIAPDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIapDemo.unity +3930 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIapDemo.unity.meta +7 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIapDemoManager.cs +151 -0
- package/Runtime/Demos/IAP/UnityDemo/UnityIapDemoManager.cs.meta +11 -0
- package/Runtime/Demos/IAP/UnityDemo.meta +8 -0
- package/Runtime/Demos/IAP.meta +8 -0
- package/Runtime/Demos/InAppComment/InAppCommentDemo.cs +71 -0
- package/Runtime/Demos/InAppComment/InAppCommentDemo.cs.meta +11 -0
- package/Runtime/Demos/InAppComment/InAppCommentDemo.unity +759 -0
- package/Runtime/Demos/InAppComment/InAppCommentDemo.unity.meta +7 -0
- package/Runtime/Demos/InAppComment.meta +8 -0
- package/Runtime/Demos/Location/ActivityIdentificationDemo.cs +209 -0
- package/Runtime/Demos/Location/ActivityIdentificationDemo.cs.meta +11 -0
- package/Runtime/Demos/Location/FusedLocationDemo.cs +154 -0
- package/Runtime/Demos/Location/FusedLocationDemo.cs.meta +11 -0
- package/Runtime/Demos/Location/GeocodingDemo.cs +94 -0
- package/Runtime/Demos/Location/GeocodingDemo.cs.meta +11 -0
- package/Runtime/Demos/Location/GeofenceDemo.cs +180 -0
- package/Runtime/Demos/Location/GeofenceDemo.cs.meta +11 -0
- package/Runtime/Demos/Location/LocationDemo.unity +5912 -0
- package/Runtime/Demos/Location/LocationDemo.unity.meta +7 -0
- package/Runtime/Demos/Location/LocationDemoManager.cs +49 -0
- package/Runtime/Demos/Location/LocationDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Location.meta +8 -0
- package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionDemoManager.cs +199 -0
- package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionDemoManager.cs.meta +11 -0
- package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionManager.unity +2097 -0
- package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionManager.unity.meta +7 -0
- package/Runtime/Demos/ML/LanguageDetection.meta +8 -0
- package/Runtime/Demos/ML/MLKitDemo.unity +20214 -0
- package/Runtime/Demos/ML/MLKitDemo.unity.meta +7 -0
- package/Runtime/Demos/ML/MlKitDemoManager.cs +89 -0
- package/Runtime/Demos/ML/MlKitDemoManager.cs.meta +11 -0
- package/Runtime/Demos/ML/TextRecognition/TextRecognition.unity +3948 -0
- package/Runtime/Demos/ML/TextRecognition/TextRecognition.unity.meta +7 -0
- package/Runtime/Demos/ML/TextRecognition/TextRecognitionDemoManager.cs +200 -0
- package/Runtime/Demos/ML/TextRecognition/TextRecognitionDemoManager.cs.meta +11 -0
- package/Runtime/Demos/ML/TextRecognition.meta +8 -0
- package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemo.unity +7398 -0
- package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemo.unity.meta +7 -0
- package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemoManager.cs +209 -0
- package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemoManager.cs.meta +11 -0
- package/Runtime/Demos/ML/TextToSpeechDemo.meta +8 -0
- package/Runtime/Demos/ML/Translate/TranslateDemo.unity +5231 -0
- package/Runtime/Demos/ML/Translate/TranslateDemo.unity.meta +7 -0
- package/Runtime/Demos/ML/Translate/TranslateDemoManager.cs +275 -0
- package/Runtime/Demos/ML/Translate/TranslateDemoManager.cs.meta +11 -0
- package/Runtime/Demos/ML/Translate.meta +8 -0
- package/Runtime/Demos/ML.meta +8 -0
- package/Runtime/Demos/Modeling3D/Modeling3dDemo.unity +4130 -0
- package/Runtime/Demos/Modeling3D/Modeling3dDemo.unity.meta +7 -0
- package/Runtime/Demos/Modeling3D/Modeling3dDemoManager.cs +382 -0
- package/Runtime/Demos/Modeling3D/Modeling3dDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemo.unity +1788 -0
- package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemo.unity.meta +7 -0
- package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemoManager.cs +157 -0
- package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Modeling3D/ProgressBar.cs +36 -0
- package/Runtime/Demos/Modeling3D/ProgressBar.cs.meta +11 -0
- package/Runtime/Demos/Modeling3D/TaskListDisplay.cs +101 -0
- package/Runtime/Demos/Modeling3D/TaskListDisplay.cs.meta +11 -0
- package/Runtime/Demos/Modeling3D.meta +8 -0
- package/Runtime/Demos/NearbyService/Nearby.unity +1563 -0
- package/Runtime/Demos/NearbyService/Nearby.unity.meta +7 -0
- package/Runtime/Demos/NearbyService/NearbyDemoManager.cs +192 -0
- package/Runtime/Demos/NearbyService/NearbyDemoManager.cs.meta +11 -0
- package/Runtime/Demos/NearbyService/NearbyDemoUIView.cs +73 -0
- package/Runtime/Demos/NearbyService/NearbyDemoUIView.cs.meta +11 -0
- package/Runtime/Demos/NearbyService.meta +8 -0
- package/Runtime/Demos/Push/PushDemo.unity +720 -0
- package/Runtime/Demos/Push/PushDemo.unity.meta +7 -0
- package/Runtime/Demos/Push/PushDemoManager.cs +123 -0
- package/Runtime/Demos/Push/PushDemoManager.cs.meta +11 -0
- package/Runtime/Demos/Push.meta +8 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.cs +120 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.cs.meta +11 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.unity +2259 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.unity.meta +7 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigUIView.cs +109 -0
- package/Runtime/Demos/RemoteConfig/RemoteConfigUIView.cs.meta +11 -0
- package/Runtime/Demos/RemoteConfig.meta +8 -0
- package/Runtime/Demos/Scan/ScanKitDemo.cs +69 -0
- package/Runtime/Demos/Scan/ScanKitDemo.cs.meta +11 -0
- package/Runtime/Demos/Scan/ScanKitDemo.unity +803 -0
- package/Runtime/Demos/Scan/ScanKitDemo.unity.meta +7 -0
- package/Runtime/Demos/Scan/ScanKitUIView.cs +38 -0
- package/Runtime/Demos/Scan/ScanKitUIView.cs.meta +11 -0
- package/Runtime/Demos/Scan.meta +8 -0
- package/Runtime/Demos.meta +8 -0
- package/Runtime/Dlls/EPPlus.dll +0 -0
- package/Runtime/Dlls/EPPlus.dll.meta +69 -0
- package/Runtime/Dlls/HuaweiMobileServices.dll +0 -0
- package/Runtime/Dlls/HuaweiMobileServices.dll.meta +38 -0
- package/Runtime/Dlls/HuaweiMobileServices.pdb +0 -0
- package/Runtime/Dlls/HuaweiMobileServices.pdb.meta +7 -0
- package/Runtime/Dlls/link.xml +5 -0
- package/Runtime/Dlls/link.xml.meta +7 -0
- package/Runtime/Dlls.meta +8 -0
- package/Runtime/HuaweiMobileServices.Core.asmdef +16 -0
- package/Runtime/HuaweiMobileServices.Core.asmdef.meta +7 -0
- package/Runtime/Plugins/Android/BookInfo.java +100 -0
- package/Runtime/Plugins/Android/BookInfo.java.meta +32 -0
- package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/AndroidManifest.xml +13 -0
- package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/build.gradle +31 -0
- package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/project.properties +2 -0
- package/Runtime/Plugins/Android/HMSUnityPushKit.plugin.meta +80 -0
- package/Runtime/Plugins/Android/ObjectTypeInfoHelper.java +33 -0
- package/Runtime/Plugins/Android/ObjectTypeInfoHelper.java.meta +32 -0
- package/Runtime/Plugins/Android/app-debug.aar +0 -0
- package/Runtime/Plugins/Android/app-debug.aar.meta +32 -0
- package/Runtime/Plugins/Android/hmsLauncherTemplate.gradle +32 -0
- package/Runtime/Plugins/Android/hmsLauncherTemplate.gradle.meta +7 -0
- package/Runtime/Plugins/Android/hmsMainTemplate.gradle +13 -0
- package/Runtime/Plugins/Android/hmsMainTemplate.gradle.meta +7 -0
- package/Runtime/Plugins/Android.meta +8 -0
- package/Runtime/Plugins.meta +8 -0
- package/Runtime/Prefabs/HuaweiIDButton.prefab +355 -0
- package/Runtime/Prefabs/HuaweiIDButton.prefab.meta +7 -0
- package/Runtime/Prefabs/HuaweiIDCircleButton.prefab +274 -0
- package/Runtime/Prefabs/HuaweiIDCircleButton.prefab.meta +7 -0
- package/Runtime/Prefabs/Modeling3DTaskListItem.prefab +1881 -0
- package/Runtime/Prefabs/Modeling3DTaskListItem.prefab.meta +7 -0
- package/Runtime/Prefabs/SplashAdPreview.prefab +591 -0
- package/Runtime/Prefabs/SplashAdPreview.prefab.meta +7 -0
- package/Runtime/Prefabs/native_large_image.prefab +1172 -0
- package/Runtime/Prefabs/native_large_image.prefab.meta +7 -0
- package/Runtime/Prefabs.meta +8 -0
- package/Runtime/Resources/Huawei/CircleCorner.png +0 -0
- package/Runtime/Resources/Huawei/CircleCorner.png.meta +135 -0
- package/Runtime/Resources/Huawei/Huawei-White.png +0 -0
- package/Runtime/Resources/Huawei/Huawei-White.png.meta +135 -0
- package/Runtime/Resources/Huawei/RoundedCorner.png +0 -0
- package/Runtime/Resources/Huawei/RoundedCorner.png.meta +135 -0
- package/Runtime/Resources/Huawei.meta +8 -0
- package/Runtime/Resources/close.png +0 -0
- package/Runtime/Resources/close.png.meta +116 -0
- package/Runtime/Resources/coins100.png +0 -0
- package/Runtime/Resources/coins100.png.meta +121 -0
- package/Runtime/Resources/coins1000.png +0 -0
- package/Runtime/Resources/coins1000.png.meta +121 -0
- package/Runtime/Resources/info.png +0 -0
- package/Runtime/Resources/info.png.meta +116 -0
- package/Runtime/Resources/no_ads.png +0 -0
- package/Runtime/Resources/no_ads.png.meta +135 -0
- package/Runtime/Resources/premium.png +0 -0
- package/Runtime/Resources/premium.png.meta +135 -0
- package/Runtime/Resources/xml/remoteConfig.xml +5 -0
- package/Runtime/Resources/xml/remoteConfig.xml.meta +7 -0
- package/Runtime/Resources/xml.meta +8 -0
- package/Runtime/Resources.meta +8 -0
- package/Runtime/Scripts/APM/HMSAPMManager.cs +31 -0
- package/Runtime/Scripts/APM/HMSAPMManager.cs.meta +11 -0
- package/Runtime/Scripts/APM.meta +8 -0
- package/Runtime/Scripts/Account/HMSAccountKitManager.cs +194 -0
- package/Runtime/Scripts/Account/HMSAccountKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Account.meta +8 -0
- package/Runtime/Scripts/Ads/HMSAdsKitManager.cs +977 -0
- package/Runtime/Scripts/Ads/HMSAdsKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Ads/LargeImageNative.cs +166 -0
- package/Runtime/Scripts/Ads/LargeImageNative.cs.meta +11 -0
- package/Runtime/Scripts/Ads.meta +8 -0
- package/Runtime/Scripts/Analytics/HMSAnalyticsKitManager.cs +98 -0
- package/Runtime/Scripts/Analytics/HMSAnalyticsKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Analytics.meta +8 -0
- package/Runtime/Scripts/AppMessaging/HMSAppMessagingManager.cs +60 -0
- package/Runtime/Scripts/AppMessaging/HMSAppMessagingManager.cs.meta +11 -0
- package/Runtime/Scripts/AppMessaging.meta +8 -0
- package/Runtime/Scripts/AuthService/HMSAuthServiceManager.cs +142 -0
- package/Runtime/Scripts/AuthService/HMSAuthServiceManager.cs.meta +11 -0
- package/Runtime/Scripts/AuthService.meta +8 -0
- package/Runtime/Scripts/CloudDB/BookInfo.cs +58 -0
- package/Runtime/Scripts/CloudDB/BookInfo.cs.meta +11 -0
- package/Runtime/Scripts/CloudDB/HMSCloudDBManager.cs +343 -0
- package/Runtime/Scripts/CloudDB/HMSCloudDBManager.cs.meta +11 -0
- package/Runtime/Scripts/CloudDB.meta +8 -0
- package/Runtime/Scripts/CloudStorage/HMSCloudStorageManager.cs +349 -0
- package/Runtime/Scripts/CloudStorage/HMSCloudStorageManager.cs.meta +11 -0
- package/Runtime/Scripts/CloudStorage.meta +8 -0
- package/Runtime/Scripts/Crash/HMSCrashManager.cs +61 -0
- package/Runtime/Scripts/Crash/HMSCrashManager.cs.meta +11 -0
- package/Runtime/Scripts/Crash.meta +8 -0
- package/Runtime/Scripts/Drive/CredentialManager.cs +55 -0
- package/Runtime/Scripts/Drive/CredentialManager.cs.meta +11 -0
- package/Runtime/Scripts/Drive/HMSDriveKitManager.cs +248 -0
- package/Runtime/Scripts/Drive/HMSDriveKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Drive.meta +8 -0
- package/Runtime/Scripts/Game/HMSAchievementsEntry.cs +14 -0
- package/Runtime/Scripts/Game/HMSAchievementsEntry.cs.meta +11 -0
- package/Runtime/Scripts/Game/HMSAchievementsManager.cs +147 -0
- package/Runtime/Scripts/Game/HMSAchievementsManager.cs.meta +11 -0
- package/Runtime/Scripts/Game/HMSGameServiceManager.cs +314 -0
- package/Runtime/Scripts/Game/HMSGameServiceManager.cs.meta +11 -0
- package/Runtime/Scripts/Game/HMSLeaderboardEntry.cs +14 -0
- package/Runtime/Scripts/Game/HMSLeaderboardEntry.cs.meta +11 -0
- package/Runtime/Scripts/Game/HMSLeaderboardManager.cs +272 -0
- package/Runtime/Scripts/Game/HMSLeaderboardManager.cs.meta +11 -0
- package/Runtime/Scripts/Game/HMSSaveGameManager.cs +236 -0
- package/Runtime/Scripts/Game/HMSSaveGameManager.cs.meta +11 -0
- package/Runtime/Scripts/Game.meta +8 -0
- package/Runtime/Scripts/IAP/HMSIAPManager.cs +715 -0
- package/Runtime/Scripts/IAP/HMSIAPManager.cs.meta +11 -0
- package/Runtime/Scripts/IAP/HMSIAPProductType.cs +21 -0
- package/Runtime/Scripts/IAP/HMSIAPProductType.cs.meta +11 -0
- package/Runtime/Scripts/IAP/UnityPurchase/HuaweiPurchasingModule.cs +28 -0
- package/Runtime/Scripts/IAP/UnityPurchase/HuaweiPurchasingModule.cs.meta +11 -0
- package/Runtime/Scripts/IAP/UnityPurchase/HuaweiStore.cs +305 -0
- package/Runtime/Scripts/IAP/UnityPurchase/HuaweiStore.cs.meta +11 -0
- package/Runtime/Scripts/IAP/UnityPurchase.meta +8 -0
- package/Runtime/Scripts/IAP.meta +8 -0
- package/Runtime/Scripts/Location/GeofenceReceiver.cs +29 -0
- package/Runtime/Scripts/Location/GeofenceReceiver.cs.meta +11 -0
- package/Runtime/Scripts/Location/HMSLocationManager.cs +96 -0
- package/Runtime/Scripts/Location/HMSLocationManager.cs.meta +11 -0
- package/Runtime/Scripts/Location/LocationReceiver.cs +40 -0
- package/Runtime/Scripts/Location/LocationReceiver.cs.meta +11 -0
- package/Runtime/Scripts/Location.meta +8 -0
- package/Runtime/Scripts/ML/LangDetector/HMSMLLanguageDetectionManager.cs +180 -0
- package/Runtime/Scripts/ML/LangDetector/HMSMLLanguageDetectionManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/LangDetector.meta +8 -0
- package/Runtime/Scripts/ML/MLDownloadListenerManager.cs +17 -0
- package/Runtime/Scripts/ML/MLDownloadListenerManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/TextRecognition/HMSMLTextRecognitionKitManager.cs +163 -0
- package/Runtime/Scripts/ML/TextRecognition/HMSMLTextRecognitionKitManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/TextRecognition.meta +8 -0
- package/Runtime/Scripts/ML/TextToSpeech/HMSMLTextToSpeechKitManager.cs +276 -0
- package/Runtime/Scripts/ML/TextToSpeech/HMSMLTextToSpeechKitManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/TextToSpeech/MLTextToSpeechListenerManager.cs +94 -0
- package/Runtime/Scripts/ML/TextToSpeech/MLTextToSpeechListenerManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/TextToSpeech.meta +8 -0
- package/Runtime/Scripts/ML/Translate/HMSMLTranslateKitManager.cs +203 -0
- package/Runtime/Scripts/ML/Translate/HMSMLTranslateKitManager.cs.meta +11 -0
- package/Runtime/Scripts/ML/Translate.meta +8 -0
- package/Runtime/Scripts/ML.meta +8 -0
- package/Runtime/Scripts/Modeling3D/HMSModeling3dKitManager.cs +557 -0
- package/Runtime/Scripts/Modeling3D/HMSModeling3dKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Modeling3D/Modeling3dDTO.cs +38 -0
- package/Runtime/Scripts/Modeling3D/Modeling3dDTO.cs.meta +11 -0
- package/Runtime/Scripts/Modeling3D/Modeling3dListenerManager.cs +172 -0
- package/Runtime/Scripts/Modeling3D/Modeling3dListenerManager.cs.meta +11 -0
- package/Runtime/Scripts/Modeling3D.meta +8 -0
- package/Runtime/Scripts/NearbyService/HMSNearbyServiceManager.cs +80 -0
- package/Runtime/Scripts/NearbyService/HMSNearbyServiceManager.cs.meta +11 -0
- package/Runtime/Scripts/NearbyService.meta +8 -0
- package/Runtime/Scripts/Push/HMSPushKitManager.cs +134 -0
- package/Runtime/Scripts/Push/HMSPushKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Push.meta +8 -0
- package/Runtime/Scripts/RemoteConfig/HMSRemoteConfigManager.cs +157 -0
- package/Runtime/Scripts/RemoteConfig/HMSRemoteConfigManager.cs.meta +11 -0
- package/Runtime/Scripts/RemoteConfig.meta +8 -0
- package/Runtime/Scripts/Scan/HMSScanKitManager.cs +60 -0
- package/Runtime/Scripts/Scan/HMSScanKitManager.cs.meta +11 -0
- package/Runtime/Scripts/Scan.meta +8 -0
- package/Runtime/Scripts/Settings/HMSAchievementsSettings.cs +37 -0
- package/Runtime/Scripts/Settings/HMSAchievementsSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSAdsKitSettings.cs +56 -0
- package/Runtime/Scripts/Settings/HMSAdsKitSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSConnectAPISettings.cs +44 -0
- package/Runtime/Scripts/Settings/HMSConnectAPISettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSGameServiceSettings.cs +40 -0
- package/Runtime/Scripts/Settings/HMSGameServiceSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSIAPKitSettings.cs +37 -0
- package/Runtime/Scripts/Settings/HMSIAPKitSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSIAPProductListSettings.cs +74 -0
- package/Runtime/Scripts/Settings/HMSIAPProductListSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSLeaderboardSettings.cs +37 -0
- package/Runtime/Scripts/Settings/HMSLeaderboardSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSMLKitSettings.cs +42 -0
- package/Runtime/Scripts/Settings/HMSMLKitSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSMainEditorSettings.cs +38 -0
- package/Runtime/Scripts/Settings/HMSMainEditorSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSModelingKitSettings.cs +38 -0
- package/Runtime/Scripts/Settings/HMSModelingKitSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSPluginSettings.cs +37 -0
- package/Runtime/Scripts/Settings/HMSPluginSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSRemoteConfigSettings.cs +40 -0
- package/Runtime/Scripts/Settings/HMSRemoteConfigSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/HMSRemoteDefaultValueSettings.cs +53 -0
- package/Runtime/Scripts/Settings/HMSRemoteDefaultValueSettings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/Settings.cs +75 -0
- package/Runtime/Scripts/Settings/Settings.cs.meta +11 -0
- package/Runtime/Scripts/Settings/SettingsScriptableObject.cs +14 -0
- package/Runtime/Scripts/Settings/SettingsScriptableObject.cs.meta +11 -0
- package/Runtime/Scripts/Settings.meta +8 -0
- package/Runtime/Scripts/Utils/HMSExceptionHandler.cs +120 -0
- package/Runtime/Scripts/Utils/HMSExceptionHandler.cs.meta +11 -0
- package/Runtime/Scripts/Utils/HMSManagerStart.cs +36 -0
- package/Runtime/Scripts/Utils/HMSManagerStart.cs.meta +11 -0
- package/Runtime/Scripts/Utils/HMSSafeArea.cs +63 -0
- package/Runtime/Scripts/Utils/HMSSafeArea.cs.meta +11 -0
- package/Runtime/Scripts/Utils/HMSSingleton.cs +56 -0
- package/Runtime/Scripts/Utils/HMSSingleton.cs.meta +11 -0
- package/Runtime/Scripts/Utils/HMSSplashAdPreview.cs +37 -0
- package/Runtime/Scripts/Utils/HMSSplashAdPreview.cs.meta +11 -0
- package/Runtime/Scripts/Utils/HuaweiConstants.cs +204 -0
- package/Runtime/Scripts/Utils/HuaweiConstants.cs.meta +11 -0
- package/Runtime/Scripts/Utils/JsonHelper.cs +23 -0
- package/Runtime/Scripts/Utils/JsonHelper.cs.meta +11 -0
- package/Runtime/Scripts/Utils/PlayerPrefsJsonDatabase.cs +130 -0
- package/Runtime/Scripts/Utils/PlayerPrefsJsonDatabase.cs.meta +11 -0
- package/Runtime/Scripts/Utils/ScriptableHelper.cs +58 -0
- package/Runtime/Scripts/Utils/ScriptableHelper.cs.meta +11 -0
- package/Runtime/Scripts/Utils/SerializableDictionary.cs +129 -0
- package/Runtime/Scripts/Utils/SerializableDictionary.cs.meta +11 -0
- package/Runtime/Scripts/Utils.meta +8 -0
- package/Runtime/Scripts.meta +8 -0
- package/Runtime/Settings/Resources.meta +8 -0
- package/Runtime/Settings.meta +8 -0
- package/Runtime/VERSION +1 -0
- package/Runtime/VERSION.meta +7 -0
- package/Runtime.meta +8 -0
- package/package.json +13 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
using System.IO;
|
|
2
|
+
using System.Text;
|
|
3
|
+
using UnityEditor;
|
|
4
|
+
using UnityEditor.Android;
|
|
5
|
+
using UnityEngine;
|
|
6
|
+
using System;
|
|
7
|
+
using System.Text.RegularExpressions;
|
|
8
|
+
|
|
9
|
+
namespace HmsPlugin
|
|
10
|
+
{
|
|
11
|
+
public class HMSGradleFixer : IPostGenerateGradleAndroidProject
|
|
12
|
+
{
|
|
13
|
+
public int callbackOrder => 1;
|
|
14
|
+
private const string MINGRADLEVERSION = "3.5.4";
|
|
15
|
+
//Unity 2022.3 and higher
|
|
16
|
+
private const string agconnect_agcp_7_2 = "classpath 'com.huawei.agconnect:agcp:1.9.1.301'";
|
|
17
|
+
//Unity 2019 and lower
|
|
18
|
+
private const string build_gradle = "classpath 'com.android.tools.build:gradle:" + MINGRADLEVERSION + "'";
|
|
19
|
+
|
|
20
|
+
private void GradleVersionFixer(string gradleFileAsString, string path)
|
|
21
|
+
{
|
|
22
|
+
#if UNITY_2022_3_OR_NEWER
|
|
23
|
+
// Grade 7.2
|
|
24
|
+
// string currentBuildgradle = File.ReadAllText(Directory.GetParent(path).FullName + "/build.gradle").Replace("apply from: 'hmsBaseProjectTemplate.gradle'", "");
|
|
25
|
+
//
|
|
26
|
+
// if (currentBuildgradle.Contains("dependencies")){
|
|
27
|
+
// if(!currentBuildgradle.Contains("com.huawei.agconnect:agcp:")){
|
|
28
|
+
//
|
|
29
|
+
// string buildscriptdependencies = "buildscript {\n\tdependencies {\n\t\t" + agconnect_agcp_7_2 + "\n\t}\n}\n";
|
|
30
|
+
// currentBuildgradle = buildscriptdependencies + currentBuildgradle;
|
|
31
|
+
// File.WriteAllText(Directory.GetParent(path).FullName + "/build.gradle", currentBuildgradle);
|
|
32
|
+
// }
|
|
33
|
+
// if (!currentBuildgradle.Contains("com.android.tools.build:gradle:")){//TODO: check for gradle version is bigger then minGradle Version
|
|
34
|
+
//
|
|
35
|
+
// string buildscriptdependencies = "buildscript {\n\tdependencies {\n\t\t" + build_gradle + "\n\t}\n}\n";
|
|
36
|
+
// currentBuildgradle = buildscriptdependencies + currentBuildgradle;
|
|
37
|
+
// File.WriteAllText(Directory.GetParent(path).FullName + "/build.gradle", currentBuildgradle);
|
|
38
|
+
// }
|
|
39
|
+
// }else{
|
|
40
|
+
// string buildscriptdependencies = "buildscript {\n\tdependencies {\n\t\t" + build_gradle + "\n\t\t" + agconnect_agcp_7_2 + "\n\t}\n}\n";
|
|
41
|
+
// currentBuildgradle = buildscriptdependencies + currentBuildgradle;
|
|
42
|
+
// File.WriteAllText(Directory.GetParent(path).FullName + "/build.gradle", currentBuildgradle);
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
string currentSettingsgradle = File.ReadAllText(Directory.GetParent(path).FullName + "/settings.gradle");
|
|
46
|
+
if(!currentSettingsgradle.Contains("https://developer.huawei.com/repo/"))
|
|
47
|
+
File.WriteAllText(Directory.GetParent(path).FullName + "/settings.gradle", currentSettingsgradle.Replace("mavenCentral()", "mavenCentral()\n\t\tmaven { url 'https://developer.huawei.com/repo/' }"));
|
|
48
|
+
|
|
49
|
+
#else
|
|
50
|
+
string gradleRowPattern = @".*gradle:(\d\.?)+";
|
|
51
|
+
string gradleVersionPattern = @"(\d\.?)+";
|
|
52
|
+
|
|
53
|
+
if (!Version.TryParse(MINGRADLEVERSION, out Version gradleMinVersion))
|
|
54
|
+
{
|
|
55
|
+
gradleMinVersion = new Version(3, 5, 4);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
Match gradleRowMatch = Regex.Match(gradleFileAsString, gradleRowPattern);
|
|
59
|
+
Match gradleVersionMatch = Regex.Match(gradleRowMatch.Value, gradleVersionPattern);
|
|
60
|
+
|
|
61
|
+
if (!Version.TryParse(gradleVersionMatch.Value, out Version gradleVersion))
|
|
62
|
+
{
|
|
63
|
+
gradleVersion = new Version(3, 5, 4);
|
|
64
|
+
}
|
|
65
|
+
// if users gradle version is lesser than our minimum version.
|
|
66
|
+
if (gradleVersion.CompareTo(gradleMinVersion) < 0)
|
|
67
|
+
{
|
|
68
|
+
gradleFileAsString = gradleFileAsString.Replace(gradleVersion.ToString(), gradleMinVersion.ToString());
|
|
69
|
+
|
|
70
|
+
#if UNITY_2019_3_OR_NEWER
|
|
71
|
+
File.WriteAllText(Directory.GetParent(path).FullName + "/build.gradle", gradleFileAsString);
|
|
72
|
+
#elif UNITY_2018_1_OR_NEWER
|
|
73
|
+
File.WriteAllText(path + "/build.gradle", gradleFileAsString);
|
|
74
|
+
#endif
|
|
75
|
+
}
|
|
76
|
+
#endif
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public void OnPostGenerateGradleAndroidProject(string path)
|
|
80
|
+
{
|
|
81
|
+
if (!HMSPluginSettings.Instance.Settings.GetBool(PluginToggleEditor.PluginEnabled, true))
|
|
82
|
+
{
|
|
83
|
+
HMSEditorUtils.UpdateAssemblyDefinitions(false);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
string fileName = "agconnect-services.json";
|
|
88
|
+
string filePath = Path.Combine(Application.streamingAssetsPath, fileName);
|
|
89
|
+
string destPath = "";
|
|
90
|
+
#if UNITY_2019_3_OR_NEWER
|
|
91
|
+
destPath = Path.Combine(Directory.GetParent(path).FullName + Path.DirectorySeparatorChar + "launcher", fileName);
|
|
92
|
+
|
|
93
|
+
// string baseProjectTemplatePath = Application.dataPath + "/Huawei/Plugins/Android/hmsBaseProjectTemplate.gradle";
|
|
94
|
+
// FileUtil.ReplaceFile(baseProjectTemplatePath, Directory.GetParent(path).FullName + @"/hmsBaseProjectTemplate.gradle");
|
|
95
|
+
// using (var writer = File.AppendText(Directory.GetParent(path).FullName + "/build.gradle"))
|
|
96
|
+
// writer.WriteLine("\napply from: 'hmsBaseProjectTemplate.gradle'");
|
|
97
|
+
|
|
98
|
+
string hmsMainTemplatePath = Path.GetFullPath("Packages/com.beanbag.huaweiads/Runtime") + "/Plugins/Android/hmsMainTemplate.gradle";
|
|
99
|
+
FileUtil.ReplaceFile(hmsMainTemplatePath, Path.GetFullPath(path) + @"/hmsMainTemplate.gradle");
|
|
100
|
+
using (var writer = File.AppendText(Path.GetFullPath(path) + "/build.gradle"))
|
|
101
|
+
writer.WriteLine("\napply from: 'hmsMainTemplate.gradle'");
|
|
102
|
+
|
|
103
|
+
string launcherTemplatePath = Path.GetFullPath("Packages/com.beanbag.huaweiads/Runtime") + "/Plugins/Android/hmsLauncherTemplate.gradle";
|
|
104
|
+
FileUtil.ReplaceFile(launcherTemplatePath, Directory.GetParent(path).FullName + @"/launcher/hmsLauncherTemplate.gradle");
|
|
105
|
+
using (var writer = File.AppendText(Directory.GetParent(path).FullName + "/launcher/build.gradle"))
|
|
106
|
+
writer.WriteLine("\napply from: 'hmsLauncherTemplate.gradle'");
|
|
107
|
+
|
|
108
|
+
//TODO: HMSMainKitsTabFactory.GetEnabledEditors() counts zero sometimes
|
|
109
|
+
// Get enabled Kits and check if they are one of the below, because only them needs to be updated to the latest version.
|
|
110
|
+
/*foreach (var toggle in HMSMainKitsTabFactory.GetEnabledEditors())
|
|
111
|
+
{
|
|
112
|
+
if (toggle.GetType() == typeof(AccountToggleEditor)
|
|
113
|
+
|| toggle.GetType() == typeof(PushToggleEditor)
|
|
114
|
+
|| toggle.GetType() == typeof(IAPToggleEditor)
|
|
115
|
+
|| toggle.GetType() == typeof(NearbyServiceToggleEditor)
|
|
116
|
+
|| toggle.GetType() == typeof(AnalyticsToggleEditor))
|
|
117
|
+
{
|
|
118
|
+
GradleVersionFixer(File.ReadAllText(Directory.GetParent(path).FullName + "/build.gradle"), path);
|
|
119
|
+
}
|
|
120
|
+
}*/
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
#if UNITY_2022_2_OR_NEWER
|
|
124
|
+
|
|
125
|
+
GradleVersionFixer(File.ReadAllText(Directory.GetParent(path).FullName + "/build.gradle"), path);
|
|
126
|
+
#else
|
|
127
|
+
GradleVersionFixer(File.ReadAllText(Directory.GetParent(path).FullName + "/build.gradle"), path);
|
|
128
|
+
// using (var writer = File.AppendText(Directory.GetParent(path).FullName + "/build.gradle"))
|
|
129
|
+
// writer.WriteLine("\napply from: 'hmsBaseProjectTemplate.gradle'");
|
|
130
|
+
#endif
|
|
131
|
+
|
|
132
|
+
if (HMSMainEditorSettings.Instance.Settings.GetBool(PushToggleEditor.PushKitEnabled))
|
|
133
|
+
{
|
|
134
|
+
string unityPlayerActivityJavaPath = path + @"/src/main/java/com/unity3d/player/UnityPlayerActivity.java";
|
|
135
|
+
|
|
136
|
+
var sb = new StringBuilder();
|
|
137
|
+
FileStream fs = new FileStream(unityPlayerActivityJavaPath, FileMode.Open, FileAccess.ReadWrite, FileShare.None);
|
|
138
|
+
using (StreamReader sr = new StreamReader(fs))
|
|
139
|
+
{
|
|
140
|
+
string line;
|
|
141
|
+
do
|
|
142
|
+
{
|
|
143
|
+
line = sr.ReadLine();
|
|
144
|
+
sb.AppendLine(line);
|
|
145
|
+
}
|
|
146
|
+
while (line.Trim().TrimStart().TrimEnd() != "import android.os.Process;");
|
|
147
|
+
sb.AppendLine("import org.m0skit0.android.hms.unity.push.PushBridge;");
|
|
148
|
+
|
|
149
|
+
do
|
|
150
|
+
{
|
|
151
|
+
line = sr.ReadLine();
|
|
152
|
+
sb.AppendLine(line);
|
|
153
|
+
}
|
|
154
|
+
while (line.Trim().TrimStart().TrimEnd() != "mUnityPlayer.newIntent(intent);");
|
|
155
|
+
sb.AppendLine("PushBridge.OnNotificationMessage(intent);");
|
|
156
|
+
sb.Append(sr.ReadToEnd());
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
using (var sw = new StreamWriter(unityPlayerActivityJavaPath))
|
|
160
|
+
{
|
|
161
|
+
sw.Write(sb.ToString());
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#elif UNITY_2018_1_OR_NEWER
|
|
166
|
+
string hmsMainTemplatePath = Path.GetFullPath("Packages/com.beanbag.huaweiads/Runtime") + "/Plugins/Android/hmsMainTemplate.gradle";
|
|
167
|
+
var lines = File.ReadAllLines(hmsMainTemplatePath);
|
|
168
|
+
|
|
169
|
+
File.AppendAllLines(path + "/build.gradle", lines);
|
|
170
|
+
GradleVersionFixer(File.ReadAllText(path + "/build.gradle"), path);
|
|
171
|
+
destPath = Path.Combine(path, fileName);
|
|
172
|
+
#endif
|
|
173
|
+
if (File.Exists(destPath))
|
|
174
|
+
FileUtil.DeleteFileOrDirectory(destPath);
|
|
175
|
+
File.Copy(filePath, destPath);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.IO;
|
|
4
|
+
using System.Linq;
|
|
5
|
+
using System.Text;
|
|
6
|
+
using UnityEditor;
|
|
7
|
+
using UnityEditor.Build;
|
|
8
|
+
using UnityEditor.Build.Reporting;
|
|
9
|
+
|
|
10
|
+
using UnityEngine;
|
|
11
|
+
|
|
12
|
+
namespace HmsPlugin
|
|
13
|
+
{
|
|
14
|
+
public class HMSGradleWorker : HMSEditorSingleton<HMSGradleWorker>, IPreprocessBuildWithReport
|
|
15
|
+
{
|
|
16
|
+
private readonly Dictionary<string, string[]> gradleSettings;
|
|
17
|
+
public int callbackOrder => 0;
|
|
18
|
+
|
|
19
|
+
private string gradleTemplatesPath = EditorApplication.applicationContentsPath + @"/PlaybackEngines/AndroidPlayer/Tools/GradleTemplates";
|
|
20
|
+
|
|
21
|
+
public HMSGradleWorker()
|
|
22
|
+
{
|
|
23
|
+
gradleSettings = new Dictionary<string, string[]>()
|
|
24
|
+
{
|
|
25
|
+
{ AccountToggleEditor.AccountKitEnabled, new [] { "com.huawei.hms:hwid:6.12.0.300" } },
|
|
26
|
+
{ AdsToggleEditor.AdsKitEnabled, new []
|
|
27
|
+
{
|
|
28
|
+
// "com.huawei.hms:ads-lite:13.4.69.300",
|
|
29
|
+
"com.huawei.hms:ads-prime:3.4.58.304",
|
|
30
|
+
"com.huawei.hms:ads-consent:3.4.69.300",
|
|
31
|
+
"com.huawei.hms:ads-identifier:3.4.62.300",
|
|
32
|
+
"com.huawei.hms:ads-installreferrer:3.4.62.300"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{ AnalyticsToggleEditor.AnalyticsKitEnabled, new [] { "com.huawei.hms:hianalytics:6.12.0.301" } },
|
|
36
|
+
{ CrashToggleEditor.CrashKitEnabled, new [] { "com.huawei.agconnect:agconnect-crash:1.9.1.301" } },
|
|
37
|
+
{ GameServiceToggleEditor.GameServiceEnabled, new [] { "com.huawei.hms:game:6.10.0.300" } },
|
|
38
|
+
{ IAPToggleEditor.IAPKitEnabled, new [] { "com.huawei.hms:iap:6.13.0.300" } },
|
|
39
|
+
{ PushToggleEditor.PushKitEnabled, new [] { "com.huawei.hms:push:6.11.0.300" } },
|
|
40
|
+
{ RemoteConfigToggleEditor.RemoteConfigEnabled, new [] { "com.huawei.agconnect:agconnect-remoteconfig:1.6.3.300" } },
|
|
41
|
+
{ CloudDBToggleEditor.CloudDBEnabled, new [] { "com.huawei.agconnect:agconnect-cloud-database:1.5.5.300" } },
|
|
42
|
+
{ AuthToggleEditor.AuthEnabled, new [] { "com.huawei.agconnect:agconnect-auth:1.9.1.301" } },
|
|
43
|
+
{ NearbyServiceToggleEditor.NearbyServiceEnabled, new [] { "com.huawei.hms:nearby:6.2.0.301" } },
|
|
44
|
+
{ AppMessagingToggleEditor.AppMessagingEnabled, new [] { "com.huawei.agconnect:agconnect-appmessaging:1.6.3.300" } },
|
|
45
|
+
{ HMSLibrariesDrawer.AppCompatEnabled, new []{ "com.android.support:appcompat-v7:21.0.0" } },
|
|
46
|
+
{ LocationToggleEditor.LocationEnabled, new [] { "com.huawei.hms:location:6.4.0.300" } },
|
|
47
|
+
{ ScanKitToggleEditor.ScanKitEnabled, new [] { "com.huawei.hms:scan:2.6.0.301" } },
|
|
48
|
+
{ AppLinkingToggleEditor.AppLinkingEnabled, new [] { "com.huawei.agconnect:agconnect-applinking:1.9.1.301" } },
|
|
49
|
+
{ DriveKitToggleEditor.DriveKitEnabled, new [] { "com.huawei.hms:drive:5.2.0.300" } },
|
|
50
|
+
{ CloudStorageToggleEditor.CloudStorageEnabled, new [] { "com.huawei.agconnect:agconnect-storage:1.9.1.301" } },
|
|
51
|
+
{ APMToggleEditor.APMEnabled, new [] { "com.huawei.agconnect:agconnect-apms:1.6.1.300" } },
|
|
52
|
+
{ Modeling3dKitToggleEditor.Modeling3dkitEnabled,new []
|
|
53
|
+
{
|
|
54
|
+
"com.huawei.hms:modeling3d-object-reconstruct:1.8.0.300",
|
|
55
|
+
"com.huawei.hms:modeling3d-motion-capture-model:1.7.0.301",
|
|
56
|
+
"com.huawei.hms:modeling3d-material-generate:1.7.0.301",
|
|
57
|
+
//"com.huawei.hms:modeling3d-motion-capture:1.7.0.301",
|
|
58
|
+
"com.huawei.hms:modeling3d-objectreconstruct-slam:1.7.0.301",
|
|
59
|
+
"com.huawei.hms:xrkitsdk:1.4.0.0",
|
|
60
|
+
"com.huawei.hms:arenginesdk:3.7.0.3",
|
|
61
|
+
"com.google.ar:core:1.30.0"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{MLKitToggleEditor.MLKitEnabled, GetMLKitModulesGradlePackages()},
|
|
65
|
+
{HMSLibrariesDrawer.HMSCoreInstalledEnabled, new [] {"com.huawei.hms:hmscoreinstaller:6.6.0.300"}}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
private void CreateGradleFiles(string[] gradleConfigs)
|
|
69
|
+
{
|
|
70
|
+
#if UNITY_2022_3_OR_NEWER
|
|
71
|
+
CreateMainGradleFile(gradleConfigs);
|
|
72
|
+
CreateLauncherGradleFile(gradleConfigs);
|
|
73
|
+
BaseProjectGradleFile("1.9.1.301");
|
|
74
|
+
#elif UNITY_2019_3_OR_NEWER
|
|
75
|
+
CreateMainGradleFile(gradleConfigs);
|
|
76
|
+
CreateLauncherGradleFile(gradleConfigs);
|
|
77
|
+
BaseProjectGradleFile("1.6.1.300");
|
|
78
|
+
|
|
79
|
+
#elif UNITY_2018_1_OR_NEWER
|
|
80
|
+
CreateMainGradleFile(gradleConfigs);
|
|
81
|
+
#endif
|
|
82
|
+
AssetDatabase.Refresh();
|
|
83
|
+
}
|
|
84
|
+
private void CreateMainGradleFile(string[] gradleConfigs)
|
|
85
|
+
{
|
|
86
|
+
#if UNITY_2019_3_OR_NEWER
|
|
87
|
+
using (var file = File.CreateText(Application.dataPath + "/Huawei/Plugins/Android/hmsMainTemplate.gradle"))
|
|
88
|
+
{
|
|
89
|
+
file.Write("dependencies {\n\t");
|
|
90
|
+
for (int i = 0; i < gradleConfigs.Length; i++)
|
|
91
|
+
{
|
|
92
|
+
file.Write(AddDependency(gradleConfigs[i]));
|
|
93
|
+
}
|
|
94
|
+
file.Write("}\n");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#elif UNITY_2018_1_OR_NEWER
|
|
98
|
+
using (var file = File.CreateText(Application.dataPath + "/Huawei/Plugins/Android/hmsMainTemplate.gradle"))
|
|
99
|
+
{
|
|
100
|
+
file.Write("buildscript {\n\t");
|
|
101
|
+
file.Write("repositories {\n\t\t");
|
|
102
|
+
file.Write("google()\n\t\t");
|
|
103
|
+
file.Write("jcenter()\n\t\t");
|
|
104
|
+
file.Write("maven { url 'https://developer.huawei.com/repo/' }\n\t}\n\n\t");
|
|
105
|
+
file.Write("dependencies {\n\t\t");
|
|
106
|
+
file.Write(AddClasspath("com.huawei.agconnect:agcp:1.6.1.300"));
|
|
107
|
+
file.Write("\t}\n}\n\n");
|
|
108
|
+
file.Write("allprojects {\n\t");
|
|
109
|
+
file.Write("repositories {\n\t\t");
|
|
110
|
+
file.Write("google()\n\t\t");
|
|
111
|
+
file.Write("jcenter()\n\t\t");
|
|
112
|
+
file.Write("maven { url 'https://developer.huawei.com/repo/' }\n\t}\n}\n\n");
|
|
113
|
+
|
|
114
|
+
file.WriteLine("apply plugin: 'com.huawei.agconnect'\n");
|
|
115
|
+
|
|
116
|
+
file.Write("dependencies {\n\t");
|
|
117
|
+
for (int i = 0; i < gradleConfigs.Length; i++)
|
|
118
|
+
{
|
|
119
|
+
file.Write(AddDependency(gradleConfigs[i]));
|
|
120
|
+
}
|
|
121
|
+
file.Write("}\n\n");
|
|
122
|
+
}
|
|
123
|
+
#endif
|
|
124
|
+
/* TODO:
|
|
125
|
+
#elif UNITY_2022_1_OR_NEWER
|
|
126
|
+
//Gradle 7+ and classpath 'com.huawei.agconnect:agcp:1.9.1.301'
|
|
127
|
+
*/
|
|
128
|
+
}
|
|
129
|
+
private void CreateLauncherGradleFile(string[] gradleConfigs)
|
|
130
|
+
{
|
|
131
|
+
var path = Path.Combine(Application.dataPath, "Huawei/Plugins/Android/hmsLauncherTemplate.gradle");
|
|
132
|
+
|
|
133
|
+
var stringBuilder = new StringBuilder();
|
|
134
|
+
stringBuilder.AppendLine("apply plugin: 'com.huawei.agconnect'\n");
|
|
135
|
+
|
|
136
|
+
#region Dependencies
|
|
137
|
+
|
|
138
|
+
stringBuilder.AppendLine("dependencies {");
|
|
139
|
+
for (int i = 0; i < gradleConfigs.Length; i++)
|
|
140
|
+
{
|
|
141
|
+
stringBuilder.AppendLine($"\t{AddDependency(gradleConfigs[i])}");
|
|
142
|
+
}
|
|
143
|
+
stringBuilder.AppendLine("}");
|
|
144
|
+
#endregion
|
|
145
|
+
stringBuilder.AppendLine("android {");
|
|
146
|
+
stringBuilder.AppendLine("\tpackagingOptions {");
|
|
147
|
+
stringBuilder.AppendLine("\t\tpickFirst \"okhttp3/internal/publicsuffix/publicsuffixes.gz\"");
|
|
148
|
+
stringBuilder.AppendLine("\t\tpickFirst \"**/*.so\"");
|
|
149
|
+
stringBuilder.AppendLine("\t}");
|
|
150
|
+
stringBuilder.AppendLine("}");
|
|
151
|
+
|
|
152
|
+
File.WriteAllText(path, stringBuilder.ToString());
|
|
153
|
+
}
|
|
154
|
+
private void BaseProjectGradleFile(string agcversion)
|
|
155
|
+
{
|
|
156
|
+
// string filePath = Path.Combine(Application.dataPath + "/Huawei/Plugins/Android/hmsBaseProjectTemplate.gradle");
|
|
157
|
+
//
|
|
158
|
+
// StringBuilder sb = new StringBuilder();
|
|
159
|
+
//
|
|
160
|
+
// // ✅ Correct Gradle structure
|
|
161
|
+
// sb.AppendLine("buildscript {");
|
|
162
|
+
// sb.AppendLine("\trepositories {");
|
|
163
|
+
// sb.AppendLine("\t\tgoogle()");
|
|
164
|
+
// sb.AppendLine("\t\tmavenCentral()");
|
|
165
|
+
// sb.AppendLine("\t\tmaven { url 'https://developer.huawei.com/repo/' }");
|
|
166
|
+
// sb.AppendLine("\t}");
|
|
167
|
+
// sb.AppendLine("\tdependencies {");
|
|
168
|
+
// sb.AppendLine($"\t\tclasspath 'com.huawei.agconnect:agcp:{agcversion}'");
|
|
169
|
+
// sb.AppendLine("\t}");
|
|
170
|
+
// sb.AppendLine("}");
|
|
171
|
+
//
|
|
172
|
+
// sb.AppendLine("allprojects {");
|
|
173
|
+
// sb.AppendLine("\trepositories {");
|
|
174
|
+
// sb.AppendLine("\t\tgoogle()");
|
|
175
|
+
// sb.AppendLine("\t\tmavenCentral()");
|
|
176
|
+
// sb.AppendLine("\t\tmaven { url 'https://developer.huawei.com/repo/' }");
|
|
177
|
+
// sb.AppendLine("\t}");
|
|
178
|
+
// sb.AppendLine("}");
|
|
179
|
+
//
|
|
180
|
+
// File.WriteAllText(filePath, sb.ToString());
|
|
181
|
+
}
|
|
182
|
+
private string AddDependency(string name)
|
|
183
|
+
{
|
|
184
|
+
return $"implementation '{name}'\n\t";
|
|
185
|
+
}
|
|
186
|
+
private string AddClasspath(string name)
|
|
187
|
+
{
|
|
188
|
+
return $"classpath '{name}'\n\t\t\t";
|
|
189
|
+
}
|
|
190
|
+
public void PrepareGradleFile()
|
|
191
|
+
{
|
|
192
|
+
HMSSettings settings = HMSMainEditorSettings.Instance.Settings;
|
|
193
|
+
List<string> gradle = new List<string>(CoreGradles());
|
|
194
|
+
|
|
195
|
+
foreach (var key in gradleSettings.Keys)
|
|
196
|
+
{
|
|
197
|
+
if (settings.GetBool(key))
|
|
198
|
+
{
|
|
199
|
+
gradle.AddRange(gradleSettings[key]);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
CreateGradleFiles(gradle.ToArray());
|
|
204
|
+
}
|
|
205
|
+
private string[] CoreGradles()
|
|
206
|
+
{
|
|
207
|
+
return new string[] { "com.huawei.hms:base:6.6.0.300", "com.huawei.agconnect:agconnect-core:1.6.5.300" };
|
|
208
|
+
}
|
|
209
|
+
#region ML Kit
|
|
210
|
+
private string[] GetMLKitModulesGradlePackages()
|
|
211
|
+
{
|
|
212
|
+
var IsMLKitEnabled = HMSMainEditorSettings.Instance.Settings.GetBool(MLKitToggleEditor.MLKitEnabled);
|
|
213
|
+
|
|
214
|
+
if (!IsMLKitEnabled)
|
|
215
|
+
{
|
|
216
|
+
return Array.Empty<string>();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
var mainPackages = new List<string> { "com.huawei.hms:ml-computer-agc-inner:3.11.2.300" };
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
AddConditionalPackages(mainPackages);
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
return mainPackages.ToArray();
|
|
226
|
+
}
|
|
227
|
+
private void AddConditionalPackages(List<string> packages)
|
|
228
|
+
{
|
|
229
|
+
var settings = HMSMLKitSettings.Instance.Settings;
|
|
230
|
+
|
|
231
|
+
if (settings.GetBool(HMSMLKitSettings.EnableTranslateModule))
|
|
232
|
+
{
|
|
233
|
+
packages.AddRange(new[]
|
|
234
|
+
{
|
|
235
|
+
"com.huawei.hms:ml-computer-translate:3.11.0.302",
|
|
236
|
+
"com.huawei.hms:ml-computer-translate-model:3.11.0.302"
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (settings.GetBool(HMSMLKitSettings.EnableTextToSpeechModule))
|
|
241
|
+
{
|
|
242
|
+
packages.AddRange(new[]
|
|
243
|
+
{
|
|
244
|
+
"com.huawei.hms:ml-computer-voice-tts:3.12.0.301",
|
|
245
|
+
"com.huawei.hms:ml-computer-voice-tts-model-bee:3.6.0.300",
|
|
246
|
+
"com.huawei.hms:ml-computer-voice-tts-model-eagle:3.6.0.300"
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (settings.GetBool(HMSMLKitSettings.EnableLanguageDetectionModule))
|
|
251
|
+
{
|
|
252
|
+
packages.AddRange(new[]
|
|
253
|
+
{
|
|
254
|
+
"com.huawei.hms:ml-computer-language-detection:3.11.0.302",
|
|
255
|
+
"com.huawei.hms:ml-computer-language-detection-model:3.11.0.302"
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (settings.GetBool(HMSMLKitSettings.EnableTextRecognitionModule))
|
|
260
|
+
{
|
|
261
|
+
packages.AddRange(new[]
|
|
262
|
+
{
|
|
263
|
+
"com.huawei.hms:ml-computer-vision-ocr:3.11.0.301",
|
|
264
|
+
"com.huawei.hms:ml-computer-vision-ocr-cn-model:3.11.0.301",
|
|
265
|
+
"com.huawei.hms:ml-computer-vision-ocr-jk-model:3.11.0.301",
|
|
266
|
+
"com.huawei.hms:ml-computer-vision-ocr-latin-model:3.11.0.301"
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
#endregion
|
|
271
|
+
public void OnPreprocessBuild(BuildReport report)
|
|
272
|
+
{
|
|
273
|
+
Application.logMessageReceived += OnBuildError;
|
|
274
|
+
bool pluginEnabled = HMSPluginSettings.Instance.Settings.GetBool(PluginToggleEditor.PluginEnabled, true);
|
|
275
|
+
if (report.summary.platform != BuildTarget.Android && pluginEnabled)
|
|
276
|
+
{
|
|
277
|
+
//TODO: Maybe add a button called "Don't Remind" and stop this popup getting shown and auto disable the plugin.
|
|
278
|
+
EditorUtility.DisplayDialog("HMS Unity Plugin Warning!", "HMS Unity Plugin only works on Android platforms. Plugin is getting disabled for this build.", "Ok");
|
|
279
|
+
pluginEnabled = false;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
var huaweiMobileServicesDLL = AssetImporter.GetAtPath("Assets/Huawei/Dlls/HuaweiMobileServices.dll") as PluginImporter;
|
|
283
|
+
var appDebugAar = AssetImporter.GetAtPath("Assets/Huawei/Plugins/Android/app-debug.aar") as PluginImporter;
|
|
284
|
+
var bookInfo = AssetImporter.GetAtPath("Assets/Huawei/Plugins//Android/BookInfo.java") as PluginImporter;
|
|
285
|
+
var objectTypeInfoHelper = AssetImporter.GetAtPath("Assets/Huawei/Plugins/Android/ObjectTypeInfoHelper.java") as PluginImporter;
|
|
286
|
+
var pushKitPlugin = AssetImporter.GetAtPath("Assets/Huawei/Plugins/Android/HMSUnityPushKit.plugin") as PluginImporter;
|
|
287
|
+
var modeling3dPlugin = AssetImporter.GetAtPath("Assets/Huawei/Plugins/Android/HMSUnityModelingKit.plugin") as PluginImporter;
|
|
288
|
+
|
|
289
|
+
if (pluginEnabled)
|
|
290
|
+
PrepareGradleFile();
|
|
291
|
+
|
|
292
|
+
if (bookInfo != null)
|
|
293
|
+
bookInfo.SetCompatibleWithPlatform(BuildTarget.Android, HMSMainEditorSettings.Instance.Settings.GetBool(CloudDBToggleEditor.CloudDBEnabled) && pluginEnabled);
|
|
294
|
+
if (objectTypeInfoHelper != null)
|
|
295
|
+
objectTypeInfoHelper.SetCompatibleWithPlatform(BuildTarget.Android, HMSMainEditorSettings.Instance.Settings.GetBool(CloudDBToggleEditor.CloudDBEnabled) && pluginEnabled);
|
|
296
|
+
if (huaweiMobileServicesDLL != null)
|
|
297
|
+
huaweiMobileServicesDLL.SetCompatibleWithPlatform(BuildTarget.Android, pluginEnabled);
|
|
298
|
+
if (pushKitPlugin != null)
|
|
299
|
+
pushKitPlugin.SetCompatibleWithPlatform(BuildTarget.Android, HMSMainEditorSettings.Instance.Settings.GetBool(PushToggleEditor.PushKitEnabled) && pluginEnabled);
|
|
300
|
+
if (modeling3dPlugin != null)
|
|
301
|
+
modeling3dPlugin.SetCompatibleWithPlatform(BuildTarget.Android, HMSMainEditorSettings.Instance.Settings.GetBool(Modeling3dKitToggleEditor.Modeling3dkitEnabled) && pluginEnabled);
|
|
302
|
+
if (appDebugAar != null)
|
|
303
|
+
appDebugAar.SetCompatibleWithPlatform(BuildTarget.Android, pluginEnabled);
|
|
304
|
+
|
|
305
|
+
HMSEditorUtils.UpdateAssemblyDefinitions(pluginEnabled);
|
|
306
|
+
}
|
|
307
|
+
private void OnBuildError(string condition, string stackTrace, LogType type)
|
|
308
|
+
{
|
|
309
|
+
if (type == LogType.Error)
|
|
310
|
+
{
|
|
311
|
+
Application.logMessageReceived -= OnBuildError;
|
|
312
|
+
HMSEditorUtils.UpdateAssemblyDefinitions(false, false);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
using UnityEditor;
|
|
2
|
+
|
|
3
|
+
namespace HmsPlugin
|
|
4
|
+
{
|
|
5
|
+
[InitializeOnLoad]
|
|
6
|
+
public class HMSPackageChecker
|
|
7
|
+
{
|
|
8
|
+
static HMSPackageChecker()
|
|
9
|
+
{
|
|
10
|
+
AssetDatabase.importPackageCompleted += OnImportPackageCompleted;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
private static void OnImportPackageCompleted(string packageName)
|
|
14
|
+
{
|
|
15
|
+
if (packageName.Contains("HMSUnityPackage"))
|
|
16
|
+
{
|
|
17
|
+
var enabledEditors = HMSMainKitsTabFactory.GetEnabledEditors();
|
|
18
|
+
if (enabledEditors != null && enabledEditors.Count > 0)
|
|
19
|
+
{
|
|
20
|
+
enabledEditors.ForEach(c => c.DisableToggle());
|
|
21
|
+
enabledEditors.ForEach(f => f.EnableToggle());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|