@aguacerowx/react-native 0.0.3 → 0.0.6

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 (386) hide show
  1. package/README.md +51 -6
  2. package/android/build/.transforms/78b892a9dae44f36e51ff0649e9c6e36/transformed/classes/classes_dex/classes.dex +0 -0
  3. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.dex +0 -0
  4. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayer.dex +0 -0
  5. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderLayerView.dex +0 -0
  6. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/GridRenderManager.dex +0 -0
  7. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/aguacerowx/reactnative/WeatherFrameProcessorModule.dex +0 -0
  8. package/android/build/.transforms/f4de14556a82e99f0d27ddcab762b219/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  9. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  10. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  11. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
  12. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  13. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  14. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  15. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  16. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  17. package/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +16 -2
  18. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  19. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  20. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  21. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  22. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  23. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  24. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  25. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  26. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  27. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  28. package/android/build.gradle +1 -1
  29. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +9 -51
  30. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +8 -2
  31. package/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +15 -14
  32. package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +15 -0
  33. package/android/src/main/res/raw/fragment_shader.glsl +13 -2
  34. package/ios/GridRenderLayer.swift +62 -0
  35. package/ios/GridRenderLayerManager.mm +140 -0
  36. package/ios/aguacerowx-react-native.podspec +29 -0
  37. package/lib/commonjs/README.md +61 -0
  38. package/lib/commonjs/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  39. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  40. package/lib/commonjs/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  41. package/lib/commonjs/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  42. package/lib/commonjs/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  43. package/lib/commonjs/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  44. package/lib/commonjs/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  45. package/lib/commonjs/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  46. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  47. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  48. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  49. package/lib/commonjs/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  50. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  51. package/lib/commonjs/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  52. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  53. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  54. package/lib/commonjs/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  55. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  56. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  57. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  58. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  59. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  60. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  61. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  62. package/lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  63. package/lib/commonjs/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  64. package/lib/commonjs/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  65. package/lib/commonjs/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  66. package/lib/commonjs/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  67. package/lib/commonjs/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  68. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  69. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  70. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
  71. package/lib/commonjs/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  72. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  73. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  74. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  75. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  76. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  77. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  78. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  79. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  80. package/lib/commonjs/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  81. package/lib/commonjs/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  82. package/lib/commonjs/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  83. package/lib/commonjs/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  84. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  85. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  86. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  87. package/lib/commonjs/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  88. package/lib/commonjs/android/build.gradle +85 -0
  89. package/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
  90. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
  91. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
  92. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
  93. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
  94. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
  95. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
  96. package/lib/commonjs/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
  97. package/lib/commonjs/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
  98. package/lib/commonjs/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
  99. package/lib/commonjs/android/src/main/res/raw/fragment_shader.glsl +98 -0
  100. package/lib/commonjs/android/src/main/res/raw/vertex_shader.glsl +20 -0
  101. package/lib/commonjs/babel.config.js +7 -0
  102. package/lib/commonjs/babel.config.js.map +1 -0
  103. package/lib/commonjs/index.js +20 -0
  104. package/lib/commonjs/index.js.map +1 -0
  105. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  106. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  107. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  108. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  109. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  110. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  111. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  112. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  113. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  114. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  115. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  116. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  117. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  118. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  119. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  120. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  121. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  122. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  123. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  124. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  125. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  126. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +972 -0
  127. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  128. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  129. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  130. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  131. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  132. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  133. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  134. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  135. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  136. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  137. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  138. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  139. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  140. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  141. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  142. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  143. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  144. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  145. package/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  146. package/lib/commonjs/package.json +73 -0
  147. package/lib/commonjs/react-native-builder-bob.config.js +13 -0
  148. package/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
  149. package/lib/commonjs/src/AguaceroContext.js +11 -0
  150. package/lib/commonjs/src/AguaceroContext.js.map +1 -0
  151. package/lib/commonjs/src/GridRenderLayer.js +159 -0
  152. package/lib/commonjs/src/GridRenderLayer.js.map +1 -0
  153. package/lib/commonjs/src/GridRenderLayerNativeComponent.js +11 -0
  154. package/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
  155. package/lib/commonjs/src/MapManager.js +164 -0
  156. package/lib/commonjs/src/MapManager.js.map +1 -0
  157. package/lib/commonjs/src/MapRegistry.js +36 -0
  158. package/lib/commonjs/src/MapRegistry.js.map +1 -0
  159. package/lib/commonjs/src/StyleApplicator.js +262 -0
  160. package/lib/commonjs/src/StyleApplicator.js.map +1 -0
  161. package/lib/commonjs/src/WeatherLayerManager.js +731 -0
  162. package/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
  163. package/lib/commonjs/tsconfig.json +24 -0
  164. package/lib/module/README.md +61 -0
  165. package/lib/module/android/build/generated/source/buildConfig/debug/com/aguacerowx/reactnative/BuildConfig.java +10 -0
  166. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +8 -0
  167. package/lib/module/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  168. package/lib/module/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  169. package/lib/module/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  170. package/lib/module/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  171. package/lib/module/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  172. package/lib/module/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +4 -0
  173. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_fragment_shader.glsl.flat +0 -0
  174. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_debug_vertex_shader.glsl.flat +0 -0
  175. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_fragment_shader.glsl.flat +0 -0
  176. package/lib/module/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/raw_vertex_shader.glsl.flat +0 -0
  177. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +5 -0
  178. package/lib/module/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  179. package/lib/module/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  180. package/lib/module/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  181. package/lib/module/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  182. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  183. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  184. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  185. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  186. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  187. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  188. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  189. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  190. package/lib/module/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  191. package/lib/module/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +6 -0
  192. package/lib/module/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +8 -0
  193. package/lib/module/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +8 -0
  194. package/lib/module/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  195. package/lib/module/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  196. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_fragment_shader.glsl +13 -0
  197. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/debug_vertex_shader.glsl +13 -0
  198. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/fragment_shader.glsl +101 -0
  199. package/lib/module/android/build/intermediates/packaged_res/debug/packageDebugResources/raw/vertex_shader.glsl +20 -0
  200. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/AguaceroPackage.class +0 -0
  201. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/BuildConfig.class +0 -0
  202. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer$VertexInfo.class +0 -0
  203. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayer.class +0 -0
  204. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderLayerView.class +0 -0
  205. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/GridRenderManager.class +0 -0
  206. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/InspectorModule.class +0 -0
  207. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/ShaderUtils.class +0 -0
  208. package/lib/module/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/aguacerowx/reactnative/WeatherFrameProcessorModule.class +0 -0
  209. package/lib/module/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  210. package/lib/module/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +5 -0
  211. package/lib/module/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
  212. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer$VertexInfo.class.uniqueId0 +0 -0
  213. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayer.class.uniqueId1 +0 -0
  214. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GridRenderLayerView.class.uniqueId2 +0 -0
  215. package/lib/module/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  216. package/lib/module/android/build.gradle +85 -0
  217. package/lib/module/android/src/main/AndroidManifest.xml +7 -0
  218. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/AguaceroPackage.java +34 -0
  219. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayer.java +597 -0
  220. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderLayerView.java +293 -0
  221. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/GridRenderManager.java +112 -0
  222. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/InspectorModule.java +64 -0
  223. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/ShaderUtils.java +107 -0
  224. package/lib/module/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +166 -0
  225. package/lib/module/android/src/main/res/raw/debug_fragment_shader.glsl +13 -0
  226. package/lib/module/android/src/main/res/raw/debug_vertex_shader.glsl +13 -0
  227. package/lib/module/android/src/main/res/raw/fragment_shader.glsl +98 -0
  228. package/lib/module/android/src/main/res/raw/vertex_shader.glsl +20 -0
  229. package/lib/module/babel.config.js +5 -0
  230. package/lib/module/babel.config.js.map +1 -0
  231. package/lib/module/index.js +3 -0
  232. package/lib/module/index.js.map +1 -0
  233. package/lib/module/lib/commonjs/README.md +61 -0
  234. package/lib/module/lib/commonjs/android/build.gradle +85 -0
  235. package/lib/module/lib/commonjs/android/src/main/AndroidManifest.xml +7 -0
  236. package/lib/module/lib/commonjs/babel.config.js +7 -0
  237. package/lib/module/lib/commonjs/babel.config.js.map +1 -0
  238. package/lib/module/lib/commonjs/index.js +20 -0
  239. package/lib/module/lib/commonjs/index.js.map +1 -0
  240. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  241. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  242. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  243. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  244. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  245. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  246. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  247. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  248. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  249. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  250. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  251. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  252. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  253. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  254. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  255. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  256. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  257. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  258. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  259. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  260. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  261. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +976 -0
  262. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  263. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +381 -0
  264. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  265. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1229 -0
  266. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  267. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4023 -0
  268. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  269. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js +38 -0
  270. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  271. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +30 -0
  272. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  273. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +27 -0
  274. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  275. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js +41 -0
  276. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  277. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +301 -0
  278. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  279. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +126 -0
  280. package/lib/module/lib/commonjs/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  281. package/lib/module/lib/commonjs/package.json +73 -0
  282. package/lib/module/lib/commonjs/react-native-builder-bob.config.js +13 -0
  283. package/lib/module/lib/commonjs/react-native-builder-bob.config.js.map +1 -0
  284. package/lib/module/lib/commonjs/src/AguaceroContext.js +15 -0
  285. package/lib/module/lib/commonjs/src/AguaceroContext.js.map +1 -0
  286. package/lib/module/lib/commonjs/src/GridRenderLayer.js +182 -0
  287. package/lib/module/lib/commonjs/src/GridRenderLayer.js.map +1 -0
  288. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js +15 -0
  289. package/lib/module/lib/commonjs/src/GridRenderLayerNativeComponent.js.map +1 -0
  290. package/lib/module/lib/commonjs/src/MapManager.js +187 -0
  291. package/lib/module/lib/commonjs/src/MapManager.js.map +1 -0
  292. package/lib/module/lib/commonjs/src/MapRegistry.js +36 -0
  293. package/lib/module/lib/commonjs/src/MapRegistry.js.map +1 -0
  294. package/lib/module/lib/commonjs/src/StyleApplicator.js +286 -0
  295. package/lib/module/lib/commonjs/src/StyleApplicator.js.map +1 -0
  296. package/lib/module/lib/commonjs/src/WeatherLayerManager.js +750 -0
  297. package/lib/module/lib/commonjs/src/WeatherLayerManager.js.map +1 -0
  298. package/lib/module/lib/commonjs/tsconfig.json +24 -0
  299. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js +1003 -0
  300. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/AguaceroCore.js.map +1 -0
  301. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js +381 -0
  302. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/coordinate_configs.js.map +1 -0
  303. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js +1229 -0
  304. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/default-colormaps.js.map +1 -0
  305. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js +4023 -0
  306. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/dictionaries.js.map +1 -0
  307. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js +38 -0
  308. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/events.js.map +1 -0
  309. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js +30 -0
  310. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/fill-layer-worker.js.map +1 -0
  311. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js +27 -0
  312. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/getBundleId.js.map +1 -0
  313. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js +47 -0
  314. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/index.js.map +1 -0
  315. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js +301 -0
  316. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/map-styles.js.map +1 -0
  317. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js +126 -0
  318. package/lib/module/node_modules/@aguacerowx/javascript-sdk/dist/unitConversions.js.map +1 -0
  319. package/lib/module/node_modules/@aguacerowx/javascript-sdk/package.json +48 -0
  320. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js +964 -0
  321. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/AguaceroCore.js.map +1 -0
  322. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js +375 -0
  323. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/coordinate_configs.js.map +1 -0
  324. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js +1223 -0
  325. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/default-colormaps.js.map +1 -0
  326. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js +4017 -0
  327. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/dictionaries.js.map +1 -0
  328. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js +31 -0
  329. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/events.js.map +1 -0
  330. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js +29 -0
  331. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/fill-layer-worker.js.map +1 -0
  332. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js +21 -0
  333. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/getBundleId.js.map +1 -0
  334. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js +12 -0
  335. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/index.js.map +1 -0
  336. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js +295 -0
  337. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/map-styles.js.map +1 -0
  338. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js +119 -0
  339. package/lib/module/node_modules/@aguacerowx/javascript-sdk/src/unitConversions.js.map +1 -0
  340. package/lib/module/package.json +73 -0
  341. package/lib/module/react-native-builder-bob.config.js +11 -0
  342. package/lib/module/react-native-builder-bob.config.js.map +1 -0
  343. package/lib/module/src/AguaceroContext.js +5 -0
  344. package/lib/module/src/AguaceroContext.js.map +1 -0
  345. package/lib/module/src/GridRenderLayer.js +152 -0
  346. package/lib/module/src/GridRenderLayer.js.map +1 -0
  347. package/lib/module/src/GridRenderLayerNativeComponent.js +5 -0
  348. package/lib/module/src/GridRenderLayerNativeComponent.js.map +1 -0
  349. package/lib/module/src/MapManager.js +155 -0
  350. package/lib/module/src/MapManager.js.map +1 -0
  351. package/lib/module/src/MapRegistry.js +30 -0
  352. package/lib/module/src/MapRegistry.js.map +1 -0
  353. package/lib/module/src/StyleApplicator.js +255 -0
  354. package/lib/module/src/StyleApplicator.js.map +1 -0
  355. package/lib/module/src/WeatherLayerManager.js +724 -0
  356. package/lib/module/src/WeatherLayerManager.js.map +1 -0
  357. package/lib/module/tsconfig.json +24 -0
  358. package/lib/typescript/babel.config.d.ts +3 -0
  359. package/lib/typescript/babel.config.d.ts.map +1 -0
  360. package/lib/typescript/index.d.ts +3 -0
  361. package/lib/typescript/index.d.ts.map +1 -0
  362. package/lib/typescript/react-native-builder-bob.config.d.ts +6 -0
  363. package/lib/typescript/react-native-builder-bob.config.d.ts.map +1 -0
  364. package/lib/typescript/src/AguaceroContext.d.ts +2 -0
  365. package/lib/typescript/src/AguaceroContext.d.ts.map +1 -0
  366. package/lib/typescript/src/GridRenderLayer.d.ts +2 -0
  367. package/lib/typescript/src/GridRenderLayer.d.ts.map +1 -0
  368. package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts +12 -0
  369. package/lib/typescript/src/GridRenderLayerNativeComponent.d.ts.map +1 -0
  370. package/lib/typescript/src/MapManager.d.ts +8 -0
  371. package/lib/typescript/src/MapManager.d.ts.map +1 -0
  372. package/lib/typescript/src/MapRegistry.d.ts +12 -0
  373. package/lib/typescript/src/MapRegistry.d.ts.map +1 -0
  374. package/lib/typescript/src/StyleApplicator.d.ts +4 -0
  375. package/lib/typescript/src/StyleApplicator.d.ts.map +1 -0
  376. package/lib/typescript/src/WeatherLayerManager.d.ts +2 -0
  377. package/lib/typescript/src/WeatherLayerManager.d.ts.map +1 -0
  378. package/package.json +56 -18
  379. package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WeatherFrameProcessorModule.class.uniqueId1 +0 -0
  380. package/src/AguaceroContext.js +0 -4
  381. package/src/GridRenderLayer.js +0 -121
  382. package/src/MapManager.js +0 -158
  383. package/src/MapRegistry.js +0 -35
  384. package/src/StyleApplicator.js +0 -241
  385. package/src/WeatherLayerManager.js +0 -754
  386. /package/{android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AguaceroPackage.class.uniqueId0 → lib/commonjs/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/aguacerowx/reactnative/AguaceroPackage.class} +0 -0
@@ -0,0 +1,166 @@
1
+ // packages/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java
2
+
3
+ package com.aguacerowx.reactnative;
4
+
5
+ import androidx.annotation.NonNull;
6
+ import android.util.Base64;
7
+
8
+ import com.facebook.react.bridge.Arguments;
9
+ import com.facebook.react.bridge.Callback;
10
+ import com.facebook.react.bridge.ReactApplicationContext;
11
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
12
+ import com.facebook.react.bridge.ReactMethod;
13
+ import com.facebook.react.bridge.ReadableMap;
14
+ import com.facebook.react.bridge.WritableMap;
15
+ import com.facebook.react.modules.network.OkHttpClientProvider;
16
+ import android.util.Log;
17
+
18
+ import org.json.JSONObject;
19
+
20
+ import java.io.ByteArrayOutputStream;
21
+ import java.io.File;
22
+ import java.io.FileOutputStream;
23
+ import java.io.IOException;
24
+
25
+ import java.nio.charset.StandardCharsets;
26
+ import java.util.concurrent.ExecutorService;
27
+ import java.util.concurrent.Executors;
28
+
29
+ import okhttp3.OkHttpClient;
30
+ import okhttp3.Request;
31
+ import okhttp3.Response;
32
+ import okhttp3.ResponseBody;
33
+
34
+
35
+ public class WeatherFrameProcessorModule extends ReactContextBaseJavaModule {
36
+
37
+ private final ExecutorService executorService;
38
+ private volatile int currentRunToken = 0;
39
+ private final ReactApplicationContext reactContext;
40
+
41
+ WeatherFrameProcessorModule(ReactApplicationContext context) {
42
+ super(context);
43
+ this.reactContext = context;
44
+
45
+ int coreCount = Runtime.getRuntime().availableProcessors();
46
+ int optimalWorkerCount = Math.max(4, Math.min(coreCount - 1, 8));
47
+
48
+ this.executorService = Executors.newFixedThreadPool(optimalWorkerCount);
49
+ android.util.Log.d("AguaceroWX", "Initialized with " + optimalWorkerCount + " workers (" + coreCount + " cores available)");
50
+ }
51
+
52
+ @ReactMethod
53
+ public void cancelAllFrames() {
54
+ currentRunToken++;
55
+ }
56
+
57
+ @NonNull
58
+ @Override
59
+ public String getName() {
60
+ return "WeatherFrameProcessorModule";
61
+ }
62
+
63
+ @ReactMethod
64
+ public void processFrame(ReadableMap options, Callback callback) {
65
+ final int taskToken = this.currentRunToken;
66
+ executorService.execute(() -> {
67
+ FileOutputStream fos = null;
68
+ try {
69
+ if (taskToken != this.currentRunToken) {
70
+ return; // Task was cancelled
71
+ }
72
+
73
+ // --- START OF REPLACEMENT ---
74
+
75
+ // 1. Get the shared OkHttpClient instance from React Native
76
+ OkHttpClient client = OkHttpClientProvider.getOkHttpClient();
77
+
78
+ // 2. Get request details from options
79
+ String urlString = options.getString("url");
80
+ String apiKey = options.getString("apiKey");
81
+ String bundleId = options.getString("bundleId");
82
+
83
+ // 3. Build the OkHttp Request
84
+ Request.Builder requestBuilder = new Request.Builder()
85
+ .url(urlString)
86
+ .header("x-api-key", apiKey);
87
+
88
+ if (bundleId != null) {
89
+ requestBuilder.header("x-app-identifier", bundleId);
90
+ }
91
+
92
+ Request request = requestBuilder.build();
93
+
94
+ String responseString;
95
+ // 4. Execute the request and handle the response
96
+ try (Response response = client.newCall(request).execute()) {
97
+ if (!response.isSuccessful()) {
98
+ throw new IOException("HTTP Error: " + response.code());
99
+ }
100
+
101
+ ResponseBody body = response.body();
102
+ if (body == null) {
103
+ throw new IOException("Response body was null");
104
+ }
105
+ responseString = body.string();
106
+ }
107
+
108
+ // --- END OF REPLACEMENT ---
109
+
110
+ // The rest of your logic remains the same
111
+ JSONObject jsonResponse = new JSONObject(responseString);
112
+ if (!jsonResponse.has("data") || !jsonResponse.has("encoding")) {
113
+ // If the core keys are missing, the response is invalid. Log it and fail.
114
+ throw new IOException("Invalid API response. 'data' or 'encoding' key is missing. Response: " + responseString);
115
+ }
116
+
117
+ String b64CompressedData = jsonResponse.getString("data");
118
+ JSONObject encoding = jsonResponse.getJSONObject("encoding");
119
+
120
+
121
+ if (!encoding.has("scale") || !encoding.has("offset") || !encoding.has("missing_quantized")) {
122
+ // If the encoding object is missing required values, fail with a clear error.
123
+ throw new IOException("Invalid 'encoding' object in API response. Required keys are missing. Response: " + responseString);
124
+ }
125
+
126
+ byte[] compressedData = Base64.decode(b64CompressedData, Base64.DEFAULT);
127
+
128
+ File cacheDir = reactContext.getCacheDir();
129
+ String fileName = "frame_" + urlString.hashCode() + ".zst";
130
+ File dataFile = new File(cacheDir, fileName);
131
+
132
+ fos = new FileOutputStream(dataFile);
133
+ fos.write(compressedData);
134
+ fos.flush();
135
+ fos.close();
136
+ fos = null;
137
+
138
+ WritableMap responseMap = Arguments.createMap();
139
+ responseMap.putString("filePath", dataFile.getAbsolutePath());
140
+ responseMap.putDouble("scale", encoding.getDouble("scale"));
141
+ responseMap.putDouble("offset", encoding.getDouble("offset"));
142
+ responseMap.putDouble("missing", encoding.getDouble("missing_quantized"));
143
+ if (encoding.has("scale_type")) {
144
+ responseMap.putString("scaleType", encoding.getString("scale_type"));
145
+ }
146
+ responseMap.putString("dataAsBase64", b64CompressedData);
147
+
148
+ callback.invoke(null, responseMap);
149
+
150
+ } catch (Exception e) {
151
+ if (taskToken == this.currentRunToken) {
152
+ android.util.Log.e("AguaceroWX", "Error processing frame", e);
153
+ callback.invoke(e.getMessage(), null);
154
+ }
155
+ } finally {
156
+ if (fos != null) {
157
+ try {
158
+ fos.close();
159
+ } catch (IOException e) {
160
+ android.util.Log.e("AguaceroWX", "Error closing file stream", e);
161
+ }
162
+ }
163
+ }
164
+ });
165
+ }
166
+ }
@@ -0,0 +1,13 @@
1
+ precision highp float;
2
+
3
+ varying vec2 v_texCoord;
4
+ uniform sampler2D u_data_texture;
5
+
6
+ void main() {
7
+ // Read the raw normalized value [0.0, 1.0] from the texture's alpha channel.
8
+ float raw_normalized_value = texture2D(u_data_texture, v_texCoord).a;
9
+
10
+ // Output this value directly as a grayscale color.
11
+ // If the data is valid, this will produce a black and white weather map.
12
+ gl_FragColor = vec4(raw_normalized_value, raw_normalized_value, raw_normalized_value, 1.0);
13
+ }
@@ -0,0 +1,13 @@
1
+ attribute vec2 a_position; // Vertex position in Mercator coordinates (0.0 to 1.0)
2
+ attribute vec2 a_texCoord;
3
+
4
+ varying vec2 v_texCoord;
5
+
6
+ void main() {
7
+ // This is a "passthrough" shader. It IGNORES the u_matrix from the map camera.
8
+ // It converts the input position (0..1) directly to OpenGL clip space (-1..1).
9
+ // This should paint a giant square over the entire screen, regardless of map pan/zoom.
10
+ gl_Position = vec4(a_position.x * 2.0 - 1.0, (1.0 - a_position.y) * 2.0 - 1.0, 0.0, 1.0);
11
+
12
+ v_texCoord = a_texCoord;
13
+ }
@@ -0,0 +1,98 @@
1
+ // packages/react-native/android/src/main/res/raw/fragment_shader.glsl
2
+
3
+ precision highp float;
4
+ varying vec2 v_texCoord;
5
+
6
+ uniform sampler2D u_data_texture;
7
+ uniform sampler2D u_colormap_texture;
8
+ uniform float u_scale;
9
+ uniform float u_offset;
10
+ uniform float u_missing_quantized;
11
+ uniform float u_opacity;
12
+ uniform vec2 u_data_range;
13
+ uniform vec2 u_texture_size;
14
+ uniform int u_smoothing;
15
+
16
+ // --- START OF FIX: Add the new uniform ---
17
+ uniform int u_scale_type; // 0 for linear, 1 for sqrt
18
+ // --- END OF FIX ---
19
+
20
+ // Custom bilinear filtering that respects NaN boundaries
21
+ float sampleDataTextureSmooth(vec2 uv) {
22
+ float missing_in_texture_range = u_missing_quantized + 128.0;
23
+
24
+ // Get the four corner samples for bilinear interpolation
25
+ vec2 pixel_coord = uv * u_texture_size;
26
+ vec2 pixel_floor = floor(pixel_coord - 0.5) + 0.5;
27
+ vec2 f = pixel_coord - pixel_floor;
28
+
29
+ // Sample the 2x2 grid
30
+ float s00 = texture2D(u_data_texture, (pixel_floor + vec2(0.0, 0.0)) / u_texture_size).a * 255.0;
31
+ float s10 = texture2D(u_data_texture, (pixel_floor + vec2(1.0, 0.0)) / u_texture_size).a * 255.0;
32
+ float s01 = texture2D(u_data_texture, (pixel_floor + vec2(0.0, 1.0)) / u_texture_size).a * 255.0;
33
+ float s11 = texture2D(u_data_texture, (pixel_floor + vec2(1.0, 1.0)) / u_texture_size).a * 255.0;
34
+
35
+ // Check which samples are valid (not NaN)
36
+ bool valid00 = abs(s00 - missing_in_texture_range) >= 0.5;
37
+ bool valid10 = abs(s10 - missing_in_texture_range) >= 0.5;
38
+ bool valid01 = abs(s01 - missing_in_texture_range) >= 0.5;
39
+ bool valid11 = abs(s11 - missing_in_texture_range) >= 0.5;
40
+
41
+ // If ANY sample is NaN, return NaN (this pixel is on an edge)
42
+ if (!valid00 || !valid10 || !valid01 || !valid11) {
43
+ return missing_in_texture_range;
44
+ }
45
+
46
+ // All samples are valid - do proper bilinear interpolation
47
+ float s0 = mix(s00, s10, f.x);
48
+ float s1 = mix(s01, s11, f.x);
49
+ return mix(s0, s1, f.y);
50
+ }
51
+
52
+ // Simple nearest-neighbor sampling
53
+ float sampleDataTextureNearest(vec2 uv) {
54
+ // Snap to exact pixel center
55
+ vec2 snapped_coord = floor(uv * u_texture_size + 0.5) / u_texture_size;
56
+ return texture2D(u_data_texture, snapped_coord).a * 255.0;
57
+ }
58
+
59
+ void main() {
60
+ // Choose sampling method based on smoothing setting
61
+ float value_in_texture;
62
+ if (u_smoothing == 1) {
63
+ value_in_texture = sampleDataTextureSmooth(v_texCoord);
64
+ } else {
65
+ value_in_texture = sampleDataTextureNearest(v_texCoord);
66
+ }
67
+
68
+ float missing_in_texture_range = u_missing_quantized + 128.0;
69
+
70
+ // Check if this pixel is a predefined missing value
71
+ if (abs(value_in_texture - missing_in_texture_range) < 0.5) {
72
+ discard;
73
+ }
74
+
75
+ // Step 1: Standard linear dequantization
76
+ float quantized_value = value_in_texture - 128.0;
77
+ float intermediate_value = quantized_value * u_scale + u_offset;
78
+ float raw_value = intermediate_value; // Default to linear
79
+
80
+ // Step 2: Apply non-linear inverse scaling if specified
81
+ if (u_scale_type == 1) { // 1 represents 'sqrt'
82
+ // Square the intermediate value while preserving its sign
83
+ raw_value = intermediate_value * abs(intermediate_value);
84
+ }
85
+
86
+ // If the data is below the specified minimum range, make it invisible.
87
+ if (raw_value < u_data_range.x) {
88
+ discard;
89
+ }
90
+
91
+ // Normalize the value to a 0-1 coordinate for colormap lookup
92
+ float colormap_coord = (raw_value - u_data_range.x) / (u_data_range.y - u_data_range.x);
93
+ colormap_coord = clamp(colormap_coord, 0.0, 1.0);
94
+
95
+ // Sample the colormap and apply opacity
96
+ vec4 color = texture2D(u_colormap_texture, vec2(colormap_coord, 0.5));
97
+ gl_FragColor = vec4(color.rgb, color.a * u_opacity);
98
+ }
@@ -0,0 +1,20 @@
1
+ // The view-projection matrix from the Mapbox camera
2
+ uniform mat4 u_matrix;
3
+
4
+ // Attributes passed from the vertex buffer
5
+ attribute vec2 a_position; // Vertex position in Mercator coordinates (0.0 to 1.0)
6
+ attribute vec2 a_texCoord; // Texture coordinate (0.0 to 1.0)
7
+
8
+ // Passed to the fragment shader
9
+ varying vec2 v_texCoord;
10
+
11
+ void main() {
12
+ // This is the intended use.
13
+ // The u_matrix correctly transforms the 2D Mercator coordinate (a_position)
14
+ // into the final 4D clip space position for the GPU.
15
+ // We construct a vec4 with z=0.0 and w=1.0 to treat it as a point on the map's surface.
16
+ gl_Position = u_matrix * vec4(a_position, 0.0, 1.0);
17
+
18
+ // Pass the texture coordinate to the fragment shader
19
+ v_texCoord = a_texCoord;
20
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ presets: ['module:metro-react-native-babel-preset'],
5
+ ignore: [/node_modules/]
6
+ };
7
+ //# sourceMappingURL=babel.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["module","exports","presets","ignore"],"sourceRoot":"..\\..","sources":["babel.config.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,OAAO,EAAE,CAAC,wCAAwC,CAAC;EACnDC,MAAM,EAAE,CAAC,cAAc;AACzB,CAAC","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "MapManager", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _MapManager.MapManager;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "WeatherLayerManager", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _WeatherLayerManager.WeatherLayerManager;
16
+ }
17
+ });
18
+ var _MapManager = require("./src/MapManager");
19
+ var _WeatherLayerManager = require("./src/WeatherLayerManager");
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_MapManager","require","_WeatherLayerManager"],"sourceRoot":"..\\..","sources":["index.js"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA","ignoreList":[]}