@getquip/expo-nordic-dfu 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/.github/CODEOWNERS +3 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/workflows/actionlint.yml +21 -0
- package/.nvmrc +1 -0
- package/CONTRIBUTING.md +17 -0
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/android/.gradle/8.10/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.10/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10/gc.properties +0 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +607 -0
- package/android/.idea/gradle.xml +12 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build/.transforms/101a0f3c1cbb0bc0a96b13b14ea5674e/results.bin +1 -0
- package/android/build/.transforms/101a0f3c1cbb0bc0a96b13b14ea5674e/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/10fbbfccaf4a64ec5b26f25e62756ce4/results.bin +1 -0
- package/android/build/.transforms/10fbbfccaf4a64ec5b26f25e62756ce4/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/results.bin +1 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/BuildConfig.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/DfuService.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$5.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$6.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NotificationActivity.dex +0 -0
- package/android/build/.transforms/24ed67b53a64c100db2f1ab2b51b1aff/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/results.bin +1 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/BuildConfig.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/DfuService.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$1$1.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$1$2.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$5.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$definition$lambda$8$$inlined$AsyncFunctionWithPromise$6.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule$dfuProgressListener$1.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NordicDfuModule.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NotificationActivity.dex +0 -0
- package/android/build/.transforms/3f9e9d2e8b81b6aa1c435113a221ed39/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/412eeb48a8e50f46bc3ba54d3a3d875a/results.bin +1 -0
- package/android/build/.transforms/412eeb48a8e50f46bc3ba54d3a3d875a/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/results.bin +1 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/BuildConfig.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/DfuService.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NotificationActivity.dex +0 -0
- package/android/build/.transforms/842d309fd12a7374119e4f9b4300d4a5/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/getquip/nordic/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +14 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/getquip/nordic/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +19 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +14 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/DfuService.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/NotificationActivity.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/DfuService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/NotificationActivity.class +0 -0
- package/android/build.gradle +55 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/java/com/getquip/nordic/DfuService.kt +41 -0
- package/android/src/main/java/com/getquip/nordic/ExpoNordicDfuModule.kt +200 -0
- package/android/src/main/java/com/getquip/nordic/NotificationActivity.kt +25 -0
- package/build/ExpoNordicDfu.types.d.ts +32 -0
- package/build/ExpoNordicDfu.types.d.ts.map +1 -0
- package/build/ExpoNordicDfu.types.js +2 -0
- package/build/ExpoNordicDfu.types.js.map +1 -0
- package/build/ExpoNordicDfuModule.d.ts +18 -0
- package/build/ExpoNordicDfuModule.d.ts.map +1 -0
- package/build/ExpoNordicDfuModule.js +31 -0
- package/build/ExpoNordicDfuModule.js.map +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +6 -0
- package/build/index.js.map +1 -0
- package/example/.env.example +2 -0
- package/example/.nvmrc +1 -0
- package/example/App.tsx +372 -0
- package/example/android/app/build.gradle +176 -0
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +14 -0
- package/example/android/app/src/debug/AndroidManifest.xml +7 -0
- package/example/android/app/src/main/AndroidManifest.xml +40 -0
- package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainActivity.kt +61 -0
- package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainApplication.kt +57 -0
- package/example/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/example/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/example/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/example/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/example/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/example/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/example/android/app/src/main/res/values/colors.xml +6 -0
- package/example/android/app/src/main/res/values/strings.xml +5 -0
- package/example/android/app/src/main/res/values/styles.xml +17 -0
- package/example/android/app/src/main/res/values-night/colors.xml +1 -0
- package/example/android/build.gradle +41 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/example/android/gradle.properties +56 -0
- package/example/android/gradlew +252 -0
- package/example/android/gradlew.bat +94 -0
- package/example/android/settings.gradle +38 -0
- package/example/app.json +54 -0
- package/example/assets/adaptive-icon.png +0 -0
- package/example/assets/favicon.png +0 -0
- package/example/assets/icon.png +0 -0
- package/example/assets/splash-icon.png +0 -0
- package/example/babel.config.js +6 -0
- package/example/index.ts +8 -0
- package/example/ios/.xcode.env +11 -0
- package/example/ios/Podfile +66 -0
- package/example/ios/Podfile.lock +1944 -0
- package/example/ios/Podfile.properties.json +5 -0
- package/example/ios/exponordicdfuexample/AppDelegate.h +7 -0
- package/example/ios/exponordicdfuexample/AppDelegate.mm +62 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/Contents.json +6 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/Contents.json +23 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image.png +0 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image@2x.png +0 -0
- package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image@3x.png +0 -0
- package/example/ios/exponordicdfuexample/Info.plist +76 -0
- package/example/ios/exponordicdfuexample/PrivacyInfo.xcprivacy +48 -0
- package/example/ios/exponordicdfuexample/SplashScreen.storyboard +44 -0
- package/example/ios/exponordicdfuexample/Supporting/Expo.plist +12 -0
- package/example/ios/exponordicdfuexample/exponordicdfuexample-Bridging-Header.h +3 -0
- package/example/ios/exponordicdfuexample/exponordicdfuexample.entitlements +5 -0
- package/example/ios/exponordicdfuexample/main.m +10 -0
- package/example/ios/exponordicdfuexample/noop-file.swift +4 -0
- package/example/ios/exponordicdfuexample.xcodeproj/project.pbxproj +544 -0
- package/example/ios/exponordicdfuexample.xcodeproj/xcshareddata/xcschemes/exponordicdfuexample.xcscheme +88 -0
- package/example/ios/exponordicdfuexample.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/metro.config.js +34 -0
- package/example/package-lock.json +11069 -0
- package/example/package.json +31 -0
- package/example/tsconfig.json +10 -0
- package/example/webpack.config.js +20 -0
- package/expo-module.config.json +16 -0
- package/ios/ExpoNordicDfu.podspec +27 -0
- package/ios/ExpoNordicDfuModule.swift +168 -0
- package/package.json +64 -0
- package/src/ExpoNordicDfu.types.ts +38 -0
- package/src/ExpoNordicDfuModule.ts +73 -0
- package/src/index.ts +5 -0
- package/tsconfig.json +9 -0
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len
ADDED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin
ADDED
|
Binary file
|
package/android/build/tmp/kotlin-classes/debug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
group = 'com.getquip.nordic'
|
|
4
|
+
version = '0.1.0'
|
|
5
|
+
|
|
6
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
|
+
apply from: expoModulesCorePlugin
|
|
8
|
+
applyKotlinExpoModulesCorePlugin()
|
|
9
|
+
useCoreDependencies()
|
|
10
|
+
useExpoPublishing()
|
|
11
|
+
|
|
12
|
+
// If you want to use the managed Android SDK versions from expo-modules-core, set this to true.
|
|
13
|
+
// The Android SDK versions will be bumped from time to time in SDK releases and may introduce breaking changes in your module code.
|
|
14
|
+
// Most of the time, you may like to manage the Android SDK versions yourself.
|
|
15
|
+
def useManagedAndroidSdkVersions = false
|
|
16
|
+
if (useManagedAndroidSdkVersions) {
|
|
17
|
+
useDefaultAndroidSdkVersions()
|
|
18
|
+
} else {
|
|
19
|
+
buildscript {
|
|
20
|
+
// Simple helper that allows the root project to override versions declared by this library.
|
|
21
|
+
ext.safeExtGet = { prop, fallback ->
|
|
22
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
project.android {
|
|
26
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
|
27
|
+
defaultConfig {
|
|
28
|
+
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
29
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
android {
|
|
35
|
+
namespace "com.getquip.nordic"
|
|
36
|
+
defaultConfig {
|
|
37
|
+
versionCode 1
|
|
38
|
+
versionName "0.1.0"
|
|
39
|
+
}
|
|
40
|
+
lintOptions {
|
|
41
|
+
abortOnError false
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
repositories {
|
|
46
|
+
mavenCentral()
|
|
47
|
+
google()
|
|
48
|
+
maven { url 'https://jitpack.io' }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
dependencies {
|
|
52
|
+
implementation 'com.facebook.react:react-native:+'
|
|
53
|
+
implementation 'no.nordicsemi.android:dfu:2.4.2'
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
package="com.getquip.nordic">
|
|
3
|
+
|
|
4
|
+
<application>
|
|
5
|
+
<service
|
|
6
|
+
android:name=".DfuService"
|
|
7
|
+
android:exported="false"
|
|
8
|
+
android:foregroundServiceType="connectedDevice" />
|
|
9
|
+
</application>
|
|
10
|
+
|
|
11
|
+
</manifest>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
package com.getquip.nordic
|
|
2
|
+
|
|
3
|
+
import android.app.Activity
|
|
4
|
+
import androidx.core.app.NotificationCompat
|
|
5
|
+
import no.nordicsemi.android.dfu.DfuBaseService
|
|
6
|
+
|
|
7
|
+
class DfuService : DfuBaseService() {
|
|
8
|
+
|
|
9
|
+
override fun getNotificationTarget(): Class<out Activity> {
|
|
10
|
+
/*
|
|
11
|
+
* As a target activity the NotificationActivity is returned, not the MainActivity. This is because
|
|
12
|
+
* the notification must create a new task:
|
|
13
|
+
*
|
|
14
|
+
* intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
15
|
+
*
|
|
16
|
+
* when you press it. You can use NotificationActivity to check whether the new activity
|
|
17
|
+
* is a root activity (that means no other activity was open earlier) or that some
|
|
18
|
+
* other activity is already open. In the latter case the NotificationActivity will just be
|
|
19
|
+
* closed. The system will restore the previous activity. However, if the application has been
|
|
20
|
+
* closed during upload and you click the notification, a NotificationActivity will
|
|
21
|
+
* be launched as a root activity. It will create and start the main activity and
|
|
22
|
+
* terminate itself.
|
|
23
|
+
*
|
|
24
|
+
* This method may be used to restore the target activity in case the application
|
|
25
|
+
* was closed or is open. It may also be used to recreate an activity history using
|
|
26
|
+
* startActivities(...).
|
|
27
|
+
*/
|
|
28
|
+
return NotificationActivity::class.java
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
override fun isDebug(): Boolean {
|
|
32
|
+
// Here return true if you want the service to print more logs in LogCat.
|
|
33
|
+
// Library's BuildConfig in current version of Android Studio is always set to DEBUG=false, so
|
|
34
|
+
// make sure you return true or your.app.BuildConfig.DEBUG here.
|
|
35
|
+
return true
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
override fun updateForegroundNotification(builder: NotificationCompat.Builder) {
|
|
39
|
+
// Optional: customize DFU foreground notification here
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
package com.getquip.nordic
|
|
2
|
+
|
|
3
|
+
import android.app.NotificationManager
|
|
4
|
+
import android.content.Context
|
|
5
|
+
import android.os.Build
|
|
6
|
+
import android.os.Handler
|
|
7
|
+
import android.os.Looper
|
|
8
|
+
import android.util.Log
|
|
9
|
+
import androidx.annotation.RequiresApi
|
|
10
|
+
import expo.modules.kotlin.Promise
|
|
11
|
+
import expo.modules.kotlin.modules.Module
|
|
12
|
+
import expo.modules.kotlin.modules.ModuleDefinition
|
|
13
|
+
import no.nordicsemi.android.dfu.*
|
|
14
|
+
import androidx.core.net.toUri
|
|
15
|
+
import no.nordicsemi.android.dfu.DfuServiceInitiator.createDfuNotificationChannel
|
|
16
|
+
|
|
17
|
+
class ExpoNordicDfuModule : Module() {
|
|
18
|
+
private var controller: DfuServiceController? = null
|
|
19
|
+
private var currentPromise: Promise? = null
|
|
20
|
+
private lateinit var context: Context
|
|
21
|
+
|
|
22
|
+
@RequiresApi(Build.VERSION_CODES.O)
|
|
23
|
+
override fun definition() = ModuleDefinition {
|
|
24
|
+
Name("ExpoNordicDfuModule")
|
|
25
|
+
|
|
26
|
+
Events("DFUStateChanged", "DFUProgress")
|
|
27
|
+
|
|
28
|
+
OnStartObserving {
|
|
29
|
+
DfuServiceListenerHelper.registerProgressListener(
|
|
30
|
+
requireNotNull(appContext.reactContext),
|
|
31
|
+
dfuProgressListener
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
OnStopObserving {
|
|
36
|
+
DfuServiceListenerHelper.unregisterProgressListener(
|
|
37
|
+
requireNotNull(appContext.reactContext),
|
|
38
|
+
dfuProgressListener
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
AsyncFunction("startAndroidDfu") {
|
|
43
|
+
deviceAddress: String,
|
|
44
|
+
fileUri: String,
|
|
45
|
+
deviceName: String?,
|
|
46
|
+
keepBond: Boolean?,
|
|
47
|
+
numberOfRetries: Int?,
|
|
48
|
+
packetReceiptNotificationParameter: Int?,
|
|
49
|
+
prepareDataObjectDelay: Long?,
|
|
50
|
+
// ---------------------
|
|
51
|
+
// AsyncFunction only supports a max of 7 custom args + a promise!
|
|
52
|
+
// TODO: Consider passing a JSON string and then unpacking
|
|
53
|
+
// ---------------------
|
|
54
|
+
// rebootTime: Long?,
|
|
55
|
+
// restoreBond: Boolean?,
|
|
56
|
+
promise: Promise ->
|
|
57
|
+
|
|
58
|
+
currentPromise = promise
|
|
59
|
+
if (controller !== null) {
|
|
60
|
+
currentPromise?.reject("dfu_in_progress", "A DFU process is already running", null)
|
|
61
|
+
} else {
|
|
62
|
+
context = requireNotNull(appContext.reactContext)
|
|
63
|
+
val starter = DfuServiceInitiator(deviceAddress).apply {
|
|
64
|
+
setZip(fileUri.toUri())
|
|
65
|
+
createDfuNotificationChannel(context)
|
|
66
|
+
// The device name is not required
|
|
67
|
+
deviceName?.let { setDeviceName(it) }
|
|
68
|
+
// Sets whether the bond information should be preserver after flashing new application.
|
|
69
|
+
keepBond?.let { setKeepBond(keepBond) }
|
|
70
|
+
// The number of packets of firmware data to be received by the DFU target before sending a new Packet Receipt Notification.
|
|
71
|
+
// Disabling PRNs increases upload speed but may cause failures on devices with slow flash memory.
|
|
72
|
+
packetReceiptNotificationParameter?.let {
|
|
73
|
+
if (it > 0) {
|
|
74
|
+
setPacketsReceiptNotificationsEnabled(true)
|
|
75
|
+
setPacketsReceiptNotificationsValue(it)
|
|
76
|
+
} else {
|
|
77
|
+
setPacketsReceiptNotificationsEnabled(false)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// For DFU bootloaders from SDK 15 and 16 it may be required to add a delay before sending each
|
|
81
|
+
// data packet. This delay gives the DFU target more time to prepare flash memory, causing less
|
|
82
|
+
// packets being dropped and more reliable transfer. Detection of packets being lost would cause
|
|
83
|
+
// automatic switch to PRN = 1, making the DFU very slow (but reliable).
|
|
84
|
+
prepareDataObjectDelay?.let { setPrepareDataObjectDelay(it) }
|
|
85
|
+
// Sets the time required by the device to reboot.
|
|
86
|
+
// rebootTime?.let { setRebootTime(it) }
|
|
87
|
+
// Sets whether a new bond should be created after the DFU is complete.
|
|
88
|
+
// The old bond information will be removed before.
|
|
89
|
+
// restoreBond?.let { setRestoreBond(it) }
|
|
90
|
+
numberOfRetries?.let { setNumberOfRetries(it) }
|
|
91
|
+
}
|
|
92
|
+
controller = starter.start(context, DfuService::class.java)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
AsyncFunction("abortAndroidDfu") { promise: Promise ->
|
|
97
|
+
controller?.let {
|
|
98
|
+
it.abort()
|
|
99
|
+
if (it.isAborted) {
|
|
100
|
+
promise.resolve()
|
|
101
|
+
} else {
|
|
102
|
+
promise.reject("dfu_abort_failed", "Unable to abort DFU process", null)
|
|
103
|
+
}
|
|
104
|
+
} ?: run {
|
|
105
|
+
promise.reject("no_running_dfu", "There is no DFU process currently running", null)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
private val dfuProgressListener = object : DfuProgressListenerAdapter() {
|
|
111
|
+
override fun onDeviceConnecting(deviceAddress: String) =
|
|
112
|
+
emitState("CONNECTING", deviceAddress)
|
|
113
|
+
|
|
114
|
+
override fun onDeviceConnected(deviceAddress: String) =
|
|
115
|
+
emitState("CONNECTED", deviceAddress)
|
|
116
|
+
|
|
117
|
+
override fun onDfuProcessStarting(deviceAddress: String) =
|
|
118
|
+
emitState("DFU_PROCESS_STARTING", deviceAddress)
|
|
119
|
+
|
|
120
|
+
override fun onDfuProcessStarted(deviceAddress: String) =
|
|
121
|
+
emitState("DFU_PROCESS_STARTED", deviceAddress)
|
|
122
|
+
|
|
123
|
+
override fun onEnablingDfuMode(deviceAddress: String) =
|
|
124
|
+
emitState("ENABLING_DFU_MODE", deviceAddress)
|
|
125
|
+
|
|
126
|
+
override fun onProgressChanged(
|
|
127
|
+
deviceAddress: String,
|
|
128
|
+
percent: Int,
|
|
129
|
+
speed: Float,
|
|
130
|
+
avgSpeed: Float,
|
|
131
|
+
currentPart: Int,
|
|
132
|
+
partsTotal: Int
|
|
133
|
+
) {
|
|
134
|
+
sendEvent(
|
|
135
|
+
"DFUProgress",
|
|
136
|
+
mapOf(
|
|
137
|
+
"deviceAddress" to deviceAddress,
|
|
138
|
+
"percent" to percent,
|
|
139
|
+
"speed" to speed,
|
|
140
|
+
"avgSpeed" to avgSpeed,
|
|
141
|
+
"currentPart" to currentPart,
|
|
142
|
+
"partsTotal" to partsTotal
|
|
143
|
+
)
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
override fun onFirmwareValidating(deviceAddress: String) =
|
|
148
|
+
emitState("FIRMWARE_VALIDATING", deviceAddress)
|
|
149
|
+
|
|
150
|
+
override fun onDeviceDisconnecting(deviceAddress: String) =
|
|
151
|
+
emitState("DEVICE_DISCONNECTING", deviceAddress)
|
|
152
|
+
|
|
153
|
+
override fun onDeviceDisconnected(deviceAddress: String) =
|
|
154
|
+
emitState("DEVICE_DISCONNECTED", deviceAddress)
|
|
155
|
+
|
|
156
|
+
override fun onDfuCompleted(deviceAddress: String) {
|
|
157
|
+
emitState("DFU_COMPLETED", deviceAddress)
|
|
158
|
+
currentPromise?.resolve(mapOf("deviceAddress" to deviceAddress))
|
|
159
|
+
resetState()
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
override fun onDfuAborted(deviceAddress: String) {
|
|
163
|
+
emitState("DFU_ABORTED", deviceAddress)
|
|
164
|
+
currentPromise?.resolve("DFU was aborted")
|
|
165
|
+
resetState()
|
|
166
|
+
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
override fun onError(
|
|
170
|
+
deviceAddress: String,
|
|
171
|
+
error: Int,
|
|
172
|
+
errorType: Int,
|
|
173
|
+
message: String
|
|
174
|
+
) {
|
|
175
|
+
emitState("DFU_FAILED", deviceAddress)
|
|
176
|
+
val combinedMessage = "Error: $error, Error Type: $errorType, Message: $message"
|
|
177
|
+
currentPromise?.reject(error.toString(), combinedMessage, null)
|
|
178
|
+
resetState()
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
private fun resetState() {
|
|
183
|
+
currentPromise = null
|
|
184
|
+
controller = null
|
|
185
|
+
cleanUpNotifications()
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
private fun cleanUpNotifications() {
|
|
189
|
+
Handler(Looper.getMainLooper()).postDelayed({
|
|
190
|
+
// Cancel any existing DFU notification
|
|
191
|
+
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
|
192
|
+
notificationManager.cancel(DfuBaseService.NOTIFICATION_ID)
|
|
193
|
+
}, 500) // 0.5 second delay
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
private fun emitState(state: String, deviceAddress: String) {
|
|
197
|
+
Log.d("NordicDfu", "State: $state")
|
|
198
|
+
sendEvent("DFUStateChanged", mapOf("state" to state, "deviceAddress" to deviceAddress))
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
package com.getquip.nordic
|
|
2
|
+
|
|
3
|
+
import android.app.Activity
|
|
4
|
+
import android.content.Intent
|
|
5
|
+
import android.os.Bundle
|
|
6
|
+
|
|
7
|
+
class NotificationActivity : Activity() {
|
|
8
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
9
|
+
super.onCreate(savedInstanceState)
|
|
10
|
+
|
|
11
|
+
// If this is the root activity, the app isn't running
|
|
12
|
+
if (isTaskRoot) {
|
|
13
|
+
val launchIntent = packageManager.getLaunchIntentForPackage(packageName)?.apply {
|
|
14
|
+
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
|
15
|
+
putExtras(intent?.extras ?: Bundle())
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (launchIntent != null) {
|
|
19
|
+
startActivity(launchIntent)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
finish()
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ExpoSettingsModuleEvents = {
|
|
2
|
+
DFUStateChanged: (params: DFUStateChangedPayload) => void;
|
|
3
|
+
DFUProgress: (params: DFUProgressPayload) => void;
|
|
4
|
+
};
|
|
5
|
+
export type DFUStateChangedPayload = {
|
|
6
|
+
state: string;
|
|
7
|
+
deviceAddress: string;
|
|
8
|
+
};
|
|
9
|
+
export type DFUProgressPayload = {
|
|
10
|
+
deviceAddress: string;
|
|
11
|
+
percent: number;
|
|
12
|
+
speed: number;
|
|
13
|
+
avgSpeed: number;
|
|
14
|
+
currentPart: number;
|
|
15
|
+
totalParts: number;
|
|
16
|
+
};
|
|
17
|
+
export type StartDFUParams = {
|
|
18
|
+
deviceAddress: string;
|
|
19
|
+
fileUri: string;
|
|
20
|
+
packetReceiptNotificationParameter?: number;
|
|
21
|
+
prepareDataObjectDelay?: number;
|
|
22
|
+
android?: {
|
|
23
|
+
deviceName?: string;
|
|
24
|
+
keepBond?: boolean;
|
|
25
|
+
numberOfRetries?: number;
|
|
26
|
+
};
|
|
27
|
+
ios?: {
|
|
28
|
+
connectionTimeout?: number;
|
|
29
|
+
disableResume?: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=ExpoNordicDfu.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoNordicDfu.types.d.ts","sourceRoot":"","sources":["../src/ExpoNordicDfu.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,eAAe,CAAC,EAAE,MAAM,CAAC;KAI1B,CAAA;IACD,GAAG,CAAC,EAAE;QACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoNordicDfu.types.js","sourceRoot":"","sources":["../src/ExpoNordicDfu.types.ts"],"names":[],"mappings":"","sourcesContent":["export type ExpoSettingsModuleEvents = {\n DFUStateChanged: (params: DFUStateChangedPayload) => void;\n DFUProgress: (params: DFUProgressPayload) => void;\n};\n\nexport type DFUStateChangedPayload = {\n state: string;\n deviceAddress: string;\n};\n\nexport type DFUProgressPayload = {\n deviceAddress: string;\n percent: number;\n speed: number;\n avgSpeed: number;\n currentPart: number;\n totalParts: number;\n}\n\nexport type StartDFUParams = {\n deviceAddress: string;\n fileUri: string;\n packetReceiptNotificationParameter?: number;\n prepareDataObjectDelay?: number;\n android?: {\n deviceName?: string;\n keepBond?: boolean;\n numberOfRetries?: number;\n // See android/src/main/java/com/getquip/nordic/ExpoNordicDfuModule.kt\n // rebootTime?: number;\n // restoreBond?: boolean;\n }\n ios?: {\n connectionTimeout?: number,\n disableResume?: boolean,\n }\n}\n\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NativeModule } from 'expo';
|
|
2
|
+
import { ExpoSettingsModuleEvents, StartDFUParams } from './ExpoNordicDfu.types';
|
|
3
|
+
declare class ExpoNordicDfuModule extends NativeModule<ExpoSettingsModuleEvents> {
|
|
4
|
+
startAndroidDfu(deviceAddress: string, fileUri: string, deviceName?: string, keepBond?: boolean, numberOfRetries?: number, packetReceiptNotificationParameter?: number, prepareDataObjectDelay?: number, rebootTime?: number, restoreBond?: boolean): Promise<void>;
|
|
5
|
+
abortAndroidDfu(): Promise<void>;
|
|
6
|
+
startIosDfu(deviceAddress: string, fileUri: string, connectionTimeout?: number, disableResume?: boolean, packetReceiptNotificationParameter?: number, prepareDataObjectDelay?: number): Promise<void>;
|
|
7
|
+
abortIosDfu(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
declare class CrossplatformWrapper {
|
|
10
|
+
private dfuModule;
|
|
11
|
+
constructor(dfuModule: ExpoNordicDfuModule);
|
|
12
|
+
get module(): ExpoNordicDfuModule;
|
|
13
|
+
startDfu(params: StartDFUParams): Promise<void>;
|
|
14
|
+
abortDfu(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: CrossplatformWrapper;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=ExpoNordicDfuModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoNordicDfuModule.d.ts","sourceRoot":"","sources":["../src/ExpoNordicDfuModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGjF,OAAO,OAAO,mBAAoB,SAAQ,YAAY,CAAC,wBAAwB,CAAC;IAC9E,eAAe,CACb,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,OAAO,EAClB,eAAe,CAAC,EAAE,MAAM,EACxB,kCAAkC,CAAC,EAAE,MAAM,EAC3C,sBAAsB,CAAC,EAAE,MAAM,EAC/B,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAAC,IAAI,CAAC;IAChB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAChC,WAAW,CACT,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,MAAM,EAC1B,aAAa,CAAC,EAAE,OAAO,EACvB,kCAAkC,CAAC,EAAE,MAAM,EAC3C,sBAAsB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,IAAI,CAAC;IAChB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAC7B;AAID,cAAM,oBAAoB;IACZ,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,mBAAmB;IAElD,IAAI,MAAM,wBAET;IAEK,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B/C,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAOhC;;AAED,wBAAmD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { requireNativeModule } from 'expo';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
const DfuModule = requireNativeModule('ExpoNordicDfuModule');
|
|
4
|
+
class CrossplatformWrapper {
|
|
5
|
+
dfuModule;
|
|
6
|
+
constructor(dfuModule) {
|
|
7
|
+
this.dfuModule = dfuModule;
|
|
8
|
+
}
|
|
9
|
+
get module() {
|
|
10
|
+
return this.dfuModule;
|
|
11
|
+
}
|
|
12
|
+
async startDfu(params) {
|
|
13
|
+
if (Platform.OS === 'ios') {
|
|
14
|
+
return await this.dfuModule.startIosDfu(params.deviceAddress, params.fileUri, params.ios?.connectionTimeout, params.ios?.disableResume, params.packetReceiptNotificationParameter, params.prepareDataObjectDelay);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return await this.dfuModule.startAndroidDfu(params.deviceAddress, params.fileUri, params.android?.deviceName, params.android?.keepBond, params.android?.numberOfRetries, params.packetReceiptNotificationParameter, params.prepareDataObjectDelay);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
async abortDfu() {
|
|
21
|
+
if (Platform.OS === 'ios') {
|
|
22
|
+
return await this.dfuModule.abortIosDfu();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return await this.dfuModule.abortAndroidDfu();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
export default new CrossplatformWrapper(DfuModule);
|
|
31
|
+
//# sourceMappingURL=ExpoNordicDfuModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoNordicDfuModule.js","sourceRoot":"","sources":["../src/ExpoNordicDfuModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA0BxC,MAAM,SAAS,GAAG,mBAAmB,CAAsB,qBAAqB,CAAC,CAAC;AAElF,MAAM,oBAAoB;IACJ;IAApB,YAAoB,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAAG,CAAC;IAEtD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAAsB;QACnC,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE,CAAC;YAC1B,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CACrC,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,GAAG,EAAE,iBAAiB,EAC7B,MAAM,CAAC,GAAG,EAAE,aAAa,EACzB,MAAM,CAAC,kCAAkC,EACzC,MAAM,CAAC,sBAAsB,CAC9B,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,eAAe,CACzC,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,OAAO,EAAE,UAAU,EAC1B,MAAM,CAAC,OAAO,EAAE,QAAQ,EACxB,MAAM,CAAC,OAAO,EAAE,eAAe,EAC/B,MAAM,CAAC,kCAAkC,EACzC,MAAM,CAAC,sBAAsB,CAI9B,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE,CAAC;YAC1B,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAChD,CAAC;IACH,CAAC;CACF;AAAA,CAAC;AAEF,eAAe,IAAI,oBAAoB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from 'expo';\nimport { ExpoSettingsModuleEvents, StartDFUParams } from './ExpoNordicDfu.types';\nimport { Platform } from 'react-native';\n\ndeclare class ExpoNordicDfuModule extends NativeModule<ExpoSettingsModuleEvents> {\n startAndroidDfu(\n deviceAddress: string,\n fileUri: string,\n deviceName?: string,\n keepBond?: boolean,\n numberOfRetries?: number,\n packetReceiptNotificationParameter?: number,\n prepareDataObjectDelay?: number,\n rebootTime?: number,\n restoreBond?: boolean,\n ): Promise<void>;\n abortAndroidDfu(): Promise<void>;\n startIosDfu(\n deviceAddress: string,\n fileUri: string,\n connectionTimeout?: number,\n disableResume?: boolean,\n packetReceiptNotificationParameter?: number,\n prepareDataObjectDelay?: number,\n ): Promise<void>;\n abortIosDfu(): Promise<void>;\n}\n\nconst DfuModule = requireNativeModule<ExpoNordicDfuModule>('ExpoNordicDfuModule');\n\nclass CrossplatformWrapper {\n constructor(private dfuModule: ExpoNordicDfuModule) {}\n\n get module() {\n return this.dfuModule;\n }\n\n async startDfu(params: StartDFUParams): Promise<void> {\n if (Platform.OS === 'ios') {\n return await this.dfuModule.startIosDfu(\n params.deviceAddress,\n params.fileUri,\n params.ios?.connectionTimeout,\n params.ios?.disableResume,\n params.packetReceiptNotificationParameter,\n params.prepareDataObjectDelay,\n );\n } else {\n return await this.dfuModule.startAndroidDfu(\n params.deviceAddress,\n params.fileUri,\n params.android?.deviceName,\n params.android?.keepBond,\n params.android?.numberOfRetries,\n params.packetReceiptNotificationParameter,\n params.prepareDataObjectDelay,\n // See android/src/main/java/com/getquip/nordic/ExpoNordicDfuModule.kt\n // params.android?.rebootTime,\n // params.android?.restoreBond,\n );\n }\n }\n\n async abortDfu(): Promise<void> {\n if (Platform.OS === 'ios') {\n return await this.dfuModule.abortIosDfu();\n } else {\n return await this.dfuModule.abortAndroidDfu();\n }\n }\n};\n\nexport default new CrossplatformWrapper(DfuModule);\n"]}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,cAAe,uBAAuB,CAAC"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Reexport the native module. On web, it will be resolved to ExpoNordicDfuModule.web.ts
|
|
2
|
+
// and on native platforms to ExpoNordicDfuModule.ts
|
|
3
|
+
export { default } from './ExpoNordicDfuModule';
|
|
4
|
+
// export { default as ExpoNordicDfuView } from './ExpoNordicDfuView';
|
|
5
|
+
export * from './ExpoNordicDfu.types';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oDAAoD;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,sEAAsE;AACtE,cAAe,uBAAuB,CAAC","sourcesContent":["// Reexport the native module. On web, it will be resolved to ExpoNordicDfuModule.web.ts\n// and on native platforms to ExpoNordicDfuModule.ts\nexport { default } from './ExpoNordicDfuModule';\n// export { default as ExpoNordicDfuView } from './ExpoNordicDfuView';\nexport * from './ExpoNordicDfu.types';\n"]}
|
package/example/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
20.19.1
|