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.
Files changed (731) hide show
  1. package/Documentation.md +9 -0
  2. package/Documentation.md.meta +7 -0
  3. package/Editor/Editor/Extensions/ActionExtensions.cs +32 -0
  4. package/Editor/Editor/Extensions/ActionExtensions.cs.meta +11 -0
  5. package/Editor/Editor/Extensions/CollectionExtensions.cs +36 -0
  6. package/Editor/Editor/Extensions/CollectionExtensions.cs.meta +11 -0
  7. package/Editor/Editor/Extensions/StringExtensions.cs +119 -0
  8. package/Editor/Editor/Extensions/StringExtensions.cs.meta +11 -0
  9. package/Editor/Editor/Extensions/WindowExtensions.cs +59 -0
  10. package/Editor/Editor/Extensions/WindowExtensions.cs.meta +11 -0
  11. package/Editor/Editor/Extensions.meta +8 -0
  12. package/Editor/Editor/General/UI/Button/Button.cs +143 -0
  13. package/Editor/Editor/General/UI/Button/Button.cs.meta +11 -0
  14. package/Editor/Editor/General/UI/Button/Clickable.cs +30 -0
  15. package/Editor/Editor/General/UI/Button/Clickable.cs.meta +11 -0
  16. package/Editor/Editor/General/UI/Button.meta +8 -0
  17. package/Editor/Editor/General/UI/Collections/IReadOnlyList.cs +10 -0
  18. package/Editor/Editor/General/UI/Collections/IReadOnlyList.cs.meta +11 -0
  19. package/Editor/Editor/General/UI/Collections.meta +8 -0
  20. package/Editor/Editor/General/UI/ConditionalDrawer.cs +25 -0
  21. package/Editor/Editor/General/UI/ConditionalDrawer.cs.meta +11 -0
  22. package/Editor/Editor/General/UI/CustomEditorDrawer.cs +12 -0
  23. package/Editor/Editor/General/UI/CustomEditorDrawer.cs.meta +11 -0
  24. package/Editor/Editor/General/UI/Depth.cs +27 -0
  25. package/Editor/Editor/General/UI/Depth.cs.meta +11 -0
  26. package/Editor/Editor/General/UI/DisabledDrawer.cs +53 -0
  27. package/Editor/Editor/General/UI/DisabledDrawer.cs.meta +11 -0
  28. package/Editor/Editor/General/UI/Dropdown/EnumDropdown.cs +35 -0
  29. package/Editor/Editor/General/UI/Dropdown/EnumDropdown.cs.meta +11 -0
  30. package/Editor/Editor/General/UI/Dropdown/EnumFlagsDropdown.cs +24 -0
  31. package/Editor/Editor/General/UI/Dropdown/EnumFlagsDropdown.cs.meta +11 -0
  32. package/Editor/Editor/General/UI/Dropdown/IDropdown.cs +9 -0
  33. package/Editor/Editor/General/UI/Dropdown/IDropdown.cs.meta +11 -0
  34. package/Editor/Editor/General/UI/Dropdown/StringDropdown.cs +46 -0
  35. package/Editor/Editor/General/UI/Dropdown/StringDropdown.cs.meta +11 -0
  36. package/Editor/Editor/General/UI/Dropdown.meta +8 -0
  37. package/Editor/Editor/General/UI/Focusable.cs +53 -0
  38. package/Editor/Editor/General/UI/Focusable.cs.meta +11 -0
  39. package/Editor/Editor/General/UI/Foldout.cs +61 -0
  40. package/Editor/Editor/General/UI/Foldout.cs.meta +11 -0
  41. package/Editor/Editor/General/UI/HelpBox/HelpBox.cs +42 -0
  42. package/Editor/Editor/General/UI/HelpBox/HelpBox.cs.meta +11 -0
  43. package/Editor/Editor/General/UI/HelpBox/RichHelpBox.cs +35 -0
  44. package/Editor/Editor/General/UI/HelpBox/RichHelpBox.cs.meta +11 -0
  45. package/Editor/Editor/General/UI/HelpBox.meta +8 -0
  46. package/Editor/Editor/General/UI/HorizontalLine.cs +13 -0
  47. package/Editor/Editor/General/UI/HorizontalLine.cs.meta +11 -0
  48. package/Editor/Editor/General/UI/IDrawer.cs +7 -0
  49. package/Editor/Editor/General/UI/IDrawer.cs.meta +11 -0
  50. package/Editor/Editor/General/UI/Image/Image.cs +49 -0
  51. package/Editor/Editor/General/UI/Image/Image.cs.meta +11 -0
  52. package/Editor/Editor/General/UI/Image.meta +8 -0
  53. package/Editor/Editor/General/UI/InlineGroup.cs +41 -0
  54. package/Editor/Editor/General/UI/InlineGroup.cs.meta +11 -0
  55. package/Editor/Editor/General/UI/Label/DelegatedLabel.cs +31 -0
  56. package/Editor/Editor/General/UI/Label/DelegatedLabel.cs.meta +11 -0
  57. package/Editor/Editor/General/UI/Label/Label.cs +133 -0
  58. package/Editor/Editor/General/UI/Label/Label.cs.meta +11 -0
  59. package/Editor/Editor/General/UI/Label.meta +8 -0
  60. package/Editor/Editor/General/UI/List/AlteratingListDrawer.cs +93 -0
  61. package/Editor/Editor/General/UI/List/AlteratingListDrawer.cs.meta +11 -0
  62. package/Editor/Editor/General/UI/List/ListDrawer.cs +77 -0
  63. package/Editor/Editor/General/UI/List/ListDrawer.cs.meta +11 -0
  64. package/Editor/Editor/General/UI/List.meta +8 -0
  65. package/Editor/Editor/General/UI/LongProcess.cs +24 -0
  66. package/Editor/Editor/General/UI/LongProcess.cs.meta +11 -0
  67. package/Editor/Editor/General/UI/Menu/EditableMenu.cs +46 -0
  68. package/Editor/Editor/General/UI/Menu/EditableMenu.cs.meta +11 -0
  69. package/Editor/Editor/General/UI/Menu/Menu.cs +55 -0
  70. package/Editor/Editor/General/UI/Menu/Menu.cs.meta +11 -0
  71. package/Editor/Editor/General/UI/Menu.meta +8 -0
  72. package/Editor/Editor/General/UI/PersistentFoldout.cs +72 -0
  73. package/Editor/Editor/General/UI/PersistentFoldout.cs.meta +11 -0
  74. package/Editor/Editor/General/UI/ScrollView/ScrollView.cs +16 -0
  75. package/Editor/Editor/General/UI/ScrollView/ScrollView.cs.meta +11 -0
  76. package/Editor/Editor/General/UI/ScrollView.meta +8 -0
  77. package/Editor/Editor/General/UI/Sequence/EmptySequenceDrawer.cs +33 -0
  78. package/Editor/Editor/General/UI/Sequence/EmptySequenceDrawer.cs.meta +11 -0
  79. package/Editor/Editor/General/UI/Sequence/HorizontalSequenceDrawer.cs +18 -0
  80. package/Editor/Editor/General/UI/Sequence/HorizontalSequenceDrawer.cs.meta +11 -0
  81. package/Editor/Editor/General/UI/Sequence/SequenceDrawer.cs +74 -0
  82. package/Editor/Editor/General/UI/Sequence/SequenceDrawer.cs.meta +11 -0
  83. package/Editor/Editor/General/UI/Sequence/VerticalSequenceDrawer.cs +28 -0
  84. package/Editor/Editor/General/UI/Sequence/VerticalSequenceDrawer.cs.meta +11 -0
  85. package/Editor/Editor/General/UI/Sequence.meta +8 -0
  86. package/Editor/Editor/General/UI/Space.cs +19 -0
  87. package/Editor/Editor/General/UI/Space.cs.meta +11 -0
  88. package/Editor/Editor/General/UI/Spacer.cs +13 -0
  89. package/Editor/Editor/General/UI/Spacer.cs.meta +11 -0
  90. package/Editor/Editor/General/UI/TabBar/TabBar.cs +42 -0
  91. package/Editor/Editor/General/UI/TabBar/TabBar.cs.meta +11 -0
  92. package/Editor/Editor/General/UI/TabBar/TabView.cs +13 -0
  93. package/Editor/Editor/General/UI/TabBar/TabView.cs.meta +11 -0
  94. package/Editor/Editor/General/UI/TabBar.meta +8 -0
  95. package/Editor/Editor/General/UI/TextArea/TextArea.cs +74 -0
  96. package/Editor/Editor/General/UI/TextArea/TextArea.cs.meta +11 -0
  97. package/Editor/Editor/General/UI/TextArea.meta +8 -0
  98. package/Editor/Editor/General/UI/TextField/ReturnChecker.cs +40 -0
  99. package/Editor/Editor/General/UI/TextField/ReturnChecker.cs.meta +11 -0
  100. package/Editor/Editor/General/UI/TextField/TextField.cs +169 -0
  101. package/Editor/Editor/General/UI/TextField/TextField.cs.meta +11 -0
  102. package/Editor/Editor/General/UI/TextField/TextFieldWithAccept.cs +65 -0
  103. package/Editor/Editor/General/UI/TextField/TextFieldWithAccept.cs.meta +11 -0
  104. package/Editor/Editor/General/UI/TextField.meta +8 -0
  105. package/Editor/Editor/General/UI/TimedDrawer.cs +35 -0
  106. package/Editor/Editor/General/UI/TimedDrawer.cs.meta +11 -0
  107. package/Editor/Editor/General/UI/Toggle/Toggle.cs +67 -0
  108. package/Editor/Editor/General/UI/Toggle/Toggle.cs.meta +11 -0
  109. package/Editor/Editor/General/UI/Toggle/ToggledTextFieldWithButton.cs +41 -0
  110. package/Editor/Editor/General/UI/Toggle/ToggledTextFieldWithButton.cs.meta +11 -0
  111. package/Editor/Editor/General/UI/Toggle.meta +8 -0
  112. package/Editor/Editor/General/UI/Window/DisplayDialog.cs +55 -0
  113. package/Editor/Editor/General/UI/Window/DisplayDialog.cs.meta +11 -0
  114. package/Editor/Editor/General/UI/Window/HMSEditorWindow.cs +60 -0
  115. package/Editor/Editor/General/UI/Window/HMSEditorWindow.cs.meta +11 -0
  116. package/Editor/Editor/General/UI/Window/ModalDialog.cs +93 -0
  117. package/Editor/Editor/General/UI/Window/ModalDialog.cs.meta +11 -0
  118. package/Editor/Editor/General/UI/Window/ModalWindow.cs +88 -0
  119. package/Editor/Editor/General/UI/Window/ModalWindow.cs.meta +11 -0
  120. package/Editor/Editor/General/UI/Window.meta +8 -0
  121. package/Editor/Editor/General/UI.meta +8 -0
  122. package/Editor/Editor/General.meta +8 -0
  123. package/Editor/Editor/HuaweiAdsFileCopier.cs +62 -0
  124. package/Editor/Editor/HuaweiAdsFileCopier.cs.meta +11 -0
  125. package/Editor/Editor/HuaweiMobileServices.Editor.asmdef +17 -0
  126. package/Editor/Editor/HuaweiMobileServices.Editor.asmdef.meta +7 -0
  127. package/Editor/Editor/Utils/HMSEditorUtils.cs +490 -0
  128. package/Editor/Editor/Utils/HMSEditorUtils.cs.meta +11 -0
  129. package/Editor/Editor/Utils/HMSExcelHelper.cs +50 -0
  130. package/Editor/Editor/Utils/HMSExcelHelper.cs.meta +11 -0
  131. package/Editor/Editor/Utils/HMSGradleFixer.cs +178 -0
  132. package/Editor/Editor/Utils/HMSGradleFixer.cs.meta +11 -0
  133. package/Editor/Editor/Utils/HMSGradleWorker.cs +316 -0
  134. package/Editor/Editor/Utils/HMSGradleWorker.cs.meta +11 -0
  135. package/Editor/Editor/Utils/HMSPackageChecker.cs +26 -0
  136. package/Editor/Editor/Utils/HMSPackageChecker.cs.meta +11 -0
  137. package/Editor/Editor/Utils/HMSPluginUpdater.cs +208 -0
  138. package/Editor/Editor/Utils/HMSPluginUpdater.cs.meta +11 -0
  139. package/Editor/Editor/Utils/HMSPluginUpdaterInit.cs +20 -0
  140. package/Editor/Editor/Utils/HMSPluginUpdaterInit.cs.meta +11 -0
  141. package/Editor/Editor/Utils/HMSWebRequestHelper.cs +388 -0
  142. package/Editor/Editor/Utils/HMSWebRequestHelper.cs.meta +11 -0
  143. package/Editor/Editor/Utils/HMSWebUtils.cs +113 -0
  144. package/Editor/Editor/Utils/HMSWebUtils.cs.meta +11 -0
  145. package/Editor/Editor/Utils.meta +8 -0
  146. package/Editor/Editor/View/AdsTab/HMSAdsSettingsDrawer.cs +427 -0
  147. package/Editor/Editor/View/AdsTab/HMSAdsSettingsDrawer.cs.meta +11 -0
  148. package/Editor/Editor/View/AdsTab/HMSAdsTabFactory.cs +14 -0
  149. package/Editor/Editor/View/AdsTab/HMSAdsTabFactory.cs.meta +11 -0
  150. package/Editor/Editor/View/AdsTab.meta +8 -0
  151. package/Editor/Editor/View/CloudDBTab/HMSCloudDBSettingsDrawer.cs +208 -0
  152. package/Editor/Editor/View/CloudDBTab/HMSCloudDBSettingsDrawer.cs.meta +11 -0
  153. package/Editor/Editor/View/CloudDBTab/HMSCloudDBTabFactory.cs +13 -0
  154. package/Editor/Editor/View/CloudDBTab/HMSCloudDBTabFactory.cs.meta +11 -0
  155. package/Editor/Editor/View/CloudDBTab.meta +8 -0
  156. package/Editor/Editor/View/ConnectAPI/HMSConnectAPITabFactory.cs +30 -0
  157. package/Editor/Editor/View/ConnectAPI/HMSConnectAPITabFactory.cs.meta +11 -0
  158. package/Editor/Editor/View/ConnectAPI/HMSConnectAPIWindow.cs +22 -0
  159. package/Editor/Editor/View/ConnectAPI/HMSConnectAPIWindow.cs.meta +11 -0
  160. package/Editor/Editor/View/ConnectAPI/TokenObtainerEditor.cs +43 -0
  161. package/Editor/Editor/View/ConnectAPI/TokenObtainerEditor.cs.meta +11 -0
  162. package/Editor/Editor/View/ConnectAPI.meta +8 -0
  163. package/Editor/Editor/View/GameServiceTab/AchievementsManipulator.cs +92 -0
  164. package/Editor/Editor/View/GameServiceTab/AchievementsManipulator.cs.meta +11 -0
  165. package/Editor/Editor/View/GameServiceTab/HMSAchievementsAdderDrawer.cs +35 -0
  166. package/Editor/Editor/View/GameServiceTab/HMSAchievementsAdderDrawer.cs.meta +11 -0
  167. package/Editor/Editor/View/GameServiceTab/HMSGameServiceSettingsDrawer.cs +138 -0
  168. package/Editor/Editor/View/GameServiceTab/HMSGameServiceSettingsDrawer.cs.meta +11 -0
  169. package/Editor/Editor/View/GameServiceTab/HMSGameServiceTabFactory.cs +13 -0
  170. package/Editor/Editor/View/GameServiceTab/HMSGameServiceTabFactory.cs.meta +11 -0
  171. package/Editor/Editor/View/GameServiceTab/HMSLeaderboardAdderDrawer.cs +34 -0
  172. package/Editor/Editor/View/GameServiceTab/HMSLeaderboardAdderDrawer.cs.meta +11 -0
  173. package/Editor/Editor/View/GameServiceTab/LeaderboardManipulator.cs +92 -0
  174. package/Editor/Editor/View/GameServiceTab/LeaderboardManipulator.cs.meta +11 -0
  175. package/Editor/Editor/View/GameServiceTab.meta +8 -0
  176. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPProductAdderDrawer.cs +36 -0
  177. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPProductAdderDrawer.cs.meta +11 -0
  178. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPSettingsDrawer.cs +195 -0
  179. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPSettingsDrawer.cs.meta +11 -0
  180. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPTabFactory.cs +14 -0
  181. package/Editor/Editor/View/InAppPurchaseTab/HMSIAPTabFactory.cs.meta +11 -0
  182. package/Editor/Editor/View/InAppPurchaseTab/IAPProductManipulator.cs +111 -0
  183. package/Editor/Editor/View/InAppPurchaseTab/IAPProductManipulator.cs.meta +11 -0
  184. package/Editor/Editor/View/InAppPurchaseTab.meta +8 -0
  185. package/Editor/Editor/View/KeyToolTab/HMSKeyToolWindow.cs +240 -0
  186. package/Editor/Editor/View/KeyToolTab/HMSKeyToolWindow.cs.meta +11 -0
  187. package/Editor/Editor/View/KeyToolTab.meta +8 -0
  188. package/Editor/Editor/View/KitSettingsTab/APMToggleEditor.cs +59 -0
  189. package/Editor/Editor/View/KitSettingsTab/APMToggleEditor.cs.meta +11 -0
  190. package/Editor/Editor/View/KitSettingsTab/AccountToggleEditor.cs +78 -0
  191. package/Editor/Editor/View/KitSettingsTab/AccountToggleEditor.cs.meta +11 -0
  192. package/Editor/Editor/View/KitSettingsTab/AdsToggleEditor.cs +76 -0
  193. package/Editor/Editor/View/KitSettingsTab/AdsToggleEditor.cs.meta +11 -0
  194. package/Editor/Editor/View/KitSettingsTab/AnalyticsToggleEditor.cs +92 -0
  195. package/Editor/Editor/View/KitSettingsTab/AnalyticsToggleEditor.cs.meta +11 -0
  196. package/Editor/Editor/View/KitSettingsTab/AppLinkingToggleEditor.cs +67 -0
  197. package/Editor/Editor/View/KitSettingsTab/AppLinkingToggleEditor.cs.meta +11 -0
  198. package/Editor/Editor/View/KitSettingsTab/AppMessagingToggleEditor.cs +57 -0
  199. package/Editor/Editor/View/KitSettingsTab/AppMessagingToggleEditor.cs.meta +11 -0
  200. package/Editor/Editor/View/KitSettingsTab/AuthToggleEditor.cs +71 -0
  201. package/Editor/Editor/View/KitSettingsTab/AuthToggleEditor.cs.meta +11 -0
  202. package/Editor/Editor/View/KitSettingsTab/CloudDBToggleEditor.cs +80 -0
  203. package/Editor/Editor/View/KitSettingsTab/CloudDBToggleEditor.cs.meta +11 -0
  204. package/Editor/Editor/View/KitSettingsTab/CloudStorageToggleEditor.cs +64 -0
  205. package/Editor/Editor/View/KitSettingsTab/CloudStorageToggleEditor.cs.meta +11 -0
  206. package/Editor/Editor/View/KitSettingsTab/CrashToggleEditor.cs +63 -0
  207. package/Editor/Editor/View/KitSettingsTab/CrashToggleEditor.cs.meta +11 -0
  208. package/Editor/Editor/View/KitSettingsTab/DriveKitToggleEditor.cs +74 -0
  209. package/Editor/Editor/View/KitSettingsTab/DriveKitToggleEditor.cs.meta +11 -0
  210. package/Editor/Editor/View/KitSettingsTab/GameServiceToggleEditor.cs +81 -0
  211. package/Editor/Editor/View/KitSettingsTab/GameServiceToggleEditor.cs.meta +11 -0
  212. package/Editor/Editor/View/KitSettingsTab/HelpboxAGConnectFile.cs +24 -0
  213. package/Editor/Editor/View/KitSettingsTab/HelpboxAGConnectFile.cs.meta +11 -0
  214. package/Editor/Editor/View/KitSettingsTab/IAPToggleEditor.cs +76 -0
  215. package/Editor/Editor/View/KitSettingsTab/IAPToggleEditor.cs.meta +11 -0
  216. package/Editor/Editor/View/KitSettingsTab/LocationToogleEditor.cs +66 -0
  217. package/Editor/Editor/View/KitSettingsTab/LocationToogleEditor.cs.meta +11 -0
  218. package/Editor/Editor/View/KitSettingsTab/MLKitToggleEditor.cs +87 -0
  219. package/Editor/Editor/View/KitSettingsTab/MLKitToggleEditor.cs.meta +11 -0
  220. package/Editor/Editor/View/KitSettingsTab/Modeling3dKitToggleEditor.cs +75 -0
  221. package/Editor/Editor/View/KitSettingsTab/Modeling3dKitToggleEditor.cs.meta +11 -0
  222. package/Editor/Editor/View/KitSettingsTab/NearbyServiceToggleEditor.cs +56 -0
  223. package/Editor/Editor/View/KitSettingsTab/NearbyServiceToggleEditor.cs.meta +11 -0
  224. package/Editor/Editor/View/KitSettingsTab/PluginToggleEditor.cs +58 -0
  225. package/Editor/Editor/View/KitSettingsTab/PluginToggleEditor.cs.meta +11 -0
  226. package/Editor/Editor/View/KitSettingsTab/PushToggleEditor.cs +71 -0
  227. package/Editor/Editor/View/KitSettingsTab/PushToggleEditor.cs.meta +11 -0
  228. package/Editor/Editor/View/KitSettingsTab/RemoteConfigToggleEditor.cs +80 -0
  229. package/Editor/Editor/View/KitSettingsTab/RemoteConfigToggleEditor.cs.meta +11 -0
  230. package/Editor/Editor/View/KitSettingsTab/ScanKitToggleEditor.cs +59 -0
  231. package/Editor/Editor/View/KitSettingsTab/ScanKitToggleEditor.cs.meta +11 -0
  232. package/Editor/Editor/View/KitSettingsTab/ToggleEditor.cs +12 -0
  233. package/Editor/Editor/View/KitSettingsTab/ToggleEditor.cs.meta +11 -0
  234. package/Editor/Editor/View/KitSettingsTab.meta +8 -0
  235. package/Editor/Editor/View/LibrariesTab/HMSLibrariesDrawer.cs +65 -0
  236. package/Editor/Editor/View/LibrariesTab/HMSLibrariesDrawer.cs.meta +11 -0
  237. package/Editor/Editor/View/LibrariesTab.meta +8 -0
  238. package/Editor/Editor/View/MLKitTab/HMSMLKitSettingsDrawer.cs +145 -0
  239. package/Editor/Editor/View/MLKitTab/HMSMLKitSettingsDrawer.cs.meta +11 -0
  240. package/Editor/Editor/View/MLKitTab/HMSMLKitTabFactory.cs +15 -0
  241. package/Editor/Editor/View/MLKitTab/HMSMLKitTabFactory.cs.meta +11 -0
  242. package/Editor/Editor/View/MLKitTab.meta +8 -0
  243. package/Editor/Editor/View/MainWindow/HMSMainKitsTabFactory.cs +136 -0
  244. package/Editor/Editor/View/MainWindow/HMSMainKitsTabFactory.cs.meta +11 -0
  245. package/Editor/Editor/View/MainWindow/HMSMainWindow.cs +60 -0
  246. package/Editor/Editor/View/MainWindow/HMSMainWindow.cs.meta +11 -0
  247. package/Editor/Editor/View/MainWindow.meta +8 -0
  248. package/Editor/Editor/View/ModelingTab/ModelingSettingsDrawer.cs +43 -0
  249. package/Editor/Editor/View/ModelingTab/ModelingSettingsDrawer.cs.meta +11 -0
  250. package/Editor/Editor/View/ModelingTab/ModelingTabFactory.cs +12 -0
  251. package/Editor/Editor/View/ModelingTab/ModelingTabFactory.cs.meta +11 -0
  252. package/Editor/Editor/View/ModelingTab.meta +8 -0
  253. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/AllIAPProductsEditor.cs +192 -0
  254. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/AllIAPProductsEditor.cs.meta +11 -0
  255. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/HMSAllIAPProductsWindow.cs +34 -0
  256. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/HMSAllIAPProductsWindow.cs.meta +11 -0
  257. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/IAPQueryListEditor.cs +41 -0
  258. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/IAPQueryListEditor.cs.meta +11 -0
  259. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/HMSUpdateIAPProductWindow.cs +24 -0
  260. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/HMSUpdateIAPProductWindow.cs.meta +11 -0
  261. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/UpdateIAPProductEditor.cs +269 -0
  262. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow/UpdateIAPProductEditor.cs.meta +11 -0
  263. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow/UpdateIAPProductWindow.meta +8 -0
  264. package/Editor/Editor/View/PMSWindow/AllIAPProductsWindow.meta +8 -0
  265. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/CreateProductEditor.cs +452 -0
  266. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/CreateProductEditor.cs.meta +11 -0
  267. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/HMSCreateAProductWindow.cs +34 -0
  268. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/HMSCreateAProductWindow.cs.meta +11 -0
  269. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/LanguagesFoldoutEditor.cs +96 -0
  270. package/Editor/Editor/View/PMSWindow/CreateAProductWindow/LanguagesFoldoutEditor.cs.meta +11 -0
  271. package/Editor/Editor/View/PMSWindow/CreateAProductWindow.meta +8 -0
  272. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/CreateProductsEditor.cs +322 -0
  273. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/CreateProductsEditor.cs.meta +11 -0
  274. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCSVReader.cs +53 -0
  275. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCSVReader.cs.meta +11 -0
  276. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCreateProductsWindow.cs +34 -0
  277. package/Editor/Editor/View/PMSWindow/CreateProductsWindow/HMSCreateProductsWindow.cs.meta +11 -0
  278. package/Editor/Editor/View/PMSWindow/CreateProductsWindow.meta +8 -0
  279. package/Editor/Editor/View/PMSWindow/HMSPMSAPITabFactory.cs +40 -0
  280. package/Editor/Editor/View/PMSWindow/HMSPMSAPITabFactory.cs.meta +11 -0
  281. package/Editor/Editor/View/PMSWindow.meta +8 -0
  282. package/Editor/Editor/View/PublishingAPI/HMSPublishingAPITabFactory.cs +15 -0
  283. package/Editor/Editor/View/PublishingAPI/HMSPublishingAPITabFactory.cs.meta +11 -0
  284. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/HelpBoxEnablingAppSigning.cs +22 -0
  285. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/HelpBoxEnablingAppSigning.cs.meta +11 -0
  286. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoEditor.cs +546 -0
  287. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoEditor.cs.meta +11 -0
  288. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoWindow.cs +32 -0
  289. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation/QueryingAppInfoWindow.cs.meta +11 -0
  290. package/Editor/Editor/View/PublishingAPI/QueryingAppInformation.meta +8 -0
  291. package/Editor/Editor/View/PublishingAPI.meta +8 -0
  292. package/Editor/Editor/View/RemoteConfigTab/DefaultValueManipulator.cs +115 -0
  293. package/Editor/Editor/View/RemoteConfigTab/DefaultValueManipulator.cs.meta +11 -0
  294. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigAdderDrawer.cs +33 -0
  295. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigAdderDrawer.cs.meta +11 -0
  296. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigSettingsDrawer.cs +103 -0
  297. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigSettingsDrawer.cs.meta +11 -0
  298. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigTabFactory.cs +14 -0
  299. package/Editor/Editor/View/RemoteConfigTab/HMSRemoteConfigTabFactory.cs.meta +11 -0
  300. package/Editor/Editor/View/RemoteConfigTab.meta +8 -0
  301. package/Editor/Editor/View/Utils/CompilationWindow.cs +46 -0
  302. package/Editor/Editor/View/Utils/CompilationWindow.cs.meta +11 -0
  303. package/Editor/Editor/View/Utils/ICollectionManipulator.cs +9 -0
  304. package/Editor/Editor/View/Utils/ICollectionManipulator.cs.meta +11 -0
  305. package/Editor/Editor/View/Utils/WindowEditRedirect.cs +18 -0
  306. package/Editor/Editor/View/Utils/WindowEditRedirect.cs.meta +11 -0
  307. package/Editor/Editor/View/Utils.meta +8 -0
  308. package/Editor/Editor/View.meta +8 -0
  309. package/Editor/Editor.meta +8 -0
  310. package/Editor.meta +8 -0
  311. package/LICENSE.md +9 -0
  312. package/LICENSE.md.meta +7 -0
  313. package/ReadMe.md +2 -0
  314. package/ReadMe.md.meta +7 -0
  315. package/Runtime/Demos/APM/APMDemo.unity +2375 -0
  316. package/Runtime/Demos/APM/APMDemo.unity.meta +7 -0
  317. package/Runtime/Demos/APM/APMDemoManager.cs +105 -0
  318. package/Runtime/Demos/APM/APMDemoManager.cs.meta +11 -0
  319. package/Runtime/Demos/APM/APMDemoUIView.cs +76 -0
  320. package/Runtime/Demos/APM/APMDemoUIView.cs.meta +11 -0
  321. package/Runtime/Demos/APM.meta +8 -0
  322. package/Runtime/Demos/Account/AccountDemo.unity +1255 -0
  323. package/Runtime/Demos/Account/AccountDemo.unity.meta +7 -0
  324. package/Runtime/Demos/Account/AccountDemoManager.cs +79 -0
  325. package/Runtime/Demos/Account/AccountDemoManager.cs.meta +11 -0
  326. package/Runtime/Demos/Account/AccountUIView.cs +72 -0
  327. package/Runtime/Demos/Account/AccountUIView.cs.meta +11 -0
  328. package/Runtime/Demos/Account.meta +8 -0
  329. package/Runtime/Demos/Ads/AdsDemo.unity +2332 -0
  330. package/Runtime/Demos/Ads/AdsDemo.unity.meta +7 -0
  331. package/Runtime/Demos/Ads/AdsDemoManager.cs +257 -0
  332. package/Runtime/Demos/Ads/AdsDemoManager.cs.meta +11 -0
  333. package/Runtime/Demos/Ads/AdsUIView.cs +87 -0
  334. package/Runtime/Demos/Ads/AdsUIView.cs.meta +11 -0
  335. package/Runtime/Demos/Ads/InstallReferrer/Demo.unity +344 -0
  336. package/Runtime/Demos/Ads/InstallReferrer/Demo.unity.meta +7 -0
  337. package/Runtime/Demos/Ads/InstallReferrer/InstallReferrerDemo.cs +55 -0
  338. package/Runtime/Demos/Ads/InstallReferrer/InstallReferrerDemo.cs.meta +11 -0
  339. package/Runtime/Demos/Ads/InstallReferrer.meta +8 -0
  340. package/Runtime/Demos/Ads.meta +8 -0
  341. package/Runtime/Demos/Analytics/AnalyticsDemo.unity +1918 -0
  342. package/Runtime/Demos/Analytics/AnalyticsDemo.unity.meta +11 -0
  343. package/Runtime/Demos/Analytics/AnalyticsDemoManager.cs +46 -0
  344. package/Runtime/Demos/Analytics/AnalyticsDemoManager.cs.meta +11 -0
  345. package/Runtime/Demos/Analytics/AnalyticsUIView.cs +49 -0
  346. package/Runtime/Demos/Analytics/AnalyticsUIView.cs.meta +11 -0
  347. package/Runtime/Demos/Analytics.meta +8 -0
  348. package/Runtime/Demos/AppLinking/AppLinkingDemo.cs +144 -0
  349. package/Runtime/Demos/AppLinking/AppLinkingDemo.cs.meta +11 -0
  350. package/Runtime/Demos/AppLinking/AppLinkingDemo.unity +1709 -0
  351. package/Runtime/Demos/AppLinking/AppLinkingDemo.unity.meta +7 -0
  352. package/Runtime/Demos/AppLinking/AppLinkingUIView.cs +108 -0
  353. package/Runtime/Demos/AppLinking/AppLinkingUIView.cs.meta +11 -0
  354. package/Runtime/Demos/AppLinking.meta +8 -0
  355. package/Runtime/Demos/AppMessaging/AppMessaging.unity +541 -0
  356. package/Runtime/Demos/AppMessaging/AppMessaging.unity.meta +7 -0
  357. package/Runtime/Demos/AppMessaging/AppMessagingDemoManager.cs +28 -0
  358. package/Runtime/Demos/AppMessaging/AppMessagingDemoManager.cs.meta +11 -0
  359. package/Runtime/Demos/AppMessaging.meta +8 -0
  360. package/Runtime/Demos/AuthService/AuthServiceDemo.cs +204 -0
  361. package/Runtime/Demos/AuthService/AuthServiceDemo.cs.meta +11 -0
  362. package/Runtime/Demos/AuthService/AuthServiceDemo.unity +5006 -0
  363. package/Runtime/Demos/AuthService/AuthServiceDemo.unity.meta +7 -0
  364. package/Runtime/Demos/AuthService.meta +8 -0
  365. package/Runtime/Demos/CloudDB/CloudDBDemo.cs +348 -0
  366. package/Runtime/Demos/CloudDB/CloudDBDemo.cs.meta +11 -0
  367. package/Runtime/Demos/CloudDB/CloudDBDemo.unity +3420 -0
  368. package/Runtime/Demos/CloudDB/CloudDBDemo.unity.meta +7 -0
  369. package/Runtime/Demos/CloudDB/CloudDBDemoUIView.cs +180 -0
  370. package/Runtime/Demos/CloudDB/CloudDBDemoUIView.cs.meta +11 -0
  371. package/Runtime/Demos/CloudDB.meta +8 -0
  372. package/Runtime/Demos/CloudStorage/CloudStorageDemo.cs +201 -0
  373. package/Runtime/Demos/CloudStorage/CloudStorageDemo.cs.meta +11 -0
  374. package/Runtime/Demos/CloudStorage/CloudStorageDemo.unity +2074 -0
  375. package/Runtime/Demos/CloudStorage/CloudStorageDemo.unity.meta +7 -0
  376. package/Runtime/Demos/CloudStorage.meta +8 -0
  377. package/Runtime/Demos/CrashKit/CrashDemo.unity +1455 -0
  378. package/Runtime/Demos/CrashKit/CrashDemo.unity.meta +7 -0
  379. package/Runtime/Demos/CrashKit/CrashDemoManager.cs +50 -0
  380. package/Runtime/Demos/CrashKit/CrashDemoManager.cs.meta +11 -0
  381. package/Runtime/Demos/CrashKit/CrashDemoView.cs +64 -0
  382. package/Runtime/Demos/CrashKit/CrashDemoView.cs.meta +11 -0
  383. package/Runtime/Demos/CrashKit.meta +8 -0
  384. package/Runtime/Demos/DriveKit/DriveDemoManager.cs +135 -0
  385. package/Runtime/Demos/DriveKit/DriveDemoManager.cs.meta +11 -0
  386. package/Runtime/Demos/DriveKit/DriveDemoView.cs +90 -0
  387. package/Runtime/Demos/DriveKit/DriveDemoView.cs.meta +11 -0
  388. package/Runtime/Demos/DriveKit/DriveKitDemo.unity +1791 -0
  389. package/Runtime/Demos/DriveKit/DriveKitDemo.unity.meta +7 -0
  390. package/Runtime/Demos/DriveKit.meta +8 -0
  391. package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemo.unity +813 -0
  392. package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemo.unity.meta +7 -0
  393. package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemoManager.cs +127 -0
  394. package/Runtime/Demos/Game/GameAddictionPreventionDemo/GameAddictionPreventionDemoManager.cs.meta +11 -0
  395. package/Runtime/Demos/Game/GameAddictionPreventionDemo.meta +8 -0
  396. package/Runtime/Demos/Game/GameDemo.unity +3107 -0
  397. package/Runtime/Demos/Game/GameDemo.unity.meta +7 -0
  398. package/Runtime/Demos/Game/GameDemoManager.cs +347 -0
  399. package/Runtime/Demos/Game/GameDemoManager.cs.meta +11 -0
  400. package/Runtime/Demos/Game/GameDemoUIView.cs +92 -0
  401. package/Runtime/Demos/Game/GameDemoUIView.cs.meta +11 -0
  402. package/Runtime/Demos/Game.meta +8 -0
  403. package/Runtime/Demos/IAP/IAPDemoUIView.cs +114 -0
  404. package/Runtime/Demos/IAP/IAPDemoUIView.cs.meta +11 -0
  405. package/Runtime/Demos/IAP/IapDemo.unity +4418 -0
  406. package/Runtime/Demos/IAP/IapDemo.unity.meta +7 -0
  407. package/Runtime/Demos/IAP/IapDemoManager.cs +157 -0
  408. package/Runtime/Demos/IAP/IapDemoManager.cs.meta +11 -0
  409. package/Runtime/Demos/IAP/Second Demo-Menu_Store/MainMenuManager.cs +200 -0
  410. package/Runtime/Demos/IAP/Second Demo-Menu_Store/MainMenuManager.cs.meta +11 -0
  411. package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene0_MainMenu.unity +2109 -0
  412. package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene0_MainMenu.unity.meta +7 -0
  413. package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene1_Store.unity +6210 -0
  414. package/Runtime/Demos/IAP/Second Demo-Menu_Store/Scene1_Store.unity.meta +7 -0
  415. package/Runtime/Demos/IAP/Second Demo-Menu_Store/StoreManager.cs +145 -0
  416. package/Runtime/Demos/IAP/Second Demo-Menu_Store/StoreManager.cs.meta +11 -0
  417. package/Runtime/Demos/IAP/Second Demo-Menu_Store.meta +8 -0
  418. package/Runtime/Demos/IAP/UnityDemo/UnityIAPDemoUIView.cs +96 -0
  419. package/Runtime/Demos/IAP/UnityDemo/UnityIAPDemoUIView.cs.meta +11 -0
  420. package/Runtime/Demos/IAP/UnityDemo/UnityIapDemo.unity +3930 -0
  421. package/Runtime/Demos/IAP/UnityDemo/UnityIapDemo.unity.meta +7 -0
  422. package/Runtime/Demos/IAP/UnityDemo/UnityIapDemoManager.cs +151 -0
  423. package/Runtime/Demos/IAP/UnityDemo/UnityIapDemoManager.cs.meta +11 -0
  424. package/Runtime/Demos/IAP/UnityDemo.meta +8 -0
  425. package/Runtime/Demos/IAP.meta +8 -0
  426. package/Runtime/Demos/InAppComment/InAppCommentDemo.cs +71 -0
  427. package/Runtime/Demos/InAppComment/InAppCommentDemo.cs.meta +11 -0
  428. package/Runtime/Demos/InAppComment/InAppCommentDemo.unity +759 -0
  429. package/Runtime/Demos/InAppComment/InAppCommentDemo.unity.meta +7 -0
  430. package/Runtime/Demos/InAppComment.meta +8 -0
  431. package/Runtime/Demos/Location/ActivityIdentificationDemo.cs +209 -0
  432. package/Runtime/Demos/Location/ActivityIdentificationDemo.cs.meta +11 -0
  433. package/Runtime/Demos/Location/FusedLocationDemo.cs +154 -0
  434. package/Runtime/Demos/Location/FusedLocationDemo.cs.meta +11 -0
  435. package/Runtime/Demos/Location/GeocodingDemo.cs +94 -0
  436. package/Runtime/Demos/Location/GeocodingDemo.cs.meta +11 -0
  437. package/Runtime/Demos/Location/GeofenceDemo.cs +180 -0
  438. package/Runtime/Demos/Location/GeofenceDemo.cs.meta +11 -0
  439. package/Runtime/Demos/Location/LocationDemo.unity +5912 -0
  440. package/Runtime/Demos/Location/LocationDemo.unity.meta +7 -0
  441. package/Runtime/Demos/Location/LocationDemoManager.cs +49 -0
  442. package/Runtime/Demos/Location/LocationDemoManager.cs.meta +11 -0
  443. package/Runtime/Demos/Location.meta +8 -0
  444. package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionDemoManager.cs +199 -0
  445. package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionDemoManager.cs.meta +11 -0
  446. package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionManager.unity +2097 -0
  447. package/Runtime/Demos/ML/LanguageDetection/LanguageDetectionManager.unity.meta +7 -0
  448. package/Runtime/Demos/ML/LanguageDetection.meta +8 -0
  449. package/Runtime/Demos/ML/MLKitDemo.unity +20214 -0
  450. package/Runtime/Demos/ML/MLKitDemo.unity.meta +7 -0
  451. package/Runtime/Demos/ML/MlKitDemoManager.cs +89 -0
  452. package/Runtime/Demos/ML/MlKitDemoManager.cs.meta +11 -0
  453. package/Runtime/Demos/ML/TextRecognition/TextRecognition.unity +3948 -0
  454. package/Runtime/Demos/ML/TextRecognition/TextRecognition.unity.meta +7 -0
  455. package/Runtime/Demos/ML/TextRecognition/TextRecognitionDemoManager.cs +200 -0
  456. package/Runtime/Demos/ML/TextRecognition/TextRecognitionDemoManager.cs.meta +11 -0
  457. package/Runtime/Demos/ML/TextRecognition.meta +8 -0
  458. package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemo.unity +7398 -0
  459. package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemo.unity.meta +7 -0
  460. package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemoManager.cs +209 -0
  461. package/Runtime/Demos/ML/TextToSpeechDemo/TextToSpeechDemoManager.cs.meta +11 -0
  462. package/Runtime/Demos/ML/TextToSpeechDemo.meta +8 -0
  463. package/Runtime/Demos/ML/Translate/TranslateDemo.unity +5231 -0
  464. package/Runtime/Demos/ML/Translate/TranslateDemo.unity.meta +7 -0
  465. package/Runtime/Demos/ML/Translate/TranslateDemoManager.cs +275 -0
  466. package/Runtime/Demos/ML/Translate/TranslateDemoManager.cs.meta +11 -0
  467. package/Runtime/Demos/ML/Translate.meta +8 -0
  468. package/Runtime/Demos/ML.meta +8 -0
  469. package/Runtime/Demos/Modeling3D/Modeling3dDemo.unity +4130 -0
  470. package/Runtime/Demos/Modeling3D/Modeling3dDemo.unity.meta +7 -0
  471. package/Runtime/Demos/Modeling3D/Modeling3dDemoManager.cs +382 -0
  472. package/Runtime/Demos/Modeling3D/Modeling3dDemoManager.cs.meta +11 -0
  473. package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemo.unity +1788 -0
  474. package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemo.unity.meta +7 -0
  475. package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemoManager.cs +157 -0
  476. package/Runtime/Demos/Modeling3D/Modeling3dMeterialDemoManager.cs.meta +11 -0
  477. package/Runtime/Demos/Modeling3D/ProgressBar.cs +36 -0
  478. package/Runtime/Demos/Modeling3D/ProgressBar.cs.meta +11 -0
  479. package/Runtime/Demos/Modeling3D/TaskListDisplay.cs +101 -0
  480. package/Runtime/Demos/Modeling3D/TaskListDisplay.cs.meta +11 -0
  481. package/Runtime/Demos/Modeling3D.meta +8 -0
  482. package/Runtime/Demos/NearbyService/Nearby.unity +1563 -0
  483. package/Runtime/Demos/NearbyService/Nearby.unity.meta +7 -0
  484. package/Runtime/Demos/NearbyService/NearbyDemoManager.cs +192 -0
  485. package/Runtime/Demos/NearbyService/NearbyDemoManager.cs.meta +11 -0
  486. package/Runtime/Demos/NearbyService/NearbyDemoUIView.cs +73 -0
  487. package/Runtime/Demos/NearbyService/NearbyDemoUIView.cs.meta +11 -0
  488. package/Runtime/Demos/NearbyService.meta +8 -0
  489. package/Runtime/Demos/Push/PushDemo.unity +720 -0
  490. package/Runtime/Demos/Push/PushDemo.unity.meta +7 -0
  491. package/Runtime/Demos/Push/PushDemoManager.cs +123 -0
  492. package/Runtime/Demos/Push/PushDemoManager.cs.meta +11 -0
  493. package/Runtime/Demos/Push.meta +8 -0
  494. package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.cs +120 -0
  495. package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.cs.meta +11 -0
  496. package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.unity +2259 -0
  497. package/Runtime/Demos/RemoteConfig/RemoteConfigDemo.unity.meta +7 -0
  498. package/Runtime/Demos/RemoteConfig/RemoteConfigUIView.cs +109 -0
  499. package/Runtime/Demos/RemoteConfig/RemoteConfigUIView.cs.meta +11 -0
  500. package/Runtime/Demos/RemoteConfig.meta +8 -0
  501. package/Runtime/Demos/Scan/ScanKitDemo.cs +69 -0
  502. package/Runtime/Demos/Scan/ScanKitDemo.cs.meta +11 -0
  503. package/Runtime/Demos/Scan/ScanKitDemo.unity +803 -0
  504. package/Runtime/Demos/Scan/ScanKitDemo.unity.meta +7 -0
  505. package/Runtime/Demos/Scan/ScanKitUIView.cs +38 -0
  506. package/Runtime/Demos/Scan/ScanKitUIView.cs.meta +11 -0
  507. package/Runtime/Demos/Scan.meta +8 -0
  508. package/Runtime/Demos.meta +8 -0
  509. package/Runtime/Dlls/EPPlus.dll +0 -0
  510. package/Runtime/Dlls/EPPlus.dll.meta +69 -0
  511. package/Runtime/Dlls/HuaweiMobileServices.dll +0 -0
  512. package/Runtime/Dlls/HuaweiMobileServices.dll.meta +38 -0
  513. package/Runtime/Dlls/HuaweiMobileServices.pdb +0 -0
  514. package/Runtime/Dlls/HuaweiMobileServices.pdb.meta +7 -0
  515. package/Runtime/Dlls/link.xml +5 -0
  516. package/Runtime/Dlls/link.xml.meta +7 -0
  517. package/Runtime/Dlls.meta +8 -0
  518. package/Runtime/HuaweiMobileServices.Core.asmdef +16 -0
  519. package/Runtime/HuaweiMobileServices.Core.asmdef.meta +7 -0
  520. package/Runtime/Plugins/Android/BookInfo.java +100 -0
  521. package/Runtime/Plugins/Android/BookInfo.java.meta +32 -0
  522. package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/AndroidManifest.xml +13 -0
  523. package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/build.gradle +31 -0
  524. package/Runtime/Plugins/Android/HMSUnityPushKit.plugin/project.properties +2 -0
  525. package/Runtime/Plugins/Android/HMSUnityPushKit.plugin.meta +80 -0
  526. package/Runtime/Plugins/Android/ObjectTypeInfoHelper.java +33 -0
  527. package/Runtime/Plugins/Android/ObjectTypeInfoHelper.java.meta +32 -0
  528. package/Runtime/Plugins/Android/app-debug.aar +0 -0
  529. package/Runtime/Plugins/Android/app-debug.aar.meta +32 -0
  530. package/Runtime/Plugins/Android/hmsLauncherTemplate.gradle +32 -0
  531. package/Runtime/Plugins/Android/hmsLauncherTemplate.gradle.meta +7 -0
  532. package/Runtime/Plugins/Android/hmsMainTemplate.gradle +13 -0
  533. package/Runtime/Plugins/Android/hmsMainTemplate.gradle.meta +7 -0
  534. package/Runtime/Plugins/Android.meta +8 -0
  535. package/Runtime/Plugins.meta +8 -0
  536. package/Runtime/Prefabs/HuaweiIDButton.prefab +355 -0
  537. package/Runtime/Prefabs/HuaweiIDButton.prefab.meta +7 -0
  538. package/Runtime/Prefabs/HuaweiIDCircleButton.prefab +274 -0
  539. package/Runtime/Prefabs/HuaweiIDCircleButton.prefab.meta +7 -0
  540. package/Runtime/Prefabs/Modeling3DTaskListItem.prefab +1881 -0
  541. package/Runtime/Prefabs/Modeling3DTaskListItem.prefab.meta +7 -0
  542. package/Runtime/Prefabs/SplashAdPreview.prefab +591 -0
  543. package/Runtime/Prefabs/SplashAdPreview.prefab.meta +7 -0
  544. package/Runtime/Prefabs/native_large_image.prefab +1172 -0
  545. package/Runtime/Prefabs/native_large_image.prefab.meta +7 -0
  546. package/Runtime/Prefabs.meta +8 -0
  547. package/Runtime/Resources/Huawei/CircleCorner.png +0 -0
  548. package/Runtime/Resources/Huawei/CircleCorner.png.meta +135 -0
  549. package/Runtime/Resources/Huawei/Huawei-White.png +0 -0
  550. package/Runtime/Resources/Huawei/Huawei-White.png.meta +135 -0
  551. package/Runtime/Resources/Huawei/RoundedCorner.png +0 -0
  552. package/Runtime/Resources/Huawei/RoundedCorner.png.meta +135 -0
  553. package/Runtime/Resources/Huawei.meta +8 -0
  554. package/Runtime/Resources/close.png +0 -0
  555. package/Runtime/Resources/close.png.meta +116 -0
  556. package/Runtime/Resources/coins100.png +0 -0
  557. package/Runtime/Resources/coins100.png.meta +121 -0
  558. package/Runtime/Resources/coins1000.png +0 -0
  559. package/Runtime/Resources/coins1000.png.meta +121 -0
  560. package/Runtime/Resources/info.png +0 -0
  561. package/Runtime/Resources/info.png.meta +116 -0
  562. package/Runtime/Resources/no_ads.png +0 -0
  563. package/Runtime/Resources/no_ads.png.meta +135 -0
  564. package/Runtime/Resources/premium.png +0 -0
  565. package/Runtime/Resources/premium.png.meta +135 -0
  566. package/Runtime/Resources/xml/remoteConfig.xml +5 -0
  567. package/Runtime/Resources/xml/remoteConfig.xml.meta +7 -0
  568. package/Runtime/Resources/xml.meta +8 -0
  569. package/Runtime/Resources.meta +8 -0
  570. package/Runtime/Scripts/APM/HMSAPMManager.cs +31 -0
  571. package/Runtime/Scripts/APM/HMSAPMManager.cs.meta +11 -0
  572. package/Runtime/Scripts/APM.meta +8 -0
  573. package/Runtime/Scripts/Account/HMSAccountKitManager.cs +194 -0
  574. package/Runtime/Scripts/Account/HMSAccountKitManager.cs.meta +11 -0
  575. package/Runtime/Scripts/Account.meta +8 -0
  576. package/Runtime/Scripts/Ads/HMSAdsKitManager.cs +977 -0
  577. package/Runtime/Scripts/Ads/HMSAdsKitManager.cs.meta +11 -0
  578. package/Runtime/Scripts/Ads/LargeImageNative.cs +166 -0
  579. package/Runtime/Scripts/Ads/LargeImageNative.cs.meta +11 -0
  580. package/Runtime/Scripts/Ads.meta +8 -0
  581. package/Runtime/Scripts/Analytics/HMSAnalyticsKitManager.cs +98 -0
  582. package/Runtime/Scripts/Analytics/HMSAnalyticsKitManager.cs.meta +11 -0
  583. package/Runtime/Scripts/Analytics.meta +8 -0
  584. package/Runtime/Scripts/AppMessaging/HMSAppMessagingManager.cs +60 -0
  585. package/Runtime/Scripts/AppMessaging/HMSAppMessagingManager.cs.meta +11 -0
  586. package/Runtime/Scripts/AppMessaging.meta +8 -0
  587. package/Runtime/Scripts/AuthService/HMSAuthServiceManager.cs +142 -0
  588. package/Runtime/Scripts/AuthService/HMSAuthServiceManager.cs.meta +11 -0
  589. package/Runtime/Scripts/AuthService.meta +8 -0
  590. package/Runtime/Scripts/CloudDB/BookInfo.cs +58 -0
  591. package/Runtime/Scripts/CloudDB/BookInfo.cs.meta +11 -0
  592. package/Runtime/Scripts/CloudDB/HMSCloudDBManager.cs +343 -0
  593. package/Runtime/Scripts/CloudDB/HMSCloudDBManager.cs.meta +11 -0
  594. package/Runtime/Scripts/CloudDB.meta +8 -0
  595. package/Runtime/Scripts/CloudStorage/HMSCloudStorageManager.cs +349 -0
  596. package/Runtime/Scripts/CloudStorage/HMSCloudStorageManager.cs.meta +11 -0
  597. package/Runtime/Scripts/CloudStorage.meta +8 -0
  598. package/Runtime/Scripts/Crash/HMSCrashManager.cs +61 -0
  599. package/Runtime/Scripts/Crash/HMSCrashManager.cs.meta +11 -0
  600. package/Runtime/Scripts/Crash.meta +8 -0
  601. package/Runtime/Scripts/Drive/CredentialManager.cs +55 -0
  602. package/Runtime/Scripts/Drive/CredentialManager.cs.meta +11 -0
  603. package/Runtime/Scripts/Drive/HMSDriveKitManager.cs +248 -0
  604. package/Runtime/Scripts/Drive/HMSDriveKitManager.cs.meta +11 -0
  605. package/Runtime/Scripts/Drive.meta +8 -0
  606. package/Runtime/Scripts/Game/HMSAchievementsEntry.cs +14 -0
  607. package/Runtime/Scripts/Game/HMSAchievementsEntry.cs.meta +11 -0
  608. package/Runtime/Scripts/Game/HMSAchievementsManager.cs +147 -0
  609. package/Runtime/Scripts/Game/HMSAchievementsManager.cs.meta +11 -0
  610. package/Runtime/Scripts/Game/HMSGameServiceManager.cs +314 -0
  611. package/Runtime/Scripts/Game/HMSGameServiceManager.cs.meta +11 -0
  612. package/Runtime/Scripts/Game/HMSLeaderboardEntry.cs +14 -0
  613. package/Runtime/Scripts/Game/HMSLeaderboardEntry.cs.meta +11 -0
  614. package/Runtime/Scripts/Game/HMSLeaderboardManager.cs +272 -0
  615. package/Runtime/Scripts/Game/HMSLeaderboardManager.cs.meta +11 -0
  616. package/Runtime/Scripts/Game/HMSSaveGameManager.cs +236 -0
  617. package/Runtime/Scripts/Game/HMSSaveGameManager.cs.meta +11 -0
  618. package/Runtime/Scripts/Game.meta +8 -0
  619. package/Runtime/Scripts/IAP/HMSIAPManager.cs +715 -0
  620. package/Runtime/Scripts/IAP/HMSIAPManager.cs.meta +11 -0
  621. package/Runtime/Scripts/IAP/HMSIAPProductType.cs +21 -0
  622. package/Runtime/Scripts/IAP/HMSIAPProductType.cs.meta +11 -0
  623. package/Runtime/Scripts/IAP/UnityPurchase/HuaweiPurchasingModule.cs +28 -0
  624. package/Runtime/Scripts/IAP/UnityPurchase/HuaweiPurchasingModule.cs.meta +11 -0
  625. package/Runtime/Scripts/IAP/UnityPurchase/HuaweiStore.cs +305 -0
  626. package/Runtime/Scripts/IAP/UnityPurchase/HuaweiStore.cs.meta +11 -0
  627. package/Runtime/Scripts/IAP/UnityPurchase.meta +8 -0
  628. package/Runtime/Scripts/IAP.meta +8 -0
  629. package/Runtime/Scripts/Location/GeofenceReceiver.cs +29 -0
  630. package/Runtime/Scripts/Location/GeofenceReceiver.cs.meta +11 -0
  631. package/Runtime/Scripts/Location/HMSLocationManager.cs +96 -0
  632. package/Runtime/Scripts/Location/HMSLocationManager.cs.meta +11 -0
  633. package/Runtime/Scripts/Location/LocationReceiver.cs +40 -0
  634. package/Runtime/Scripts/Location/LocationReceiver.cs.meta +11 -0
  635. package/Runtime/Scripts/Location.meta +8 -0
  636. package/Runtime/Scripts/ML/LangDetector/HMSMLLanguageDetectionManager.cs +180 -0
  637. package/Runtime/Scripts/ML/LangDetector/HMSMLLanguageDetectionManager.cs.meta +11 -0
  638. package/Runtime/Scripts/ML/LangDetector.meta +8 -0
  639. package/Runtime/Scripts/ML/MLDownloadListenerManager.cs +17 -0
  640. package/Runtime/Scripts/ML/MLDownloadListenerManager.cs.meta +11 -0
  641. package/Runtime/Scripts/ML/TextRecognition/HMSMLTextRecognitionKitManager.cs +163 -0
  642. package/Runtime/Scripts/ML/TextRecognition/HMSMLTextRecognitionKitManager.cs.meta +11 -0
  643. package/Runtime/Scripts/ML/TextRecognition.meta +8 -0
  644. package/Runtime/Scripts/ML/TextToSpeech/HMSMLTextToSpeechKitManager.cs +276 -0
  645. package/Runtime/Scripts/ML/TextToSpeech/HMSMLTextToSpeechKitManager.cs.meta +11 -0
  646. package/Runtime/Scripts/ML/TextToSpeech/MLTextToSpeechListenerManager.cs +94 -0
  647. package/Runtime/Scripts/ML/TextToSpeech/MLTextToSpeechListenerManager.cs.meta +11 -0
  648. package/Runtime/Scripts/ML/TextToSpeech.meta +8 -0
  649. package/Runtime/Scripts/ML/Translate/HMSMLTranslateKitManager.cs +203 -0
  650. package/Runtime/Scripts/ML/Translate/HMSMLTranslateKitManager.cs.meta +11 -0
  651. package/Runtime/Scripts/ML/Translate.meta +8 -0
  652. package/Runtime/Scripts/ML.meta +8 -0
  653. package/Runtime/Scripts/Modeling3D/HMSModeling3dKitManager.cs +557 -0
  654. package/Runtime/Scripts/Modeling3D/HMSModeling3dKitManager.cs.meta +11 -0
  655. package/Runtime/Scripts/Modeling3D/Modeling3dDTO.cs +38 -0
  656. package/Runtime/Scripts/Modeling3D/Modeling3dDTO.cs.meta +11 -0
  657. package/Runtime/Scripts/Modeling3D/Modeling3dListenerManager.cs +172 -0
  658. package/Runtime/Scripts/Modeling3D/Modeling3dListenerManager.cs.meta +11 -0
  659. package/Runtime/Scripts/Modeling3D.meta +8 -0
  660. package/Runtime/Scripts/NearbyService/HMSNearbyServiceManager.cs +80 -0
  661. package/Runtime/Scripts/NearbyService/HMSNearbyServiceManager.cs.meta +11 -0
  662. package/Runtime/Scripts/NearbyService.meta +8 -0
  663. package/Runtime/Scripts/Push/HMSPushKitManager.cs +134 -0
  664. package/Runtime/Scripts/Push/HMSPushKitManager.cs.meta +11 -0
  665. package/Runtime/Scripts/Push.meta +8 -0
  666. package/Runtime/Scripts/RemoteConfig/HMSRemoteConfigManager.cs +157 -0
  667. package/Runtime/Scripts/RemoteConfig/HMSRemoteConfigManager.cs.meta +11 -0
  668. package/Runtime/Scripts/RemoteConfig.meta +8 -0
  669. package/Runtime/Scripts/Scan/HMSScanKitManager.cs +60 -0
  670. package/Runtime/Scripts/Scan/HMSScanKitManager.cs.meta +11 -0
  671. package/Runtime/Scripts/Scan.meta +8 -0
  672. package/Runtime/Scripts/Settings/HMSAchievementsSettings.cs +37 -0
  673. package/Runtime/Scripts/Settings/HMSAchievementsSettings.cs.meta +11 -0
  674. package/Runtime/Scripts/Settings/HMSAdsKitSettings.cs +56 -0
  675. package/Runtime/Scripts/Settings/HMSAdsKitSettings.cs.meta +11 -0
  676. package/Runtime/Scripts/Settings/HMSConnectAPISettings.cs +44 -0
  677. package/Runtime/Scripts/Settings/HMSConnectAPISettings.cs.meta +11 -0
  678. package/Runtime/Scripts/Settings/HMSGameServiceSettings.cs +40 -0
  679. package/Runtime/Scripts/Settings/HMSGameServiceSettings.cs.meta +11 -0
  680. package/Runtime/Scripts/Settings/HMSIAPKitSettings.cs +37 -0
  681. package/Runtime/Scripts/Settings/HMSIAPKitSettings.cs.meta +11 -0
  682. package/Runtime/Scripts/Settings/HMSIAPProductListSettings.cs +74 -0
  683. package/Runtime/Scripts/Settings/HMSIAPProductListSettings.cs.meta +11 -0
  684. package/Runtime/Scripts/Settings/HMSLeaderboardSettings.cs +37 -0
  685. package/Runtime/Scripts/Settings/HMSLeaderboardSettings.cs.meta +11 -0
  686. package/Runtime/Scripts/Settings/HMSMLKitSettings.cs +42 -0
  687. package/Runtime/Scripts/Settings/HMSMLKitSettings.cs.meta +11 -0
  688. package/Runtime/Scripts/Settings/HMSMainEditorSettings.cs +38 -0
  689. package/Runtime/Scripts/Settings/HMSMainEditorSettings.cs.meta +11 -0
  690. package/Runtime/Scripts/Settings/HMSModelingKitSettings.cs +38 -0
  691. package/Runtime/Scripts/Settings/HMSModelingKitSettings.cs.meta +11 -0
  692. package/Runtime/Scripts/Settings/HMSPluginSettings.cs +37 -0
  693. package/Runtime/Scripts/Settings/HMSPluginSettings.cs.meta +11 -0
  694. package/Runtime/Scripts/Settings/HMSRemoteConfigSettings.cs +40 -0
  695. package/Runtime/Scripts/Settings/HMSRemoteConfigSettings.cs.meta +11 -0
  696. package/Runtime/Scripts/Settings/HMSRemoteDefaultValueSettings.cs +53 -0
  697. package/Runtime/Scripts/Settings/HMSRemoteDefaultValueSettings.cs.meta +11 -0
  698. package/Runtime/Scripts/Settings/Settings.cs +75 -0
  699. package/Runtime/Scripts/Settings/Settings.cs.meta +11 -0
  700. package/Runtime/Scripts/Settings/SettingsScriptableObject.cs +14 -0
  701. package/Runtime/Scripts/Settings/SettingsScriptableObject.cs.meta +11 -0
  702. package/Runtime/Scripts/Settings.meta +8 -0
  703. package/Runtime/Scripts/Utils/HMSExceptionHandler.cs +120 -0
  704. package/Runtime/Scripts/Utils/HMSExceptionHandler.cs.meta +11 -0
  705. package/Runtime/Scripts/Utils/HMSManagerStart.cs +36 -0
  706. package/Runtime/Scripts/Utils/HMSManagerStart.cs.meta +11 -0
  707. package/Runtime/Scripts/Utils/HMSSafeArea.cs +63 -0
  708. package/Runtime/Scripts/Utils/HMSSafeArea.cs.meta +11 -0
  709. package/Runtime/Scripts/Utils/HMSSingleton.cs +56 -0
  710. package/Runtime/Scripts/Utils/HMSSingleton.cs.meta +11 -0
  711. package/Runtime/Scripts/Utils/HMSSplashAdPreview.cs +37 -0
  712. package/Runtime/Scripts/Utils/HMSSplashAdPreview.cs.meta +11 -0
  713. package/Runtime/Scripts/Utils/HuaweiConstants.cs +204 -0
  714. package/Runtime/Scripts/Utils/HuaweiConstants.cs.meta +11 -0
  715. package/Runtime/Scripts/Utils/JsonHelper.cs +23 -0
  716. package/Runtime/Scripts/Utils/JsonHelper.cs.meta +11 -0
  717. package/Runtime/Scripts/Utils/PlayerPrefsJsonDatabase.cs +130 -0
  718. package/Runtime/Scripts/Utils/PlayerPrefsJsonDatabase.cs.meta +11 -0
  719. package/Runtime/Scripts/Utils/ScriptableHelper.cs +58 -0
  720. package/Runtime/Scripts/Utils/ScriptableHelper.cs.meta +11 -0
  721. package/Runtime/Scripts/Utils/SerializableDictionary.cs +129 -0
  722. package/Runtime/Scripts/Utils/SerializableDictionary.cs.meta +11 -0
  723. package/Runtime/Scripts/Utils.meta +8 -0
  724. package/Runtime/Scripts.meta +8 -0
  725. package/Runtime/Settings/Resources.meta +8 -0
  726. package/Runtime/Settings.meta +8 -0
  727. package/Runtime/VERSION +1 -0
  728. package/Runtime/VERSION.meta +7 -0
  729. package/Runtime.meta +8 -0
  730. package/package.json +13 -0
  731. package/package.json.meta +7 -0
@@ -0,0 +1,314 @@
1
+ using HuaweiMobileServices.Base;
2
+ using HuaweiMobileServices.Game;
3
+ using HuaweiMobileServices.Id;
4
+ using HuaweiMobileServices.Utils;
5
+ using System;
6
+ using UnityEngine;
7
+ using static HuaweiConstants.HMSResponses;
8
+
9
+ namespace HmsPlugin
10
+ {
11
+ public class HMSGameServiceManager : HMSManagerSingleton<HMSGameServiceManager>, ICheckUpdateCallback
12
+ {
13
+ private const string TAG = "[HMS] HMSGameServiceManager";
14
+ public Action<Player> OnGetPlayerInfoSuccess { get; set; }
15
+ public Action<HMSException> OnGetPlayerInfoFailure { get; set; }
16
+ public Action<string> OnSubmitPlayerEventSuccess { get; set; }
17
+ public Action<HMSException> OnSubmitPlayerEventFailure { get; set; }
18
+ public Action<PlayerExtraInfo> OnGetPlayerExtraInfoSuccess { get; set; }
19
+ public Action<HMSException> OnGetPlayerExtraInfoFailure { get; set; }
20
+ public Action<AuthAccount> SignInSuccess { get; set; }
21
+ public Action<HMSException> SignInFailure { get; set; }
22
+ public Action<OnAppUpdateInfoRes> OnAppUpdateInfo { get; set; }
23
+ public Action<int> OnGetUserPlayStateSuccess { get; set; }
24
+ public Action<HMSException> OnGetUserPlayStateFailure { get; set; }
25
+ public Action<bool> OnIsAllowContinuePlayGamesSuccess { get; set; }
26
+ public Action<HMSException> OnIsAllowContinuePlayGamesFailure { get; set; }
27
+ public Action<HuaweiMobileServices.Utils.Void> GameInitSuccess { get; set; }
28
+
29
+ private AccountAuthService authService;
30
+ private AccountAuthParams authParams;
31
+ private IBuoyClient buoyClient;
32
+ private IPlayersClient playersClient;
33
+ private IArchivesClient archivesClient;
34
+ private IAppUpdateClient appUpdateClient;
35
+
36
+ private bool forceUpdate;
37
+ private bool showUpdateDialog;
38
+
39
+ public HMSGameServiceManager()
40
+ {
41
+ HMSManagerStart.Start(OnAwake, TAG);
42
+ }
43
+
44
+ private void OnAwake()
45
+ {
46
+ HuaweiMobileServicesUtil.SetApplication();
47
+ if (HMSGameServiceSettings.Instance.Settings.GetBool(HMSGameServiceSettings.InitializeOnStart))
48
+ Init();
49
+ else
50
+ Debug.LogWarning($"{TAG} initOnStart is disable for GameService. Are you getting init first error? Call HMSGameServiceManager.Instance.Init() by yourself.");
51
+ }
52
+
53
+ public void Init(IAntiAddictionCallback antiAddictionCallback = null, AuthAccount authAccount = null)
54
+ {
55
+ Debug.Log($"{TAG}: HMS GAMES init");
56
+
57
+ if (authAccount != null)
58
+ {
59
+ archivesClient = HMSSaveGameManager.Instance.GetArchivesClient();
60
+ InitJosApps(authAccount, antiAddictionCallback);
61
+ return;
62
+ }
63
+ authService = HMSAccountKitManager.Instance.GetGameAuthService();
64
+ ITask<AuthAccount> taskAuthHuaweiId = authService.SilentSignIn();
65
+ taskAuthHuaweiId.AddOnSuccessListener((result) =>
66
+ {
67
+ archivesClient = HMSSaveGameManager.Instance.GetArchivesClient();
68
+ InitJosApps(result, antiAddictionCallback);
69
+ SignInSuccess?.Invoke(result);
70
+ Debug.Log($"{TAG} HMS GAMES: SilentSignIn Success");
71
+
72
+ }).AddOnFailureListener((exception) =>
73
+ {
74
+ Debug.LogError($"{TAG} HMS GAMES: The app has not been authorized");
75
+ authService.StartSignIn((auth) => { InitJosApps(auth, antiAddictionCallback); SignInSuccess?.Invoke(auth); }, (exc) => SignInFailure?.Invoke(exc));
76
+ InitGameManagers();
77
+ });
78
+ }
79
+
80
+ private void InitJosApps(AuthAccount result, IAntiAddictionCallback antiAddictionCallback = null)
81
+ {
82
+ authParams = new AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM_GAME).CreateParams();
83
+
84
+ AppParams appParams = (antiAddictionCallback != null)
85
+ ? new AppParams(authParams, new AntiAddictionCallWrapper(antiAddictionCallback))
86
+ : new AppParams(authParams);
87
+
88
+ HMSAccountKitManager.Instance.HuaweiId = result;
89
+ Debug.Log($"{TAG} HMS GAMES: Setted app");
90
+ IJosAppsClient josAppsClient = JosApps.GetJosAppsClient();
91
+ Debug.Log($"{TAG} HMS GAMES: jossClient");
92
+ var init = josAppsClient.Init(appParams);
93
+
94
+ init.AddOnSuccessListener((aVoid) =>
95
+ {
96
+ GameInitSuccess?.Invoke(aVoid);
97
+ });
98
+
99
+ Debug.Log($"{TAG} HMS GAMES: jossClient init");
100
+ InitGameManagers();
101
+ }
102
+
103
+ public void InitGameManagers()
104
+ {
105
+ HMSSaveGameManager.Instance.SavedGameAuth();
106
+ HMSLeaderboardManager.Instance.rankingsClient = Games.GetRankingsClient();
107
+ HMSAchievementsManager.Instance.achievementsClient = Games.GetAchievementsClient();
108
+
109
+ playersClient = Games.GetPlayersClient();
110
+ archivesClient = Games.GetArchiveClient();
111
+ buoyClient = Games.GetBuoyClient();
112
+ appUpdateClient = JosApps.GetAppUpdateClient();
113
+ CheckAppUpdate(true, false);
114
+ }
115
+
116
+ public void CheckAppUpdate(bool showAppUpdate, bool forceAppUpdate)
117
+ {
118
+ if (appUpdateClient != null)
119
+ {
120
+ showUpdateDialog = showAppUpdate;
121
+ forceUpdate = forceAppUpdate;
122
+ appUpdateClient.CheckAppUpdate(this);
123
+ }
124
+ else
125
+ {
126
+ Debug.LogError($"{TAG} CheckAppUpdate AppUpdateClient is null.");
127
+ }
128
+ }
129
+
130
+ public void ShowFloatWindow()
131
+ {
132
+ if (buoyClient != null)
133
+ buoyClient.ShowFloatWindow();
134
+ else
135
+ Debug.LogError($"{TAG} ShowFloatWindow BuoyClient is null.");
136
+ }
137
+
138
+ public void HideFloatWindow()
139
+ {
140
+ if (buoyClient != null)
141
+ buoyClient.HideFloatWindow();
142
+ else
143
+ Debug.LogError($"{TAG} HideFloatWindow BuoyClient is null.");
144
+ }
145
+
146
+ public void GetPlayerInfo()
147
+ {
148
+ if (HMSAccountKitManager.Instance.HuaweiId != null)
149
+ {
150
+ ITask<Player> task = playersClient.GamePlayer;
151
+ task.AddOnSuccessListener((result) =>
152
+ {
153
+ Debug.Log($"{TAG} GetPlayerInfo Success");
154
+ OnGetPlayerInfoSuccess?.Invoke(result);
155
+
156
+ }).AddOnFailureListener((exception) =>
157
+ {
158
+ Debug.LogError($"{TAG}: GetPlayerInfo failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
159
+ OnGetPlayerInfoFailure?.Invoke(exception);
160
+ });
161
+ }
162
+ else
163
+ {
164
+ Debug.LogError($"{TAG}: GetPlayerInfo failed. HMSAccountKitManager.Instance.HuaweiId is null");
165
+ OnGetPlayerInfoFailure?.Invoke(new HMSException($"{TAG}: GetPlayerInfo failed. HMSAccountKitManager.Instance.HuaweiId is null"));
166
+ }
167
+ }
168
+
169
+ public void SubmitPlayerEvent(string playerId, string eventId, string eventType)
170
+ {
171
+ if (HMSAccountKitManager.Instance.HuaweiId != null)
172
+ {
173
+ var task = playersClient.SubmitPlayerEvent(playerId, eventId, eventType);
174
+ task.AddOnSuccessListener((result) =>
175
+ {
176
+ Debug.Log($"{TAG} SubmitPlayerEvent Success");
177
+ OnSubmitPlayerEventSuccess?.Invoke(result);
178
+ }).AddOnFailureListener((exception) =>
179
+ {
180
+ Debug.LogError($"{TAG}: SubmitPlayerEvent failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
181
+ OnSubmitPlayerEventFailure?.Invoke(exception);
182
+ });
183
+ }
184
+ else
185
+ {
186
+ Debug.LogError($"{TAG}: SubmitPlayerEvent failed. HMSAccountKitManager.Instance.HuaweiId is null");
187
+ OnGetPlayerInfoFailure?.Invoke(new HMSException($"{TAG}: SubmitPlayerEvent failed. HMSAccountKitManager.Instance.HuaweiId is null"));
188
+ }
189
+ }
190
+
191
+ public void GetPlayerExtraInfo(string transactionId)
192
+ {
193
+ if (HMSAccountKitManager.Instance.HuaweiId != null)
194
+ {
195
+ var task = playersClient.GetPlayerExtraInfo(transactionId);
196
+ task.AddOnSuccessListener((result) =>
197
+ {
198
+ Debug.Log($"{TAG}: GetPlayerExtraInfo Success");
199
+ OnGetPlayerExtraInfoSuccess?.Invoke(result);
200
+ }).AddOnFailureListener((exception) =>
201
+ {
202
+ Debug.LogError($"{TAG}: GetPlayerExtraInfo failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
203
+ OnGetPlayerExtraInfoFailure?.Invoke(exception);
204
+ });
205
+ }
206
+ else
207
+ {
208
+ Debug.LogError($"{TAG}: GetPlayerExtraInfo failed. HMSAccountKitManager.Instance.HuaweiId is null");
209
+ OnGetPlayerInfoFailure?.Invoke(new HMSException("GetPlayerExtraInfo failed. HMSAccountKitManager.Instance.HuaweiId is null"));
210
+ }
211
+ }
212
+
213
+ public void GetUserPlayState()
214
+ {
215
+ if (HMSAccountKitManager.Instance.HuaweiId != null)
216
+ {
217
+ var task = playersClient.UserPlayState;
218
+ task.AddOnSuccessListener((result) =>
219
+ {
220
+ Debug.Log($"{TAG}: GetUserPlayState Success");
221
+ OnGetUserPlayStateSuccess?.Invoke(result);
222
+ }).AddOnFailureListener((exception) =>
223
+ {
224
+ Debug.LogError($"{TAG}: GetUserPlayState failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
225
+ OnGetUserPlayStateFailure?.Invoke(exception);
226
+ });
227
+ }
228
+ else
229
+ {
230
+ Debug.LogError($"{TAG}: GetUserPlayState failed. HMSAccountKitManager.Instance.HuaweiId is null");
231
+ OnGetUserPlayStateFailure?.Invoke(new HMSException("GetUserPlayState failed. HMSAccountKitManager.Instance.HuaweiId is null"));
232
+ }
233
+ }
234
+
235
+ public void IsAllowContinuePlayGames()
236
+ {
237
+ if (HMSAccountKitManager.Instance.HuaweiId != null)
238
+ {
239
+ var task = playersClient.IsAllowContinuePlayGames;
240
+ task.AddOnSuccessListener((result) =>
241
+ {
242
+ Debug.Log($"{TAG}: IsAllowContinuePlayGames Success");
243
+ OnIsAllowContinuePlayGamesSuccess?.Invoke(result);
244
+ }).AddOnFailureListener((exception) =>
245
+ {
246
+ Debug.LogError($"{TAG}: IsAllowContinuePlayGames failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
247
+ OnIsAllowContinuePlayGamesFailure?.Invoke(exception);
248
+ });
249
+ }
250
+ else
251
+ {
252
+ Debug.LogError($"{TAG}: IsAllowContinuePlayGames failed. HMSAccountKitManager.Instance.HuaweiId is null");
253
+ OnIsAllowContinuePlayGamesFailure?.Invoke(new HMSException("IsAllowContinuePlayGames failed. HMSAccountKitManager.Instance.HuaweiId is null"));
254
+ }
255
+ }
256
+ public void OnUpdateInfo(AndroidIntent intent)
257
+ {
258
+ int status = intent.GetIntExtra("status");
259
+ int rtnCode = intent.GetIntExtra("failcause");
260
+ string rtnMessage = intent.GetStringExtra("failreason");
261
+ bool isExit = intent.GetBoolExtra("compulsoryUpdateCancel", false);
262
+ int buttonStatus = intent.GetIntExtra("buttonstatus");
263
+
264
+ var apkUpgradeInfo = intent.Intent.Call<AndroidJavaObject>("getSerializableExtra", "updatesdk_update_info");
265
+ if (apkUpgradeInfo != null && showUpdateDialog)
266
+ {
267
+ appUpdateClient.ShowUpdateDialog(apkUpgradeInfo, forceUpdate);
268
+ }
269
+ OnAppUpdateInfo?.Invoke(new OnAppUpdateInfoRes(status, rtnCode, rtnMessage, isExit, buttonStatus));
270
+
271
+ try
272
+ {
273
+ Debug.Log($"{TAG} OnUpdateInfo, status: {(AppUpdateStatusCode)status}," +
274
+ $" rtnCode: {(AppUpdateRtnCode)rtnCode}, rtnMessage: {rtnMessage}, buttonStatus: {(AppUpdateButtonStatus)buttonStatus}, isExit: {isExit}");
275
+ }
276
+ catch(Exception e)
277
+ {
278
+ Debug.LogError($"{TAG} Failed to parse status, rtnCode, or buttonStatus as their respective enums exception:{e.Message}");
279
+ }
280
+ }
281
+ public void OnMarketInstallInfo(AndroidIntent intent)
282
+ {
283
+ Debug.Log($"{TAG}: OnMarketInstallInfo Called");
284
+ }
285
+
286
+ public void OnMarketStoreError(int responseCode)
287
+ {
288
+ Debug.LogError($"{TAG} OnMarketStoreError. Response Code:{responseCode}");
289
+ }
290
+
291
+ public void OnUpdateStoreError(int responseCode)
292
+ {
293
+ Debug.LogError($"{TAG} OnUpdateStoreError. Response Code:{responseCode}");
294
+ }
295
+
296
+ public class OnAppUpdateInfoRes
297
+ {
298
+ public OnAppUpdateInfoRes(int status, int rtnCode, string rtnMessage, bool isExit, int buttonStatus)
299
+ {
300
+ Status = status;
301
+ RtnCode = rtnCode;
302
+ RtnMessage = rtnMessage;
303
+ IsExit = isExit;
304
+ ButtonStatus = buttonStatus;
305
+ }
306
+
307
+ public int Status { get; set; }
308
+ public int RtnCode { get; set; }
309
+ public string RtnMessage { get; set; }
310
+ public bool IsExit { get; set; }
311
+ public int ButtonStatus { get; set; }
312
+ }
313
+ }
314
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 3227e30071c50a747bd50c7380698507
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,14 @@
1
+ namespace HmsPlugin
2
+ {
3
+ public class HMSLeaderboardEntry
4
+ {
5
+ public string Id { get; set; }
6
+ public string Name { get; set; }
7
+
8
+ public HMSLeaderboardEntry(string id, string name)
9
+ {
10
+ Id = id;
11
+ Name = name;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 8641d87efaa9a254daafdb145a73e506
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,272 @@
1
+ using HuaweiMobileServices.Base;
2
+ using HuaweiMobileServices.Game;
3
+ using HuaweiMobileServices.Utils;
4
+ using System;
5
+ using System.Collections.Generic;
6
+ using UnityEngine;
7
+
8
+ namespace HmsPlugin
9
+ {
10
+ public class HMSLeaderboardManager : HMSEditorSingleton<HMSLeaderboardManager>
11
+ {
12
+
13
+ public IRankingsClient rankingsClient;
14
+
15
+ public Action<int> OnIsUserScoreShownOnLeaderboardsSuccess { get; set; }
16
+ public Action<HMSException> OnIsUserScoreShownOnLeaderboardsFailure { get; set; }
17
+
18
+ public Action<int> OnSetUserScoreShownOnLeaderboardsSuccess { get; set; }
19
+ public Action<HMSException> OnSetUserScoreShownOnLeaderboardsFailure { get; set; }
20
+
21
+ public Action OnShowLeaderboardsSuccess { get; set; }
22
+ public Action<HMSException> OnShowLeaderboardsFailure { get; set; }
23
+
24
+ public Action<IList<Ranking>> OnGetLeaderboardsDataSuccess { get; set; }
25
+ public Action<HMSException> OnGetLeaderboardsDataFailure { get; set; }
26
+
27
+ public Action<Ranking> OnGetLeaderboardDataSuccess { get; set; }
28
+ public Action<HMSException> OnGetLeaderboardDataFailure { get; set; }
29
+
30
+ public Action<RankingScores> OnGetScoresFromLeaderboardSuccess { get; set; }
31
+ public Action<HMSException> OnGetScoresFromLeaderboardFailure { get; set; }
32
+
33
+ public Action<ScoreSubmissionInfo> OnSubmitScoreSuccess { get; set; }
34
+ public Action<HMSException> OnSubmitScoreFailure { get; set; }
35
+
36
+ public Action<RankingScores> OnGetPlayerCenteredRankingScoresSuccess { get; set; }
37
+ public Action<HMSException> OnGetPlayerCenteredRankingScoresFailure { get; set; }
38
+
39
+ public Action<RankingScores> OnGetMoreScoresFromLeaderboardSuccess { get; set; }
40
+ public Action<HMSException> OnGetMoreScoresFromLeaderboardFailure { get; set; }
41
+
42
+ public Action OnGetRankingsSuccess { get; set; }
43
+ public Action<HMSException> OnGetRankingsFailure { get; set; }
44
+
45
+ public void IsUserScoreShownOnLeaderboards()
46
+ {
47
+ ITask<int> task = rankingsClient.GetRankingSwitchStatus();
48
+ task.AddOnSuccessListener((result) =>
49
+ {
50
+ Debug.Log("[HMSLeaderboardManager] isUserScoreShownOnLeaderboards SUCCESS" + result);
51
+ OnIsUserScoreShownOnLeaderboardsSuccess?.Invoke(result);
52
+
53
+ }).AddOnFailureListener((exception) =>
54
+ {
55
+ Debug.LogError("[HMSLeaderboardManager]: IsUserScoreShownOnLeaderboards failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
56
+ OnIsUserScoreShownOnLeaderboardsFailure?.Invoke(exception);
57
+ });
58
+
59
+ }
60
+
61
+ public void SetUserScoreShownOnLeaderboards(int active)
62
+ {
63
+ ITask<int> task = rankingsClient.SetRankingSwitchStatus(active);
64
+ task.AddOnSuccessListener((result) =>
65
+ {
66
+ Debug.Log("[HMSLeaderboardManager] SetUserScoreShownOnLeaderboards SUCCESS" + result);
67
+ OnSetUserScoreShownOnLeaderboardsSuccess?.Invoke(result);
68
+
69
+ }).AddOnFailureListener((exception) =>
70
+ {
71
+ Debug.LogError("[HMSLeaderboardManager]: SetUserScoreShownOnLeaderboards failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
72
+ OnSetUserScoreShownOnLeaderboardsFailure?.Invoke(exception);
73
+ });
74
+ }
75
+
76
+ public void SubmitRankingScore(string leaderboardId, long score)
77
+ {
78
+ Debug.Log("[HMSLeaderboardManager] SubmitRankingScore");
79
+ rankingsClient.SubmitRankingScore(leaderboardId, score);
80
+ }
81
+
82
+ public void SubmitRankingScore(string leaderboardId, long score, string scoreTips)
83
+ {
84
+ Debug.Log("[HMSLeaderboardManager] SubmitRankingScore");
85
+ rankingsClient.SubmitRankingScore(leaderboardId, score, scoreTips);
86
+ }
87
+
88
+ public void SubmitScore(string leaderboardId, long score)
89
+ {
90
+ ITask<ScoreSubmissionInfo> task = rankingsClient.SubmitScoreWithResult(leaderboardId, score);
91
+ task.AddOnSuccessListener((scoreInfo) =>
92
+ {
93
+ Debug.Log("[HMSLeaderboardManager] SubmitScore SUCCESS");
94
+ OnSubmitScoreSuccess?.Invoke(scoreInfo);
95
+ }).AddOnFailureListener((error) =>
96
+ {
97
+ Debug.LogError("[HMSLeaderboardManager]: SubmitScore failed. CauseMessage: " + error.WrappedCauseMessage + ", ExceptionMessage: " + error.WrappedExceptionMessage);
98
+ OnSubmitScoreFailure?.Invoke(error);
99
+ });
100
+ }
101
+
102
+ public void SubmitScore(string leaderboardId, long score, string scoreTips)
103
+ {
104
+ ITask<ScoreSubmissionInfo> task = rankingsClient.SubmitScoreWithResult(leaderboardId, score, scoreTips);
105
+ task.AddOnSuccessListener((scoreInfo) =>
106
+ {
107
+ Debug.Log("[HMSLeaderboardManager] SubmitScore SUCCESS");
108
+ OnSubmitScoreSuccess?.Invoke(scoreInfo);
109
+ }).AddOnFailureListener((error) =>
110
+ {
111
+ Debug.LogError("[HMSLeaderboardManager]: SubmitScore failed. CauseMessage: " + error.WrappedCauseMessage + ", ExceptionMessage: " + error.WrappedExceptionMessage);
112
+ OnSubmitScoreFailure?.Invoke(error);
113
+ });
114
+ }
115
+
116
+ public void ShowLeaderboards()
117
+ {
118
+ rankingsClient.ShowTotalRankings(() =>
119
+ {
120
+ Debug.Log("[HMSLeaderboardManager] ShowLeaderboards SUCCESS");
121
+ OnShowLeaderboardsSuccess?.Invoke();
122
+
123
+ }, (exception) =>
124
+ {
125
+ Debug.LogError("[HMSLeaderboardManager]: ShowLeaderboards failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
126
+ OnShowLeaderboardsFailure?.Invoke(exception);
127
+ });
128
+ }
129
+
130
+ public void GetLeaderboardsData()
131
+ {
132
+ ITask<IList<Ranking>> task = rankingsClient.GetRankingSummary(true);
133
+ task.AddOnSuccessListener((result) =>
134
+ {
135
+ Debug.Log("[HMSLeaderboardManager] GetLeaderboardsData SUCCESS");
136
+ OnGetLeaderboardsDataSuccess?.Invoke(result);
137
+ }).AddOnFailureListener((exception) =>
138
+ {
139
+ Debug.LogError("[HMSLeaderboardManager]: GetLeaderboardsData failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
140
+ OnGetLeaderboardsDataFailure?.Invoke(exception);
141
+ });
142
+ }
143
+
144
+ public void GetLeaderboardData(string leaderboardId)
145
+ {
146
+ ITask<Ranking> task = rankingsClient.GetRankingSummary(leaderboardId, true);
147
+ task.AddOnSuccessListener((result) =>
148
+ {
149
+ Debug.Log("[HMSLeaderboardManager] GetLeaderboardsData SUCCESS");
150
+ OnGetLeaderboardDataSuccess?.Invoke(result);
151
+
152
+ }).AddOnFailureListener((exception) =>
153
+ {
154
+ Debug.LogError("[HMSLeaderboardManager]: GetLeaderboardData failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
155
+ OnGetLeaderboardDataFailure?.Invoke(exception);
156
+ });
157
+ }
158
+
159
+ public void GetScoresFromLeaderboard(string leaderboardId, int timeDimension, int maxResults, bool isRealTime)
160
+ {
161
+ ITask<RankingScores> task =
162
+ rankingsClient.GetRankingTopScores(leaderboardId, timeDimension, maxResults, isRealTime);
163
+
164
+ task.AddOnSuccessListener((result) =>
165
+ {
166
+ Debug.Log("[HMSLeaderboardManager] GetScoresFromLeaderboard SUCCESS");
167
+ OnGetScoresFromLeaderboardSuccess?.Invoke(result);
168
+
169
+ }).AddOnFailureListener((exception) =>
170
+ {
171
+ Debug.LogError("[HMSLeaderboardManager]: GetScoresFromLeaderboard failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
172
+ OnGetScoresFromLeaderboardFailure?.Invoke(exception);
173
+ });
174
+ }
175
+
176
+ public void GetScoresFromLeaderboard(string leaderboardId, int timeDimension, int maxResults, int offsetPlayerRank, int pageDirection)
177
+ {
178
+ ITask<RankingScores> task =
179
+ rankingsClient.GetRankingTopScores(leaderboardId, timeDimension, maxResults, offsetPlayerRank, pageDirection);
180
+
181
+ task.AddOnSuccessListener((result) =>
182
+ {
183
+ Debug.Log("[HMSLeaderboardManager] GetScoresFromLeaderboard SUCCESS");
184
+ OnGetScoresFromLeaderboardSuccess?.Invoke(result);
185
+
186
+ }).AddOnFailureListener((exception) =>
187
+ {
188
+ Debug.LogError("[HMSLeaderboardManager]: GetScoresFromLeaderboard failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
189
+ OnGetScoresFromLeaderboardFailure?.Invoke(exception);
190
+ });
191
+ }
192
+
193
+ public void GetMoreScoresFromLeaderboard(string leaderboardId, long offsetPlayerRank, int maxResults, int pageDirection, int timeDimention)
194
+ {
195
+ var task = rankingsClient.GetMoreRankingScores(leaderboardId, offsetPlayerRank, maxResults, pageDirection, timeDimention);
196
+
197
+ task.AddOnSuccessListener((result) =>
198
+ {
199
+ Debug.Log("[HMSLeaderboardManager] GetMoreScoresFromLeaderboard SUCCESS");
200
+ OnGetMoreScoresFromLeaderboardSuccess?.Invoke(result);
201
+
202
+ }).AddOnFailureListener((exception) =>
203
+ {
204
+ Debug.LogError("[HMSLeaderboardManager]: GetMoreScoresFromLeaderboard failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
205
+ OnGetMoreScoresFromLeaderboardFailure?.Invoke(exception);
206
+ });
207
+ }
208
+
209
+ public void GetPlayerCenteredRankingScores(string leaderboardId, int timeDimension, int maxResults, bool isRealTime)
210
+ {
211
+ var task = rankingsClient.GetPlayerCenteredRankingScores(leaderboardId, timeDimension, maxResults, isRealTime);
212
+
213
+ task.AddOnSuccessListener((result) =>
214
+ {
215
+ Debug.Log("[HMSLeaderboardManager] GetPlayerCenteredRankingScores SUCCESS");
216
+ OnGetPlayerCenteredRankingScoresSuccess?.Invoke(result);
217
+ }).AddOnFailureListener((exception) =>
218
+ {
219
+ Debug.LogError("[HMSLeaderboardManager]: GetPlayerCenteredRankingScores failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
220
+ OnGetPlayerCenteredRankingScoresFailure?.Invoke(exception);
221
+ });
222
+ }
223
+
224
+ public void GetPlayerCenteredRankingScores(string leaderboardId, int timeDimension, int maxResults, long offsetPlayerRank, int pageDirection)
225
+ {
226
+ var task = rankingsClient.GetPlayerCenteredRankingScores(leaderboardId, timeDimension, maxResults, offsetPlayerRank, pageDirection);
227
+
228
+ task.AddOnSuccessListener((result) =>
229
+ {
230
+ Debug.Log("[HMSLeaderboardManager] GetPlayerCenteredRankingScores SUCCESS");
231
+ Debug.LogWarning("[HMSLeaderboardManager] " + result == null ? "null" : "not null");
232
+ Debug.LogWarning("[HMSLeaderboardManager]" + result.Ranking.RankingDisplayName + ", Count: " + result.RankingScore.Count);
233
+ if (result.RankingScore.Count > 0)
234
+ {
235
+ Debug.LogWarning("Name: " + result.RankingScore[0].DisplayRank);
236
+ Debug.LogWarning("Score: " + result.RankingScore[0].PlayerRawScore);
237
+ }
238
+ OnGetPlayerCenteredRankingScoresSuccess?.Invoke(result);
239
+ }).AddOnFailureListener((exception) =>
240
+ {
241
+ Debug.LogError("[HMSLeaderboardManager]: GetPlayerCenteredRankingScores failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
242
+ OnGetPlayerCenteredRankingScoresFailure?.Invoke(exception);
243
+ });
244
+ }
245
+
246
+ public void GetRankings(string leaderboardId)
247
+ {
248
+ rankingsClient.GetRankingIntent(leaderboardId, () =>
249
+ {
250
+ Debug.Log("[HMSLeaderboardManager] GetRankings SUCCESS");
251
+ OnGetRankingsSuccess?.Invoke();
252
+ }, (exception) =>
253
+ {
254
+ Debug.LogError("[HMSLeaderboardManager]: GetRankings failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
255
+ OnGetRankingsFailure?.Invoke(exception);
256
+ });
257
+ }
258
+
259
+ public void GetRankings(string leaderboardId, int timeDimension)
260
+ {
261
+ rankingsClient.GetRankingIntent(leaderboardId, timeDimension, () =>
262
+ {
263
+ Debug.Log("[HMSLeaderboardManager] GetRankings SUCCESS");
264
+ OnGetRankingsSuccess?.Invoke();
265
+ }, (exception) =>
266
+ {
267
+ Debug.LogError("[HMSLeaderboardManager]: GetRankings failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
268
+ OnGetRankingsFailure?.Invoke(exception);
269
+ });
270
+ }
271
+ }
272
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: e69b1140624374c439321028344c4bab
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: