@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
@@ -0,0 +1,34 @@
1
+ import { defineConfig } from 'eslint/config'
2
+
3
+ // Base Expo flat config (ESM requires the filename)
4
+ import expoConfig from 'eslint-config-expo/flat.js'
5
+ import jestPlugin from 'eslint-plugin-jest'
6
+ import prettierRecommended from 'eslint-plugin-prettier/recommended'
7
+ import tsPlugin from '@typescript-eslint/eslint-plugin'
8
+ import tsParser from '@typescript-eslint/parser'
9
+
10
+ const isCI = process.env.CI === "true";
11
+
12
+ export default defineConfig([
13
+ expoConfig,
14
+ prettierRecommended,
15
+ {
16
+ ignores: ["eslint.config.mjs", ".eslintrc.js", "example/**/*", "build/**/*"],
17
+ },
18
+ {
19
+ plugins: {
20
+ "@typescript-eslint": tsPlugin,
21
+ jest: jestPlugin,
22
+ // DO NOT re-declare { import: ..., prettier: ... } here —
23
+ // expoConfig already provides them and re-defining will error.
24
+ },
25
+ languageOptions: {
26
+ parser: tsParser,
27
+ parserOptions: { project: "./tsconfig.json" },
28
+ },
29
+ rules: {
30
+ "jest/no-focused-tests": isCI ? "error" : "off",
31
+ "prettier/prettier": "error",
32
+ },
33
+ },
34
+ ])
package/example/.nvmrc CHANGED
@@ -1 +1 @@
1
- 20.19.1
1
+ 20.19.5
package/example/App.tsx CHANGED
@@ -1,10 +1,11 @@
1
1
  import ExpoNordicDfu from 'expo-nordic-dfu';
2
2
  import { useEffect, useState } from 'react';
3
- import { Alert, KeyboardAvoidingView, PermissionsAndroid, Platform, SafeAreaView, ScrollView, TouchableOpacity, View, ViewStyle } from 'react-native';
3
+ import { Alert, KeyboardAvoidingView, PermissionsAndroid, Platform, ScrollView, TouchableOpacity, View, ViewStyle } from 'react-native';
4
+ import { SafeAreaView } from 'react-native-safe-area-context'
4
5
  import BleManager, { Peripheral } from 'react-native-ble-manager'
5
6
  import { Text, Button } from 'react-native-paper'
6
7
  import * as DocumentPicker from 'expo-document-picker';
7
- import * as FileSystem from 'expo-file-system';
8
+ import { File } from 'expo-file-system';
8
9
 
9
10
  const SERVICE_UUIDS = process.env.EXPO_PUBLIC_BLUETOOTH_SERVICE_UUIDS.split(',').map((uuid: string) => uuid.trim())
10
11
  const ANDROID_BONDING_ENABLED = process.env.EXPO_PUBLIC_ANDROID_BONDING_ENABLED === 'true'
@@ -201,7 +202,8 @@ export default function App() {
201
202
  return;
202
203
  }
203
204
 
204
- const fileInfo = await FileSystem.getInfoAsync(file.uri);
205
+ const fileInfo = new File(file.uri).info()
206
+
205
207
  if (!fileInfo.exists) {
206
208
  throw new Error('File does not exist');
207
209
  }
@@ -233,7 +235,7 @@ export default function App() {
233
235
  fileUri: firmwareFile.uri,
234
236
  // These optional values are set to useful values for quip.
235
237
  // Change them to your needs.
236
- packetReceiptNotificationParameter: 2,
238
+ packetReceiptNotificationParameter: 1,
237
239
  android: {
238
240
  deviceName: peripheral.name,
239
241
  },
@@ -0,0 +1 @@
1
+ See [parent README](../README.md#example-app)