@getquip/expo-nordic-dfu 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/.eslintrc.js +2 -23
  2. package/.github/workflows/audit.yml +3 -6
  3. package/.github/workflows/conf-traffic.yml +104 -0
  4. package/.github/workflows/lint.yml +11 -22
  5. package/.github/workflows/test.yml +4 -8
  6. package/.nvmrc +1 -1
  7. package/.prettierignore +1 -0
  8. package/README.md +23 -7
  9. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/results.bin +1 -0
  10. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/BuildConfig.dex +0 -0
  11. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/DfuService.dex +0 -0
  12. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.dex +0 -0
  13. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.dex +0 -0
  14. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.dex +0 -0
  15. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.dex +0 -0
  16. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.dex +0 -0
  17. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
  18. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
  19. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
  20. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
  21. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.dex +0 -0
  22. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.dex +0 -0
  23. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.dex +0 -0
  24. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.dex +0 -0
  25. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.dex +0 -0
  26. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule.dex +0 -0
  27. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NotificationActivity.dex +0 -0
  28. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  29. package/android/build/.transforms/758c7658fec337f3b4bcf2d457b86828/results.bin +1 -0
  30. package/android/build/.transforms/758c7658fec337f3b4bcf2d457b86828/transformed/classes/classes_dex/classes.dex +0 -0
  31. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  32. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
  33. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +1 -1
  34. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  35. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +5 -5
  36. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
  37. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/DfuService.class +0 -0
  38. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
  39. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
  40. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
  41. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
  42. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
  43. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  44. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  45. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  46. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  47. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
  48. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
  49. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
  50. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
  51. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
  52. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/NotificationActivity.class +0 -0
  54. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  92. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  93. package/android/build/tmp/kotlin-classes/debug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
  94. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/DfuService.class +0 -0
  95. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
  96. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
  97. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
  98. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
  99. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
  100. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  101. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  102. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  103. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  104. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
  105. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
  106. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
  107. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
  108. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
  109. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
  110. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/NotificationActivity.class +0 -0
  111. package/eslint.config.mjs +34 -0
  112. package/example/.nvmrc +1 -1
  113. package/example/App.tsx +6 -4
  114. package/example/README.md +1 -0
  115. package/example/package-lock.json +2009 -4475
  116. package/example/package.json +15 -9
  117. package/package.json +19 -15
  118. package/example/android/app/build.gradle +0 -176
  119. package/example/android/app/debug.keystore +0 -0
  120. package/example/android/app/proguard-rules.pro +0 -14
  121. package/example/android/app/src/debug/AndroidManifest.xml +0 -7
  122. package/example/android/app/src/main/AndroidManifest.xml +0 -40
  123. package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainActivity.kt +0 -61
  124. package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainApplication.kt +0 -57
  125. package/example/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
  126. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  127. package/example/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  128. package/example/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  129. package/example/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  130. package/example/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  131. package/example/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  132. package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  133. package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  134. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  135. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  136. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  137. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  138. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  139. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  140. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  141. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  142. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  143. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  144. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  145. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  146. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  147. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  148. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  149. package/example/android/app/src/main/res/values/colors.xml +0 -6
  150. package/example/android/app/src/main/res/values/strings.xml +0 -5
  151. package/example/android/app/src/main/res/values/styles.xml +0 -17
  152. package/example/android/app/src/main/res/values-night/colors.xml +0 -1
  153. package/example/android/build.gradle +0 -41
  154. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  155. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  156. package/example/android/gradle.properties +0 -56
  157. package/example/android/gradlew +0 -252
  158. package/example/android/gradlew.bat +0 -94
  159. package/example/android/settings.gradle +0 -38
  160. package/example/ios/.xcode.env +0 -11
  161. package/example/ios/Podfile +0 -66
  162. package/example/ios/Podfile.lock +0 -1944
  163. package/example/ios/Podfile.properties.json +0 -5
  164. package/example/ios/exponordicdfuexample/AppDelegate.h +0 -7
  165. package/example/ios/exponordicdfuexample/AppDelegate.mm +0 -62
  166. package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  167. package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -14
  168. package/example/ios/exponordicdfuexample/Images.xcassets/Contents.json +0 -6
  169. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenBackground.colorset/Contents.json +0 -20
  170. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/Contents.json +0 -23
  171. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image.png +0 -0
  172. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image@2x.png +0 -0
  173. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLogo.imageset/image@3x.png +0 -0
  174. package/example/ios/exponordicdfuexample/Info.plist +0 -76
  175. package/example/ios/exponordicdfuexample/PrivacyInfo.xcprivacy +0 -48
  176. package/example/ios/exponordicdfuexample/SplashScreen.storyboard +0 -44
  177. package/example/ios/exponordicdfuexample/Supporting/Expo.plist +0 -12
  178. package/example/ios/exponordicdfuexample/exponordicdfuexample-Bridging-Header.h +0 -3
  179. package/example/ios/exponordicdfuexample/exponordicdfuexample.entitlements +0 -5
  180. package/example/ios/exponordicdfuexample/main.m +0 -10
  181. package/example/ios/exponordicdfuexample/noop-file.swift +0 -4
  182. package/example/ios/exponordicdfuexample.xcodeproj/project.pbxproj +0 -544
  183. package/example/ios/exponordicdfuexample.xcodeproj/xcshareddata/xcschemes/exponordicdfuexample.xcscheme +0 -88
  184. package/example/ios/exponordicdfuexample.xcworkspace/contents.xcworkspacedata +0 -10
package/.eslintrc.js CHANGED
@@ -1,23 +1,2 @@
1
- const isCI = process.env.CI === 'true'
2
-
3
- module.exports = {
4
- extends: ['expo', 'prettier'],
5
- parser: '@typescript-eslint/parser',
6
- parserOptions: {
7
- project: './tsconfig.json',
8
- },
9
- plugins: ['jest', '@typescript-eslint', 'prettier'],
10
- rules: {
11
- 'jest/no-focused-tests': isCI ? 'error' : 'off',
12
- 'prettier/prettier': 'error',
13
- },
14
- ignorePatterns: ['example/**/*', 'build/**/*', '.eslintrc.js'],
15
- overrides: [
16
- {
17
- files: ['*.ts', '*.tsx', '*.d.ts'],
18
- parserOptions: {
19
- project: './tsconfig.json',
20
- },
21
- },
22
- ],
23
- }
1
+ // @generated by expo-module-scripts
2
+ module.exports = require('expo-module-scripts/eslintrc.base.js');
@@ -12,12 +12,9 @@ jobs:
12
12
  name: npm Audit
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- -
16
- uses: actions/checkout@v4
17
- -
18
- uses: actions/setup-node@v4
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
19
17
  with:
20
18
  node-version: 20
21
19
  cache: npm
22
- -
23
- run: npm audit --audit-level=high
20
+ - run: npm audit --audit-level=high
@@ -0,0 +1,104 @@
1
+ name: Weekly GitHub Activity Report
2
+ permissions:
3
+ contents: read
4
+ on:
5
+ schedule:
6
+ - cron: "0 9 * * 1" # Every Monday at 9:00 UTC
7
+ workflow_dispatch:
8
+ jobs:
9
+ run:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/create-github-app-token@v2
14
+ id: app-token
15
+ with:
16
+ app-id: ${{ secrets.REPO_ADMIN_READ_APP_ID }}
17
+ private-key: ${{ secrets.REPO_ADMIN_READ_APP_PRIVATE_KEY }}
18
+ - name: Fetch stats
19
+ id: stats
20
+ env:
21
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
22
+ run: |
23
+ GH_API="/repos/${{ github.repository }}"
24
+ TRAFFIC_API="/repos/${{ github.repository }}/traffic/views"
25
+ ACCEPT_HEADER="Accept: application/vnd.github+json"
26
+ API_VERSION_HEADER="X-GitHub-Api-Version: 2022-11-28"
27
+
28
+ repo_json=$(gh api -H "$ACCEPT_HEADER" -H "$API_VERSION_HEADER" "$GH_API")
29
+ forks=$(echo "$repo_json" | jq .forks_count)
30
+ watchers=$(echo "$repo_json" | jq .watchers)
31
+ stars=$(echo "$repo_json" | jq .stargazers_count)
32
+ visitors_json=$(gh api -H "$ACCEPT_HEADER" -H "$API_VERSION_HEADER" "$TRAFFIC_API")
33
+ visitors=$(echo "$visitors_json" | jq .count)
34
+
35
+ {
36
+ echo "FORKS=${forks}"
37
+ echo "WATCHERS=${watchers}"
38
+ echo "STARS=${stars}"
39
+ echo "VISITORS=${visitors}"
40
+ } >> "$GITHUB_ENV"
41
+ - name: Send Slack notification
42
+ run: |
43
+ run_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
44
+ payload=$(jq -n \
45
+ --arg repo "${{ github.repository }}" \
46
+ --arg repo_url "${{ github.server_url }}/${{ github.repository }}" \
47
+ --arg forks "$FORKS" \
48
+ --arg stars "$STARS" \
49
+ --arg watchers "$WATCHERS" \
50
+ --arg visitors "$VISITORS" \
51
+ --arg run_url "$run_url" \
52
+ '{
53
+ blocks: [
54
+ {
55
+ type: "header",
56
+ text: {
57
+ type: "plain_text",
58
+ text: ":bar_chart: Weekly Open Source Activity Report",
59
+ "emoji": true
60
+ }
61
+ },
62
+ {
63
+ type: "section",
64
+ text: {
65
+ type: "mrkdwn",
66
+ text: "*Repository: <\($repo_url)|\($repo)>*"
67
+ }
68
+ },
69
+ {
70
+ type: "section",
71
+ fields: [
72
+ {
73
+ type: "mrkdwn",
74
+ text: ":fork: *Forks*: \($forks)"
75
+ },
76
+ {
77
+ type: "mrkdwn",
78
+ text: ":star: *Stars*: \($stars)"
79
+ },
80
+ {
81
+ type: "mrkdwn",
82
+ text: ":eye: *Watchers*: \($watchers)"
83
+ },
84
+ {
85
+ type: "mrkdwn",
86
+ text: ":wave: *Visitors (14d)*: \($visitors)"
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ type: "context",
92
+ "elements": [
93
+ {
94
+ type: "mrkdwn",
95
+ text: "<\($run_url)|Generated By>"
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }')
101
+
102
+ curl -X POST -H 'Content-type: application/json' \
103
+ --data "$payload" \
104
+ ${{ secrets.SLACK_ALERTS_ENG_WEBHOOK_URL }}
@@ -15,15 +15,12 @@ jobs:
15
15
  name: Actionlint
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
- -
19
- uses: actions/checkout@v4
20
- -
21
- name: Download actionlint
18
+ - uses: actions/checkout@v4
19
+ - name: Download actionlint
22
20
  id: get_actionlint
23
21
  shell: bash
24
22
  run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
25
- -
26
- name: Check Workflow Files
23
+ - name: Check Workflow Files
27
24
  shell: bash
28
25
  run: ${{ steps.get_actionlint.outputs.executable }} -color -verbose
29
26
 
@@ -31,19 +28,15 @@ jobs:
31
28
  name: Prettier
32
29
  runs-on: ubuntu-latest
33
30
  steps:
34
- -
35
- uses: actions/checkout@v4
31
+ - uses: actions/checkout@v4
36
32
  with:
37
33
  ref: ${{ inputs.sha }}
38
- -
39
- uses: actions/setup-node@v4
34
+ - uses: actions/setup-node@v4
40
35
  with:
41
36
  node-version: 20
42
37
  cache: npm
43
- -
44
- run: npm install
45
- -
46
- name: Check Prettier
38
+ - run: npm install
39
+ - name: Check Prettier
47
40
  run: npm run prettier:check
48
41
 
49
42
  eslint:
@@ -52,17 +45,13 @@ jobs:
52
45
  env:
53
46
  ESLINT_PLUGIN_DIFF_COMMIT: ${{ inputs.diff_ref }}
54
47
  steps:
55
- -
56
- uses: actions/checkout@v4
48
+ - uses: actions/checkout@v4
57
49
  with:
58
50
  ref: ${{ inputs.sha }}
59
- -
60
- uses: actions/setup-node@v4
51
+ - uses: actions/setup-node@v4
61
52
  with:
62
53
  node-version: 20
63
54
  cache: npm
64
- -
65
- run: npm install
66
- -
67
- name: Check ESLint
55
+ - run: npm install
56
+ - name: Check ESLint
68
57
  run: npm run eslint:check
@@ -12,19 +12,15 @@ jobs:
12
12
  name: Typescript Compile
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- -
16
- uses: actions/checkout@v4
15
+ - uses: actions/checkout@v4
17
16
  with:
18
17
  ref: ${{ inputs.sha }}
19
- -
20
- uses: actions/setup-node@v4
18
+ - uses: actions/setup-node@v4
21
19
  with:
22
20
  node-version: 20
23
21
  cache: npm
24
- -
25
- run: npm install
26
- -
27
- name: Type Check (Compile) TypeScript
22
+ - run: npm install
23
+ - name: Type Check (Compile) TypeScript
28
24
  run: |
29
25
  set -e
30
26
  npx tsc
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 20.19.1
1
+ 20.19.5
package/.prettierignore CHANGED
@@ -3,3 +3,4 @@ android/**/*
3
3
  build/**/*
4
4
  example/**/*
5
5
  ios/**/*
6
+ .eslintrc.js
package/README.md CHANGED
@@ -11,26 +11,35 @@ This project does not provide an interface for scanning/connecting devices via B
11
11
  ## Requirements
12
12
 
13
13
  - Nordic zip firmware file
14
- - Android 14 or 15
15
- - iOS 17 or 18
16
- - Expo SDK 52
17
- - React Native Bridgeless (new architecture) enabled
14
+ - Android 14+
15
+ - iOS 17+
16
+ - Expo SDK 54
17
+ - React Native Bridgeless (new architecture) enabled (this is enabled by default in Expo 54+)
18
18
 
19
- ## Usage
19
+ ## Setup
20
+
21
+ ### Install
20
22
 
21
- Please checkout the [example app](example)!
23
+ ```bash
24
+ // NPM projects
25
+ npm install @getquip/expo-nordic-dfu --save
26
+ // Yarn projects
27
+ yarn add @getquip/expo-nordic-dfu
28
+ ```
22
29
 
23
30
  ### Bluetooth permissions
24
31
 
25
- You need the various Bluetooth permission enabled on Expo project. If you use a Bluetooth management library like [react-native-ble-manager](https://github.com/innoveit/react-native-ble-manager), this might be done for you. For android, you also need Foreground services enabled for the DFU process.
32
+ You need the various Bluetooth permissions enabled on your Expo project. If you use a Bluetooth management library like [react-native-ble-manager](https://github.com/innoveit/react-native-ble-manager), this might be done for you. For android, you also need Foreground Services enabled for the DFU process.
26
33
 
27
34
  ```typescript
28
35
  // Expo app.json
29
36
 
30
37
  // Android
31
38
  expo.android.permissions: [
39
+ // Specifically for DFU
32
40
  "android.permission.FOREGROUND_SERVICE",
33
41
  "android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE",
42
+ // Needed for Bluetooth operations
34
43
  "android.permission.BLUETOOTH",
35
44
  "android.permission.BLUETOOTH_SCAN", // You might need to set "neverForLocation"
36
45
  "android.permission.BLUETOOTH_ADMIN",
@@ -39,11 +48,16 @@ expo.android.permissions: [
39
48
 
40
49
  // iOS
41
50
  expo.ios.infoPlist: [
51
+ // Needed for Bluetooth operations
42
52
  "NSBluetoothAlwaysUsageDescription": "Uses Bluetooth to connect to Bluetooth enabled device.",
43
53
  "NSBluetoothPeripheralUsageDescription": "Uses Bluetooth to connect to Bluetooth enabled device.",
44
54
  ]
45
55
  ```
46
56
 
57
+ ## Usage
58
+
59
+ Please see the [example app](example)!
60
+
47
61
  ### Listeners
48
62
 
49
63
  The listeners work mostly the same as the original @ [Pilloxa/react-native-nordic-dfu](https://github.com/Pilloxa/react-native-nordic-dfu)
@@ -52,6 +66,7 @@ The listeners work mostly the same as the original @ [Pilloxa/react-native-nordi
52
66
  - `DFUStateChanged`: Reports back when major DFU flow miletones happen. It will also tell you if the DFU finished, failed or was aborted
53
67
 
54
68
  ```typescript
69
+ // See the type file src/ExpoNordicDfu.types.ts for schema
55
70
  ExpoNordicDfu.module.addListener('DFUProgress', (progress) => {
56
71
  console.info('DFUProgress:', progress)
57
72
  })
@@ -69,6 +84,7 @@ await ExpoNordicDfu.startDfu({
69
84
  deviceAddress,
70
85
  fileUri,
71
86
  // There are many optional parameters and some are OS-specific
87
+ // The values we support are listed in src/ExpoNordicDfu.types.ts
72
88
  // ...,
73
89
  // android: {
74
90
  // ...
@@ -0,0 +1 @@
1
+ o/bundleLibRuntimeToDirDebug
@@ -1 +1 @@
1
- #Tue Apr 22 09:21:06 CDT 2025
1
+ #Mon Nov 03 08:07:09 PST 2025
@@ -1,2 +1,2 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
2
+ <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/debug/assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet></merger>
@@ -5,15 +5,15 @@
5
5
  5 <uses-sdk android:minSdkVersion="24" />
6
6
  6
7
7
  7 <application>
8
- 7-->/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/AndroidManifest.xml:4:5-9:19
8
+ 7-->/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/AndroidManifest.xml:4:5-9:19
9
9
  8 <service
10
- 8-->/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/AndroidManifest.xml:5:9-8:63
10
+ 8-->/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/AndroidManifest.xml:5:9-8:63
11
11
  9 android:name="com.getquip.nordic.DfuService"
12
- 9-->/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/AndroidManifest.xml:6:13-39
12
+ 9-->/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/AndroidManifest.xml:6:13-39
13
13
  10 android:exported="false"
14
- 10-->/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/AndroidManifest.xml:7:13-37
14
+ 10-->/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/AndroidManifest.xml:7:13-37
15
15
  11 android:foregroundServiceType="connectedDevice" />
16
- 11-->/Users/adamsligar/Source/Quip/react-native-nordic-dfu/android/src/main/AndroidManifest.xml:8:13-60
16
+ 11-->/Users/adamsligar/Source/Quip/expo-nordic-dfu/android/src/main/AndroidManifest.xml:8:13-60
17
17
  12 </application>
18
18
  13
19
19
  14</manifest>