@aguacerowx/react-native 0.0.9 → 0.0.13

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 (404) hide show
  1. package/README.md +60 -60
  2. package/android/build.gradle +83 -84
  3. package/android/src/main/AndroidManifest.xml +6 -6
  4. package/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  5. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -611
  6. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -299
  7. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  8. package/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  9. package/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  10. package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  11. package/android/src/main/java/com/facebook/react/viewmanagers/.gitkeep +0 -0
  12. package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  13. package/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  14. package/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  15. package/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  16. package/android/src/main/res/raw/fragment_shader.glsl +97 -97
  17. package/android/src/main/res/raw/vertex_shader.glsl +19 -19
  18. package/index.js +3 -2
  19. package/ios/AguaceroPackage.m +18 -18
  20. package/ios/FragmentUniforms.swift +13 -13
  21. package/ios/GridRenderLayer.swift +962 -962
  22. package/ios/GridRenderLayerBridge.swift +29 -29
  23. package/ios/GridRenderLayerManager.mm +145 -145
  24. package/ios/GridRenderLayerView.h +22 -22
  25. package/ios/GridRenderLayerView.m +199 -199
  26. package/ios/InspectorDataCache.swift +65 -65
  27. package/ios/InspectorModule.m +9 -9
  28. package/ios/InspectorModule.swift +63 -63
  29. package/ios/Shaders.metal +130 -130
  30. package/ios/WeatherFrameProcessorModule.m +15 -15
  31. package/ios/WeatherFrameProcessorModule.swift +103 -103
  32. package/ios/aguacerowx-react-native.podspec +36 -35
  33. package/ios/generated/.gitkeep +0 -0
  34. package/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  35. package/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  36. package/lib/commonjs/README.md +60 -60
  37. package/lib/commonjs/android/build.gradle +83 -84
  38. package/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  39. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  40. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -611
  41. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -299
  42. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  43. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  44. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  45. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  46. package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  47. package/lib/commonjs/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  48. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  49. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  50. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +97 -97
  51. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +19 -19
  52. package/lib/commonjs/babel.config.js.map +1 -1
  53. package/lib/commonjs/index.js +8 -0
  54. package/lib/commonjs/index.js.map +1 -1
  55. package/lib/commonjs/ios/AguaceroPackage.m +18 -18
  56. package/lib/commonjs/ios/FragmentUniforms.swift +13 -13
  57. package/lib/commonjs/ios/GridRenderLayer.swift +962 -962
  58. package/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  59. package/lib/commonjs/ios/GridRenderLayerManager.mm +145 -145
  60. package/lib/commonjs/ios/GridRenderLayerView.h +22 -22
  61. package/lib/commonjs/ios/GridRenderLayerView.m +199 -199
  62. package/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  63. package/lib/commonjs/ios/InspectorModule.m +9 -9
  64. package/lib/commonjs/ios/InspectorModule.swift +63 -63
  65. package/lib/commonjs/ios/Shaders.metal +130 -130
  66. package/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  67. package/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  68. package/lib/commonjs/ios/aguacerowx-react-native.podspec +36 -35
  69. package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  70. package/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  71. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -1
  72. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -1
  73. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -1
  74. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -1
  75. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -1
  76. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -1
  77. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -1
  78. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -1
  79. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -1
  80. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -1
  81. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +1 -1
  82. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -1
  83. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -1
  84. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -1
  85. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -1
  86. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -1
  87. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -1
  88. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -1
  89. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -1
  90. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -1
  91. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -1
  92. package/lib/commonjs/package.json +71 -65
  93. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  94. package/lib/commonjs/src/AguaceroContext.js.map +1 -1
  95. package/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  96. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  97. package/lib/commonjs/src/MapManager.js.map +1 -1
  98. package/lib/commonjs/src/MapRegistry.js.map +1 -1
  99. package/lib/commonjs/src/StyleApplicator.js +6 -6
  100. package/lib/commonjs/src/StyleApplicator.js.map +1 -1
  101. package/lib/commonjs/src/WeatherLayerManager.js +2 -2
  102. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  103. package/lib/commonjs/tsconfig.json +23 -23
  104. package/lib/module/README.md +60 -60
  105. package/lib/module/android/build.gradle +83 -84
  106. package/lib/module/android/src/main/AndroidManifest.xml +6 -6
  107. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +33 -33
  108. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +611 -611
  109. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +299 -299
  110. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +117 -117
  111. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +71 -71
  112. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +106 -106
  113. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +151 -151
  114. package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerDelegate.java +0 -0
  115. package/lib/module/android/src/main/java/com/facebook/react/viewmanagers/GridRenderLayerManagerInterface.java +0 -0
  116. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +12 -12
  117. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +12 -12
  118. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +97 -97
  119. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +19 -19
  120. package/lib/module/babel.config.js.map +1 -1
  121. package/lib/module/index.js +1 -0
  122. package/lib/module/index.js.map +1 -1
  123. package/lib/module/ios/AguaceroPackage.m +18 -18
  124. package/lib/module/ios/FragmentUniforms.swift +13 -13
  125. package/lib/module/ios/GridRenderLayer.swift +962 -962
  126. package/lib/module/ios/GridRenderLayerBridge.swift +29 -29
  127. package/lib/module/ios/GridRenderLayerManager.mm +145 -145
  128. package/lib/module/ios/GridRenderLayerView.h +22 -22
  129. package/lib/module/ios/GridRenderLayerView.m +199 -199
  130. package/lib/module/ios/InspectorDataCache.swift +65 -65
  131. package/lib/module/ios/InspectorModule.m +9 -9
  132. package/lib/module/ios/InspectorModule.swift +63 -63
  133. package/lib/module/ios/Shaders.metal +130 -130
  134. package/lib/module/ios/WeatherFrameProcessorModule.m +15 -15
  135. package/lib/module/ios/WeatherFrameProcessorModule.swift +103 -103
  136. package/lib/module/ios/aguacerowx-react-native.podspec +36 -35
  137. package/lib/module/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  138. package/lib/module/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  139. package/lib/module/lib/commonjs/README.md +60 -60
  140. package/lib/module/lib/commonjs/android/build.gradle +83 -84
  141. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +6 -6
  142. package/lib/module/lib/commonjs/babel.config.js.map +1 -1
  143. package/lib/module/lib/commonjs/index.js +12 -0
  144. package/lib/module/lib/commonjs/index.js.map +1 -1
  145. package/lib/module/lib/commonjs/ios/AguaceroPackage.m +18 -18
  146. package/lib/module/lib/commonjs/ios/FragmentUniforms.swift +13 -13
  147. package/lib/module/lib/commonjs/ios/GridRenderLayer.swift +962 -962
  148. package/lib/module/lib/commonjs/ios/GridRenderLayerBridge.swift +29 -29
  149. package/lib/module/lib/commonjs/ios/GridRenderLayerManager.mm +145 -145
  150. package/lib/module/lib/commonjs/ios/GridRenderLayerView.h +22 -22
  151. package/lib/module/lib/commonjs/ios/GridRenderLayerView.m +199 -199
  152. package/lib/module/lib/commonjs/ios/InspectorDataCache.swift +65 -65
  153. package/lib/module/lib/commonjs/ios/InspectorModule.m +9 -9
  154. package/lib/module/lib/commonjs/ios/InspectorModule.swift +63 -63
  155. package/lib/module/lib/commonjs/ios/Shaders.metal +130 -130
  156. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.m +15 -15
  157. package/lib/module/lib/commonjs/ios/WeatherFrameProcessorModule.swift +103 -103
  158. package/lib/module/lib/commonjs/ios/aguacerowx-react-native.podspec +36 -35
  159. package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec-generated.mm +0 -0
  160. package/lib/module/lib/commonjs/ios/generated/AguaceroWxReactNativeSpec.h +0 -0
  161. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -1
  162. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -1
  163. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -1
  164. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -1
  165. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -1
  166. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -1
  167. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -1
  168. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -1
  169. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -1
  170. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -1
  171. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +1 -1
  172. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -1
  173. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -1
  174. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -1
  175. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -1
  176. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -1
  177. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -1
  178. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -1
  179. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -1
  180. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -1
  181. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -1
  182. package/lib/module/lib/commonjs/package.json +71 -65
  183. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -1
  184. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -1
  185. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -1
  186. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -1
  187. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -1
  188. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -1
  189. package/lib/module/lib/commonjs/src/StyleApplicator.js +6 -6
  190. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -1
  191. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +2 -2
  192. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -1
  193. package/lib/module/lib/commonjs/tsconfig.json +23 -23
  194. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -1
  195. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -1
  196. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -1
  197. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -1
  198. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -1
  199. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -1
  200. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -1
  201. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -1
  202. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -1
  203. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -1
  204. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +1 -1
  205. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -1
  206. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -1
  207. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -1
  208. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -1
  209. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -1
  210. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -1
  211. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -1
  212. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -1
  213. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -1
  214. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -1
  215. package/lib/module/package.json +71 -65
  216. package/lib/module/react-native-builder-bob.config.js.map +1 -1
  217. package/lib/module/src/AguaceroContext.js.map +1 -1
  218. package/lib/module/src/GridRenderLayer.js.map +1 -1
  219. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -1
  220. package/lib/module/src/MapManager.js.map +1 -1
  221. package/lib/module/src/MapRegistry.js.map +1 -1
  222. package/lib/module/src/StyleApplicator.js +6 -6
  223. package/lib/module/src/StyleApplicator.js.map +1 -1
  224. package/lib/module/src/WeatherLayerManager.js +2 -2
  225. package/lib/module/src/WeatherLayerManager.js.map +1 -1
  226. package/lib/module/tsconfig.json +23 -23
  227. package/lib/typescript/index.d.ts +1 -0
  228. package/package.json +71 -65
  229. package/src/AguaceroContext.js +3 -3
  230. package/src/GridRenderLayer.js +204 -204
  231. package/src/GridRenderLayerNativeComponent.ts +15 -15
  232. package/src/MapManager.js +155 -155
  233. package/src/MapRegistry.js +34 -34
  234. package/src/StyleApplicator.js +240 -240
  235. package/src/WeatherLayerManager.js +872 -872
  236. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/results.bin +0 -1
  237. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
  238. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/results.bin +0 -1
  239. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/AguaceroPackage.dex +0 -0
  240. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/BuildConfig.dex +0 -0
  241. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
  242. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
  243. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
  244. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
  245. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/InspectorModule.dex +0 -0
  246. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/ShaderUtils.dex +0 -0
  247. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
  248. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  249. package/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  250. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  251. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  252. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  253. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  254. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  255. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  256. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  257. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  258. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  259. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  260. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  261. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  262. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  263. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  264. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  265. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  266. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  267. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  268. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  269. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  270. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  271. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  272. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  273. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  274. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  275. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  276. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  277. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  278. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  279. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  280. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  281. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  282. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  283. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  284. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  285. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  286. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  287. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  288. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  289. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  290. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  291. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  292. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  293. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  294. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  295. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  296. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  297. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  298. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  299. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  300. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  301. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  302. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  303. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  304. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  305. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  306. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  307. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  308. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  309. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  310. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  311. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  312. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  313. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  314. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  315. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  316. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  317. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  318. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  319. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  320. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  321. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  322. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  323. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  324. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  325. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  326. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  327. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  328. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  329. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  330. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  331. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  332. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  333. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  334. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  335. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  336. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  337. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  338. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  339. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  340. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  341. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  342. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  343. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  344. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  345. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  346. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  347. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  348. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  349. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  350. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  351. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  352. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  353. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +0 -10
  354. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -8
  355. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  356. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  357. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  358. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  359. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  360. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -4
  361. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  362. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  363. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  364. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  365. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -5
  366. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  367. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +0 -2
  368. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  369. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  370. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  371. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  372. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  373. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  374. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  375. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  376. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  377. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  378. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  379. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -6
  380. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -8
  381. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -8
  382. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  383. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  384. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +0 -13
  385. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +0 -13
  386. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +0 -98
  387. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +0 -20
  388. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  389. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  390. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  391. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  392. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  393. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  394. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  395. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  396. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  397. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  398. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -5
  399. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  400. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId1 +0 -0
  401. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  402. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderManager.class.uniqueId3 +0 -0
  403. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/InspectorModule.class.uniqueId0 +0 -0
  404. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
@@ -1,300 +1,300 @@
1
- package com.aguacerowx.reactnative;
2
-
3
- import android.app.Activity;
4
- import android.util.Base64;
5
- import android.util.Log;
6
- import android.view.View;
7
- import android.view.ViewGroup;
8
- import android.widget.FrameLayout;
9
-
10
- import androidx.annotation.NonNull;
11
-
12
- import com.facebook.react.bridge.ReadableArray;
13
- import com.facebook.react.bridge.ReadableMap;
14
- import com.facebook.react.uimanager.ThemedReactContext;
15
- import com.mapbox.maps.LayerPosition;
16
- import com.mapbox.maps.MapView;
17
- import com.mapbox.maps.MapboxMap;
18
- import com.mapbox.maps.Style;
19
-
20
- // ADD THIS IMPORT
21
- import com.github.luben.zstd.Zstd;
22
-
23
- import java.io.File;
24
- import java.io.FileInputStream;
25
- import java.nio.ByteBuffer;
26
-
27
- public class GridRenderLayerView extends FrameLayout {
28
-
29
- private final GridRenderLayer gridLayerImplementation;
30
- private final String LAYER_ID = "weather-layer-" + getId();
31
- private static final String TAG = "AguaceroWX";
32
- private MapView mapView;
33
- private boolean isLayerAdded = false;
34
- private String belowLayerID = null;
35
- private static byte[] lastDecompressedData = null;
36
- private static int lastDataNx = 0;
37
- private static int lastDataNy = 0;
38
- private static float lastDataScale = 1.0f;
39
- private static float lastDataOffset = 0.0f;
40
- private static float lastDataMissing = 127.0f;
41
- private static String lastDataScaleType = "linear";
42
-
43
- public GridRenderLayerView(@NonNull ThemedReactContext context) {
44
- super(context);
45
- this.gridLayerImplementation = new GridRenderLayer(context);
46
- }
47
-
48
- public static String getLastDataScaleType() {
49
- return lastDataScaleType;
50
- }
51
-
52
- public void updateDataTexture(String dataFilePathOrBase64, int nx, int ny, float scale, float offset, float missing, String scaleType) {
53
- if (dataFilePathOrBase64 == null) {
54
- Log.e(TAG, "❌ [View] Data from manager is null!");
55
- return;
56
- }
57
-
58
- if (!isLayerAdded) {
59
- findMapViewAndAddLayer();
60
- }
61
-
62
- try {
63
- byte[] compressedData;
64
- if (dataFilePathOrBase64.startsWith("/")) {
65
- File file = new File(dataFilePathOrBase64);
66
- try (FileInputStream fis = new FileInputStream(file)) {
67
- compressedData = new byte[(int) file.length()];
68
- fis.read(compressedData);
69
- }
70
- } else {
71
- compressedData = Base64.decode(dataFilePathOrBase64, Base64.DEFAULT);
72
- }
73
-
74
- int expectedLength = nx * ny;
75
- byte[] decompressedDeltas = Zstd.decompress(compressedData, expectedLength);
76
- byte[] reconstructedData = reconstructData(decompressedDeltas, expectedLength);
77
- byte[] finalTextureBytes = transformData(reconstructedData);
78
-
79
- // CACHE the decompressed, transformed data for the inspector
80
- lastDecompressedData = finalTextureBytes;
81
- lastDataNx = nx;
82
- lastDataNy = ny;
83
- lastDataScale = scale;
84
- lastDataOffset = offset;
85
- lastDataMissing = missing;
86
- lastDataScaleType = scaleType; // FIX: Update the cached scaleType
87
-
88
- gridLayerImplementation.updateDataTexture(finalTextureBytes, nx, ny, scale, offset, missing, scaleType);
89
- triggerRepaint();
90
-
91
- } catch (Exception e) {
92
- Log.e(TAG, "❌❌❌ [View] CRITICAL ERROR during data processing: " + e.getMessage());
93
- e.printStackTrace();
94
- }
95
- }
96
-
97
- // Add a method to get the cached data
98
- public static byte[] getLastDecompressedData() {
99
- return lastDecompressedData;
100
- }
101
-
102
- public static int getLastDataNx() {
103
- return lastDataNx;
104
- }
105
-
106
- public static int getLastDataNy() {
107
- return lastDataNy;
108
- }
109
-
110
- public static float getLastDataScale() {
111
- return lastDataScale;
112
- }
113
-
114
- public static float getLastDataOffset() {
115
- return lastDataOffset;
116
- }
117
-
118
- public static float getLastDataMissing() {
119
- return lastDataMissing;
120
- }
121
-
122
- public void setBelowID(String belowID) {
123
- this.belowLayerID = belowID;
124
- }
125
-
126
- @Override
127
- protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
128
- super.onLayout(changed, left, top, right, bottom);
129
- // It's often more reliable to trigger map search here
130
- findMapViewAndAddLayer();
131
- }
132
-
133
- @Override
134
- public void onViewAdded(View child) {
135
- super.onViewAdded(child);
136
- }
137
-
138
- private void findMapViewAndAddLayer() {
139
- if (isLayerAdded) {
140
- return;
141
- }
142
-
143
- Activity activity = ((ThemedReactContext) getContext()).getCurrentActivity();
144
- if (activity == null) {
145
- Log.e(TAG, "❌ [View] Could not find current Activity to search for MapView.");
146
- return;
147
- }
148
-
149
- View rootView = activity.findViewById(android.R.id.content);
150
- if (rootView == null) {
151
- Log.e(TAG, "❌ [View] Could not find root view of the Activity.");
152
- return;
153
- }
154
-
155
- MapView foundMap = findMapViewRecursive(rootView);
156
-
157
- if (foundMap != null) {
158
- this.mapView = foundMap;
159
- final MapboxMap mapboxMap = mapView.getMapboxMap();
160
-
161
- Style.OnStyleLoaded styleLoadedCallback = style -> {
162
- if (!isLayerAdded && !style.styleLayerExists(LAYER_ID)) {
163
- LayerPosition position = null;
164
- if (this.belowLayerID != null && !this.belowLayerID.isEmpty()) {
165
- if (style.styleLayerExists(this.belowLayerID)) {
166
- position = new LayerPosition(null, this.belowLayerID, null);
167
- } else {
168
- Log.w(TAG, "⚠️ [View] Target layer '" + this.belowLayerID + "' NOT FOUND. Adding layer on top as a fallback.");
169
- }
170
- }
171
- style.addStyleCustomLayer(LAYER_ID, gridLayerImplementation, position);
172
- isLayerAdded = true;
173
- triggerRepaint();
174
- }
175
- };
176
-
177
- Style currentStyle = mapboxMap.getStyle();
178
- if (currentStyle != null && currentStyle.isStyleLoaded()) {
179
- styleLoadedCallback.onStyleLoaded(currentStyle);
180
- } else {
181
- mapboxMap.getStyle(styleLoadedCallback);
182
- }
183
-
184
- } else {
185
- Log.e(TAG, "❌❌❌ [View] FAILED to find MapView after searching from the root view! ❌❌❌");
186
- }
187
- }
188
-
189
- private MapView findMapViewRecursive(View view) {
190
- if (view instanceof MapView) {
191
- return (MapView) view;
192
- }
193
- if (view instanceof ViewGroup) {
194
- ViewGroup viewGroup = (ViewGroup) view;
195
- for (int i = 0; i < viewGroup.getChildCount(); i++) {
196
- MapView found = findMapViewRecursive(viewGroup.getChildAt(i));
197
- if (found != null) {
198
- return found;
199
- }
200
- }
201
- }
202
- return null;
203
- }
204
-
205
- private void triggerRepaint() {
206
- if (mapView != null) {
207
- mapView.post(mapView.getMapboxMap()::triggerRepaint);
208
- }
209
- }
210
-
211
- public void setOpacity(float opacity) {
212
- gridLayerImplementation.setOpacity(opacity);
213
- triggerRepaint();
214
- }
215
-
216
- public void setSmoothing(boolean enabled) {
217
- gridLayerImplementation.setSmoothing(enabled);
218
- triggerRepaint();
219
- }
220
-
221
- public void setDataRange(float[] range) {
222
- gridLayerImplementation.setDataRange(range);
223
- triggerRepaint();
224
- }
225
-
226
- public void setConversionType(int conversionType) {
227
- gridLayerImplementation.setConversionType(conversionType);
228
- triggerRepaint();
229
- }
230
-
231
- public void updateColormapTexture(String colormapAsBase64) {
232
- if (colormapAsBase64 == null) {
233
- return;
234
- }
235
- if (!isLayerAdded) {
236
- findMapViewAndAddLayer();
237
- }
238
-
239
- byte[] bytes = Base64.decode(colormapAsBase64, Base64.DEFAULT);
240
- ByteBuffer colormapBuffer = ByteBuffer.allocateDirect(bytes.length);
241
- colormapBuffer.put(bytes);
242
- colormapBuffer.position(0);
243
- gridLayerImplementation.updateColormapTexture(colormapBuffer);
244
- }
245
-
246
- public void updateGeometry(ReadableMap corners, ReadableMap gridDef) {
247
- if (!isLayerAdded) {
248
- findMapViewAndAddLayer();
249
- }
250
- gridLayerImplementation.updateGeometry(corners, gridDef);
251
- triggerRepaint();
252
- }
253
-
254
- /**
255
- * Reconstructs the full data array from the delta-encoded values.
256
- * @param decompressedDeltas The array of deltas.
257
- * @param expectedLength The total size of the final grid.
258
- * @return The fully reconstructed data array.
259
- */
260
- private byte[] reconstructData(byte[] decompressedDeltas, int expectedLength) {
261
- byte[] reconstructedData = new byte[expectedLength];
262
- if (decompressedDeltas.length > 0 && expectedLength > 0) {
263
- reconstructedData[0] = decompressedDeltas[0];
264
- for (int i = 1; i < expectedLength; i++) {
265
- reconstructedData[i] = (byte) (reconstructedData[i - 1] + decompressedDeltas[i]);
266
- }
267
- }
268
- return reconstructedData;
269
- }
270
-
271
- /**
272
- * Transforms the signed byte data (-128 to 127) to unsigned byte data (0 to 255)
273
- * suitable for an ALPHA texture.
274
- * @param finalData The reconstructed data array.
275
- * @return The transformed data array ready for the GPU.
276
- */
277
- private byte[] transformData(byte[] finalData) {
278
- byte[] transformedData = new byte[finalData.length];
279
- for (int i = 0; i < finalData.length; i++) {
280
- transformedData[i] = (byte) (finalData[i] + 128);
281
- }
282
- return transformedData;
283
- }
284
-
285
- // Add this method to GridRenderLayerView.java
286
- public void updateDataParameters(float scale, float offset, float missing) {
287
- // Update the cached values for the inspector
288
- lastDataScale = scale;
289
- lastDataOffset = offset;
290
- lastDataMissing = missing;
291
-
292
- // CRITICAL FIX: Also update the GridRenderLayer implementation
293
- gridLayerImplementation.updateDataParameters(scale, offset, missing);
294
- }
295
-
296
- public void clearData() {
297
- gridLayerImplementation.clearData();
298
- triggerRepaint();
299
- }
1
+ package com.aguacerowx.reactnative;
2
+
3
+ import android.app.Activity;
4
+ import android.util.Base64;
5
+ import android.util.Log;
6
+ import android.view.View;
7
+ import android.view.ViewGroup;
8
+ import android.widget.FrameLayout;
9
+
10
+ import androidx.annotation.NonNull;
11
+
12
+ import com.facebook.react.bridge.ReadableArray;
13
+ import com.facebook.react.bridge.ReadableMap;
14
+ import com.facebook.react.uimanager.ThemedReactContext;
15
+ import com.mapbox.maps.LayerPosition;
16
+ import com.mapbox.maps.MapView;
17
+ import com.mapbox.maps.MapboxMap;
18
+ import com.mapbox.maps.Style;
19
+
20
+ // ADD THIS IMPORT
21
+ import com.github.luben.zstd.Zstd;
22
+
23
+ import java.io.File;
24
+ import java.io.FileInputStream;
25
+ import java.nio.ByteBuffer;
26
+
27
+ public class GridRenderLayerView extends FrameLayout {
28
+
29
+ private final GridRenderLayer gridLayerImplementation;
30
+ private final String LAYER_ID = "weather-layer-" + getId();
31
+ private static final String TAG = "AguaceroWX";
32
+ private MapView mapView;
33
+ private boolean isLayerAdded = false;
34
+ private String belowLayerID = null;
35
+ private static byte[] lastDecompressedData = null;
36
+ private static int lastDataNx = 0;
37
+ private static int lastDataNy = 0;
38
+ private static float lastDataScale = 1.0f;
39
+ private static float lastDataOffset = 0.0f;
40
+ private static float lastDataMissing = 127.0f;
41
+ private static String lastDataScaleType = "linear";
42
+
43
+ public GridRenderLayerView(@NonNull ThemedReactContext context) {
44
+ super(context);
45
+ this.gridLayerImplementation = new GridRenderLayer(context);
46
+ }
47
+
48
+ public static String getLastDataScaleType() {
49
+ return lastDataScaleType;
50
+ }
51
+
52
+ public void updateDataTexture(String dataFilePathOrBase64, int nx, int ny, float scale, float offset, float missing, String scaleType) {
53
+ if (dataFilePathOrBase64 == null) {
54
+ Log.e(TAG, "❌ [View] Data from manager is null!");
55
+ return;
56
+ }
57
+
58
+ if (!isLayerAdded) {
59
+ findMapViewAndAddLayer();
60
+ }
61
+
62
+ try {
63
+ byte[] compressedData;
64
+ if (dataFilePathOrBase64.startsWith("/")) {
65
+ File file = new File(dataFilePathOrBase64);
66
+ try (FileInputStream fis = new FileInputStream(file)) {
67
+ compressedData = new byte[(int) file.length()];
68
+ fis.read(compressedData);
69
+ }
70
+ } else {
71
+ compressedData = Base64.decode(dataFilePathOrBase64, Base64.DEFAULT);
72
+ }
73
+
74
+ int expectedLength = nx * ny;
75
+ byte[] decompressedDeltas = Zstd.decompress(compressedData, expectedLength);
76
+ byte[] reconstructedData = reconstructData(decompressedDeltas, expectedLength);
77
+ byte[] finalTextureBytes = transformData(reconstructedData);
78
+
79
+ // CACHE the decompressed, transformed data for the inspector
80
+ lastDecompressedData = finalTextureBytes;
81
+ lastDataNx = nx;
82
+ lastDataNy = ny;
83
+ lastDataScale = scale;
84
+ lastDataOffset = offset;
85
+ lastDataMissing = missing;
86
+ lastDataScaleType = scaleType; // FIX: Update the cached scaleType
87
+
88
+ gridLayerImplementation.updateDataTexture(finalTextureBytes, nx, ny, scale, offset, missing, scaleType);
89
+ triggerRepaint();
90
+
91
+ } catch (Exception e) {
92
+ Log.e(TAG, "❌❌❌ [View] CRITICAL ERROR during data processing: " + e.getMessage());
93
+ e.printStackTrace();
94
+ }
95
+ }
96
+
97
+ // Add a method to get the cached data
98
+ public static byte[] getLastDecompressedData() {
99
+ return lastDecompressedData;
100
+ }
101
+
102
+ public static int getLastDataNx() {
103
+ return lastDataNx;
104
+ }
105
+
106
+ public static int getLastDataNy() {
107
+ return lastDataNy;
108
+ }
109
+
110
+ public static float getLastDataScale() {
111
+ return lastDataScale;
112
+ }
113
+
114
+ public static float getLastDataOffset() {
115
+ return lastDataOffset;
116
+ }
117
+
118
+ public static float getLastDataMissing() {
119
+ return lastDataMissing;
120
+ }
121
+
122
+ public void setBelowID(String belowID) {
123
+ this.belowLayerID = belowID;
124
+ }
125
+
126
+ @Override
127
+ protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
128
+ super.onLayout(changed, left, top, right, bottom);
129
+ // It's often more reliable to trigger map search here
130
+ findMapViewAndAddLayer();
131
+ }
132
+
133
+ @Override
134
+ public void onViewAdded(View child) {
135
+ super.onViewAdded(child);
136
+ }
137
+
138
+ private void findMapViewAndAddLayer() {
139
+ if (isLayerAdded) {
140
+ return;
141
+ }
142
+
143
+ Activity activity = ((ThemedReactContext) getContext()).getCurrentActivity();
144
+ if (activity == null) {
145
+ Log.e(TAG, "❌ [View] Could not find current Activity to search for MapView.");
146
+ return;
147
+ }
148
+
149
+ View rootView = activity.findViewById(android.R.id.content);
150
+ if (rootView == null) {
151
+ Log.e(TAG, "❌ [View] Could not find root view of the Activity.");
152
+ return;
153
+ }
154
+
155
+ MapView foundMap = findMapViewRecursive(rootView);
156
+
157
+ if (foundMap != null) {
158
+ this.mapView = foundMap;
159
+ final MapboxMap mapboxMap = mapView.getMapboxMap();
160
+
161
+ Style.OnStyleLoaded styleLoadedCallback = style -> {
162
+ if (!isLayerAdded && !style.styleLayerExists(LAYER_ID)) {
163
+ LayerPosition position = null;
164
+ if (this.belowLayerID != null && !this.belowLayerID.isEmpty()) {
165
+ if (style.styleLayerExists(this.belowLayerID)) {
166
+ position = new LayerPosition(null, this.belowLayerID, null);
167
+ } else {
168
+ Log.w(TAG, "⚠️ [View] Target layer '" + this.belowLayerID + "' NOT FOUND. Adding layer on top as a fallback.");
169
+ }
170
+ }
171
+ style.addStyleCustomLayer(LAYER_ID, gridLayerImplementation, position);
172
+ isLayerAdded = true;
173
+ triggerRepaint();
174
+ }
175
+ };
176
+
177
+ Style currentStyle = mapboxMap.getStyle();
178
+ if (currentStyle != null && currentStyle.isStyleLoaded()) {
179
+ styleLoadedCallback.onStyleLoaded(currentStyle);
180
+ } else {
181
+ mapboxMap.getStyle(styleLoadedCallback);
182
+ }
183
+
184
+ } else {
185
+ Log.e(TAG, "❌❌❌ [View] FAILED to find MapView after searching from the root view! ❌❌❌");
186
+ }
187
+ }
188
+
189
+ private MapView findMapViewRecursive(View view) {
190
+ if (view instanceof MapView) {
191
+ return (MapView) view;
192
+ }
193
+ if (view instanceof ViewGroup) {
194
+ ViewGroup viewGroup = (ViewGroup) view;
195
+ for (int i = 0; i < viewGroup.getChildCount(); i++) {
196
+ MapView found = findMapViewRecursive(viewGroup.getChildAt(i));
197
+ if (found != null) {
198
+ return found;
199
+ }
200
+ }
201
+ }
202
+ return null;
203
+ }
204
+
205
+ private void triggerRepaint() {
206
+ if (mapView != null) {
207
+ mapView.post(mapView.getMapboxMap()::triggerRepaint);
208
+ }
209
+ }
210
+
211
+ public void setOpacity(float opacity) {
212
+ gridLayerImplementation.setOpacity(opacity);
213
+ triggerRepaint();
214
+ }
215
+
216
+ public void setSmoothing(boolean enabled) {
217
+ gridLayerImplementation.setSmoothing(enabled);
218
+ triggerRepaint();
219
+ }
220
+
221
+ public void setDataRange(float[] range) {
222
+ gridLayerImplementation.setDataRange(range);
223
+ triggerRepaint();
224
+ }
225
+
226
+ public void setConversionType(int conversionType) {
227
+ gridLayerImplementation.setConversionType(conversionType);
228
+ triggerRepaint();
229
+ }
230
+
231
+ public void updateColormapTexture(String colormapAsBase64) {
232
+ if (colormapAsBase64 == null) {
233
+ return;
234
+ }
235
+ if (!isLayerAdded) {
236
+ findMapViewAndAddLayer();
237
+ }
238
+
239
+ byte[] bytes = Base64.decode(colormapAsBase64, Base64.DEFAULT);
240
+ ByteBuffer colormapBuffer = ByteBuffer.allocateDirect(bytes.length);
241
+ colormapBuffer.put(bytes);
242
+ colormapBuffer.position(0);
243
+ gridLayerImplementation.updateColormapTexture(colormapBuffer);
244
+ }
245
+
246
+ public void updateGeometry(ReadableMap corners, ReadableMap gridDef) {
247
+ if (!isLayerAdded) {
248
+ findMapViewAndAddLayer();
249
+ }
250
+ gridLayerImplementation.updateGeometry(corners, gridDef);
251
+ triggerRepaint();
252
+ }
253
+
254
+ /**
255
+ * Reconstructs the full data array from the delta-encoded values.
256
+ * @param decompressedDeltas The array of deltas.
257
+ * @param expectedLength The total size of the final grid.
258
+ * @return The fully reconstructed data array.
259
+ */
260
+ private byte[] reconstructData(byte[] decompressedDeltas, int expectedLength) {
261
+ byte[] reconstructedData = new byte[expectedLength];
262
+ if (decompressedDeltas.length > 0 && expectedLength > 0) {
263
+ reconstructedData[0] = decompressedDeltas[0];
264
+ for (int i = 1; i < expectedLength; i++) {
265
+ reconstructedData[i] = (byte) (reconstructedData[i - 1] + decompressedDeltas[i]);
266
+ }
267
+ }
268
+ return reconstructedData;
269
+ }
270
+
271
+ /**
272
+ * Transforms the signed byte data (-128 to 127) to unsigned byte data (0 to 255)
273
+ * suitable for an ALPHA texture.
274
+ * @param finalData The reconstructed data array.
275
+ * @return The transformed data array ready for the GPU.
276
+ */
277
+ private byte[] transformData(byte[] finalData) {
278
+ byte[] transformedData = new byte[finalData.length];
279
+ for (int i = 0; i < finalData.length; i++) {
280
+ transformedData[i] = (byte) (finalData[i] + 128);
281
+ }
282
+ return transformedData;
283
+ }
284
+
285
+ // Add this method to GridRenderLayerView.java
286
+ public void updateDataParameters(float scale, float offset, float missing) {
287
+ // Update the cached values for the inspector
288
+ lastDataScale = scale;
289
+ lastDataOffset = offset;
290
+ lastDataMissing = missing;
291
+
292
+ // CRITICAL FIX: Also update the GridRenderLayer implementation
293
+ gridLayerImplementation.updateDataParameters(scale, offset, missing);
294
+ }
295
+
296
+ public void clearData() {
297
+ gridLayerImplementation.clearData();
298
+ triggerRepaint();
299
+ }
300
300
  }