@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-nordic-dfu-example",
3
- "version": "1.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -9,23 +9,29 @@
9
9
  "web": "expo start --web"
10
10
  },
11
11
  "dependencies": {
12
- "expo": "~52.0.46",
13
- "react": "~18.3.1",
14
- "react-native": "~0.76.9",
12
+ "expo": "~54.0.25",
13
+ "expo-document-picker": "^14.0.7",
14
+ "expo-file-system": "~19.0.19",
15
+ "react": "19.1.0",
16
+ "react-native": "0.81.5",
15
17
  "react-native-ble-manager": "^12.1.4",
16
18
  "react-native-paper": "^5.13.3",
17
- "expo-document-picker": "~13.0.3",
18
- "expo-file-system": "~18.0.12"
19
+ "react-native-safe-area-context": "^5.6.2"
19
20
  },
20
21
  "devDependencies": {
21
- "@babel/core": "^7.25.2",
22
- "@types/react": "~18.3.12",
22
+ "@babel/core": "^7.28.5",
23
+ "@types/react": "~19.1.17",
24
+ "expo-doctor": "^1.17.11",
23
25
  "typescript": "^5.3.3"
24
26
  },
27
+ "engines": {
28
+ "node": ">=20.19.4",
29
+ "npm": ">=10.8"
30
+ },
25
31
  "private": true,
26
32
  "expo": {
27
33
  "autolinking": {
28
34
  "nativeModulesDir": ".."
29
35
  }
30
36
  }
31
- }
37
+ }
package/package.json CHANGED
@@ -5,16 +5,20 @@
5
5
  },
6
6
  "description": "Nordic DFU for Expo",
7
7
  "devDependencies": {
8
- "@types/react": "~18.3.12",
9
- "eslint-config-expo": "~8.0.1",
8
+ "@types/react": "~19.1.17",
9
+ "eslint-config-expo": "~10.0.0",
10
10
  "eslint-config-prettier": "^10.0.1",
11
- "eslint-plugin-jest": "^28.11.0",
12
- "eslint-plugin-prettier": "^5.2.3",
13
- "expo": "~52.0.46",
14
- "expo-doctor": "^1.12.5",
15
- "expo-module-scripts": "^4.0.5",
16
- "prettier": "^3.4.2",
17
- "react-native": "^0.76.9"
11
+ "eslint-plugin-jest": "^29.2.1",
12
+ "eslint-plugin-prettier": "^5.5.4",
13
+ "expo": "~54.0.25",
14
+ "expo-doctor": "^1.17.11",
15
+ "expo-module-scripts": "^5.0.7",
16
+ "prettier": "^3.7.4",
17
+ "react-native": "0.81.5"
18
+ },
19
+ "engines": {
20
+ "node": ">=20.19.4",
21
+ "npm": ">=10.8"
18
22
  },
19
23
  "expo-module": {
20
24
  "platforms": [
@@ -36,9 +40,9 @@
36
40
  "main": "build/index.js",
37
41
  "name": "@getquip/expo-nordic-dfu",
38
42
  "peerDependencies": {
39
- "expo": "^52.0.0",
40
- "react": "^18.0.0",
41
- "react-native": "^0.76.0"
43
+ "expo": "^54.0.25",
44
+ "react": "^19.1.0",
45
+ "react-native": "^0.81.5"
42
46
  },
43
47
  "publishConfig": {
44
48
  "access": "public"
@@ -56,8 +60,8 @@
56
60
  "build": "expo-module build",
57
61
  "clean": "expo-module clean",
58
62
  "expo-module": "expo-module",
59
- "eslint:check": "eslint . --max-warnings 0",
60
- "eslint:fix": "eslint . --fix",
63
+ "eslint:check": "eslint . --config eslint.config.mjs --max-warnings 0",
64
+ "eslint:fix": "eslint . --config eslint.config.mjs --fix",
61
65
  "open:android": "open -a \"Android Studio\" example/android",
62
66
  "open:ios": "xed example/ios",
63
67
  "prettier:check": "prettier --config .prettierrc --check '**/*.{ts,tsx,js,jsx}'",
@@ -68,5 +72,5 @@
68
72
  },
69
73
  "types": "build/index.d.ts",
70
74
  "url": "https://github.com/getquip/expo-nordic-dfu",
71
- "version": "1.0.0"
75
+ "version": "2.0.1"
72
76
  }
@@ -1,176 +0,0 @@
1
- apply plugin: "com.android.application"
2
- apply plugin: "org.jetbrains.kotlin.android"
3
- apply plugin: "com.facebook.react"
4
-
5
- def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
6
-
7
- /**
8
- * This is the configuration block to customize your React Native Android app.
9
- * By default you don't need to apply any configuration, just uncomment the lines you need.
10
- */
11
- react {
12
- entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
13
- reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
14
- hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
15
- codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
16
-
17
- // Use Expo CLI to bundle the app, this ensures the Metro config
18
- // works correctly with Expo projects.
19
- cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
20
- bundleCommand = "export:embed"
21
-
22
- /* Folders */
23
- // The root of your project, i.e. where "package.json" lives. Default is '../..'
24
- // root = file("../../")
25
- // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
26
- // reactNativeDir = file("../../node_modules/react-native")
27
- // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
28
- // codegenDir = file("../../node_modules/@react-native/codegen")
29
-
30
- /* Variants */
31
- // The list of variants to that are debuggable. For those we're going to
32
- // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
33
- // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
34
- // debuggableVariants = ["liteDebug", "prodDebug"]
35
-
36
- /* Bundling */
37
- // A list containing the node command and its flags. Default is just 'node'.
38
- // nodeExecutableAndArgs = ["node"]
39
-
40
- //
41
- // The path to the CLI configuration file. Default is empty.
42
- // bundleConfig = file(../rn-cli.config.js)
43
- //
44
- // The name of the generated asset file containing your JS bundle
45
- // bundleAssetName = "MyApplication.android.bundle"
46
- //
47
- // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
48
- // entryFile = file("../js/MyApplication.android.js")
49
- //
50
- // A list of extra flags to pass to the 'bundle' commands.
51
- // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
52
- // extraPackagerArgs = []
53
-
54
- /* Hermes Commands */
55
- // The hermes compiler command to run. By default it is 'hermesc'
56
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
57
- //
58
- // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
59
- // hermesFlags = ["-O", "-output-source-map"]
60
-
61
- /* Autolinking */
62
- autolinkLibrariesWithApp()
63
- }
64
-
65
- /**
66
- * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
67
- */
68
- def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
69
-
70
- /**
71
- * The preferred build flavor of JavaScriptCore (JSC)
72
- *
73
- * For example, to use the international variant, you can use:
74
- * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
75
- *
76
- * The international variant includes ICU i18n library and necessary data
77
- * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
78
- * give correct results when using with locales other than en-US. Note that
79
- * this variant is about 6MiB larger per architecture than default.
80
- */
81
- def jscFlavor = 'org.webkit:android-jsc:+'
82
-
83
- android {
84
- ndkVersion rootProject.ext.ndkVersion
85
-
86
- buildToolsVersion rootProject.ext.buildToolsVersion
87
- compileSdk rootProject.ext.compileSdkVersion
88
-
89
- namespace 'expo.modules.nordicdfu.example'
90
- defaultConfig {
91
- applicationId 'expo.modules.nordicdfu.example'
92
- minSdkVersion rootProject.ext.minSdkVersion
93
- targetSdkVersion rootProject.ext.targetSdkVersion
94
- versionCode 1
95
- versionName "1.0.0"
96
- }
97
- signingConfigs {
98
- debug {
99
- storeFile file('debug.keystore')
100
- storePassword 'android'
101
- keyAlias 'androiddebugkey'
102
- keyPassword 'android'
103
- }
104
- }
105
- buildTypes {
106
- debug {
107
- signingConfig signingConfigs.debug
108
- }
109
- release {
110
- // Caution! In production, you need to generate your own keystore file.
111
- // see https://reactnative.dev/docs/signed-apk-android.
112
- signingConfig signingConfigs.debug
113
- shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
114
- minifyEnabled enableProguardInReleaseBuilds
115
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
116
- crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
117
- }
118
- }
119
- packagingOptions {
120
- jniLibs {
121
- useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false)
122
- }
123
- }
124
- androidResources {
125
- ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
126
- }
127
- }
128
-
129
- // Apply static values from `gradle.properties` to the `android.packagingOptions`
130
- // Accepts values in comma delimited lists, example:
131
- // android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
132
- ["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
133
- // Split option: 'foo,bar' -> ['foo', 'bar']
134
- def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
135
- // Trim all elements in place.
136
- for (i in 0..<options.size()) options[i] = options[i].trim();
137
- // `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
138
- options -= ""
139
-
140
- if (options.length > 0) {
141
- println "android.packagingOptions.$prop += $options ($options.length)"
142
- // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
143
- options.each {
144
- android.packagingOptions[prop] += it
145
- }
146
- }
147
- }
148
-
149
- dependencies {
150
- // The version of react-native is set by the React Native Gradle Plugin
151
- implementation("com.facebook.react:react-android")
152
-
153
- def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
154
- def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
155
- def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
156
-
157
- if (isGifEnabled) {
158
- // For animated gif support
159
- implementation("com.facebook.fresco:animated-gif:${reactAndroidLibs.versions.fresco.get()}")
160
- }
161
-
162
- if (isWebpEnabled) {
163
- // For webp support
164
- implementation("com.facebook.fresco:webpsupport:${reactAndroidLibs.versions.fresco.get()}")
165
- if (isWebpAnimatedEnabled) {
166
- // Animated webp support
167
- implementation("com.facebook.fresco:animated-webp:${reactAndroidLibs.versions.fresco.get()}")
168
- }
169
- }
170
-
171
- if (hermesEnabled.toBoolean()) {
172
- implementation("com.facebook.react:hermes-android")
173
- } else {
174
- implementation jscFlavor
175
- }
176
- }
Binary file
@@ -1,14 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # By default, the flags in this file are appended to flags specified
3
- # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
- # You can edit the include path and order by changing the proguardFiles
5
- # directive in build.gradle.
6
- #
7
- # For more details, see
8
- # http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
- # react-native-reanimated
11
- -keep class com.swmansion.reanimated.** { *; }
12
- -keep class com.facebook.react.turbomodule.** { *; }
13
-
14
- # Add any project specific keep options here:
@@ -1,7 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- xmlns:tools="http://schemas.android.com/tools">
3
-
4
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5
-
6
- <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
7
- </manifest>
@@ -1,40 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
2
- <uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="30"/>
3
- <uses-permission-sdk-23 android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/>
4
- <uses-permission android:name="android.permission.BLUETOOTH"/>
5
- <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
6
- <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
7
- <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" tools:targetApi="31"/>
8
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
9
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"/>
10
- <uses-permission android:name="android.permission.INTERNET"/>
11
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
12
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
13
- <uses-permission android:name="android.permission.VIBRATE"/>
14
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
15
- <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
16
- <queries>
17
- <intent>
18
- <action android:name="android.intent.action.VIEW"/>
19
- <category android:name="android.intent.category.BROWSABLE"/>
20
- <data android:scheme="https"/>
21
- </intent>
22
- </queries>
23
- <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true">
24
- <meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
25
- <meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
26
- <meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
27
- <activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
28
- <intent-filter>
29
- <action android:name="android.intent.action.MAIN"/>
30
- <category android:name="android.intent.category.LAUNCHER"/>
31
- </intent-filter>
32
- <intent-filter>
33
- <action android:name="android.intent.action.VIEW"/>
34
- <category android:name="android.intent.category.DEFAULT"/>
35
- <category android:name="android.intent.category.BROWSABLE"/>
36
- <data android:scheme="expo.modules.nordicdfu.example"/>
37
- </intent-filter>
38
- </activity>
39
- </application>
40
- </manifest>
@@ -1,61 +0,0 @@
1
- package expo.modules.nordicdfu.example
2
-
3
- import android.os.Build
4
- import android.os.Bundle
5
-
6
- import com.facebook.react.ReactActivity
7
- import com.facebook.react.ReactActivityDelegate
8
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
9
- import com.facebook.react.defaults.DefaultReactActivityDelegate
10
-
11
- import expo.modules.ReactActivityDelegateWrapper
12
-
13
- class MainActivity : ReactActivity() {
14
- override fun onCreate(savedInstanceState: Bundle?) {
15
- // Set the theme to AppTheme BEFORE onCreate to support
16
- // coloring the background, status bar, and navigation bar.
17
- // This is required for expo-splash-screen.
18
- setTheme(R.style.AppTheme);
19
- super.onCreate(null)
20
- }
21
-
22
- /**
23
- * Returns the name of the main component registered from JavaScript. This is used to schedule
24
- * rendering of the component.
25
- */
26
- override fun getMainComponentName(): String = "main"
27
-
28
- /**
29
- * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
30
- * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
31
- */
32
- override fun createReactActivityDelegate(): ReactActivityDelegate {
33
- return ReactActivityDelegateWrapper(
34
- this,
35
- BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
36
- object : DefaultReactActivityDelegate(
37
- this,
38
- mainComponentName,
39
- fabricEnabled
40
- ){})
41
- }
42
-
43
- /**
44
- * Align the back button behavior with Android S
45
- * where moving root activities to background instead of finishing activities.
46
- * @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
47
- */
48
- override fun invokeDefaultOnBackPressed() {
49
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
50
- if (!moveTaskToBack(false)) {
51
- // For non-root activities, use the default implementation to finish them.
52
- super.invokeDefaultOnBackPressed()
53
- }
54
- return
55
- }
56
-
57
- // Use the default back button implementation on Android S
58
- // because it's doing more than [Activity.moveTaskToBack] in fact.
59
- super.invokeDefaultOnBackPressed()
60
- }
61
- }
@@ -1,57 +0,0 @@
1
- package expo.modules.nordicdfu.example
2
-
3
- import android.app.Application
4
- import android.content.res.Configuration
5
-
6
- import com.facebook.react.PackageList
7
- import com.facebook.react.ReactApplication
8
- import com.facebook.react.ReactNativeHost
9
- import com.facebook.react.ReactPackage
10
- import com.facebook.react.ReactHost
11
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
12
- import com.facebook.react.defaults.DefaultReactNativeHost
13
- import com.facebook.react.soloader.OpenSourceMergedSoMapping
14
- import com.facebook.soloader.SoLoader
15
-
16
- import expo.modules.ApplicationLifecycleDispatcher
17
- import expo.modules.ReactNativeHostWrapper
18
-
19
- class MainApplication : Application(), ReactApplication {
20
-
21
- override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
22
- this,
23
- object : DefaultReactNativeHost(this) {
24
- override fun getPackages(): List<ReactPackage> {
25
- val packages = PackageList(this).packages
26
- // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // packages.add(new MyReactNativePackage());
28
- return packages
29
- }
30
-
31
- override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
32
-
33
- override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
34
-
35
- override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
36
- override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
37
- }
38
- )
39
-
40
- override val reactHost: ReactHost
41
- get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
42
-
43
- override fun onCreate() {
44
- super.onCreate()
45
- SoLoader.init(this, OpenSourceMergedSoMapping)
46
- if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
47
- // If you opted-in for the New Architecture, we load the native entry point for this app.
48
- load()
49
- }
50
- ApplicationLifecycleDispatcher.onApplicationCreate(this)
51
- }
52
-
53
- override fun onConfigurationChanged(newConfig: Configuration) {
54
- super.onConfigurationChanged(newConfig)
55
- ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
56
- }
57
- }
@@ -1,6 +0,0 @@
1
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
2
- <item android:drawable="@color/splashscreen_background"/>
3
- <item>
4
- <bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
5
- </item>
6
- </layer-list>
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Copyright (C) 2014 The Android Open Source Project
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- -->
16
- <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
- android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
- android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
- android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
- >
22
-
23
- <selector>
24
- <!--
25
- This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
- The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
- NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
-
29
- <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
-
31
- For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
- -->
33
- <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
- <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
- </selector>
36
-
37
- </inset>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
- <background android:drawable="@color/iconBackground"/>
4
- <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
- </adaptive-icon>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
- <background android:drawable="@color/iconBackground"/>
4
- <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
- </adaptive-icon>
@@ -1,6 +0,0 @@
1
- <resources>
2
- <color name="splashscreen_background">#ffffff</color>
3
- <color name="iconBackground">#ffffff</color>
4
- <color name="colorPrimary">#023c69</color>
5
- <color name="colorPrimaryDark">#ffffff</color>
6
- </resources>
@@ -1,5 +0,0 @@
1
- <resources>
2
- <string name="app_name">expo-nordic-dfu-example</string>
3
- <string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
4
- <string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
5
- </resources>
@@ -1,17 +0,0 @@
1
- <resources xmlns:tools="http://schemas.android.com/tools">
2
- <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
3
- <item name="android:textColor">@android:color/black</item>
4
- <item name="android:editTextStyle">@style/ResetEditText</item>
5
- <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
6
- <item name="colorPrimary">@color/colorPrimary</item>
7
- <item name="android:statusBarColor">#ffffff</item>
8
- </style>
9
- <style name="ResetEditText" parent="@android:style/Widget.EditText">
10
- <item name="android:padding">0dp</item>
11
- <item name="android:textColorHint">#c8c8c8</item>
12
- <item name="android:textColor">@android:color/black</item>
13
- </style>
14
- <style name="Theme.App.SplashScreen" parent="AppTheme">
15
- <item name="android:windowBackground">@drawable/ic_launcher_background</item>
16
- </style>
17
- </resources>
@@ -1 +0,0 @@
1
- <resources/>