@getquip/expo-nordic-dfu 0.2.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/.eslintrc.js +2 -23
  2. package/.github/CODEOWNERS +1 -1
  3. package/.github/workflows/audit.yml +3 -6
  4. package/.github/workflows/conf-traffic.yml +102 -0
  5. package/.github/workflows/lint.yml +11 -22
  6. package/.github/workflows/test.yml +4 -8
  7. package/.nvmrc +1 -1
  8. package/.prettierignore +1 -0
  9. package/README.md +3 -5
  10. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/results.bin +1 -0
  11. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/BuildConfig.dex +0 -0
  12. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/DfuService.dex +0 -0
  13. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.dex +0 -0
  14. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.dex +0 -0
  15. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.dex +0 -0
  16. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.dex +0 -0
  17. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.dex +0 -0
  18. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
  19. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
  20. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
  21. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
  22. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.dex +0 -0
  23. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.dex +0 -0
  24. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.dex +0 -0
  25. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.dex +0 -0
  26. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.dex +0 -0
  27. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/ExpoNordicDfuModule.dex +0 -0
  28. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/getquip/nordic/NotificationActivity.dex +0 -0
  29. package/android/build/.transforms/576c59059c5ad48575c7ca8b06b65f9b/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  30. package/android/build/.transforms/758c7658fec337f3b4bcf2d457b86828/results.bin +1 -0
  31. package/android/build/.transforms/758c7658fec337f3b4bcf2d457b86828/transformed/classes/classes_dex/classes.dex +0 -0
  32. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  33. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
  34. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +1 -1
  35. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  36. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +5 -5
  37. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
  38. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/DfuService.class +0 -0
  39. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
  40. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
  41. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
  42. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
  43. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
  44. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  45. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  46. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  47. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  48. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
  49. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
  50. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
  51. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
  52. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/getquip/nordic/NotificationActivity.class +0 -0
  55. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  93. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  94. package/android/build/tmp/kotlin-classes/debug/META-INF/getquip-expo-nordic-dfu_debug.kotlin_module +0 -0
  95. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/DfuService.class +0 -0
  96. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$1.class +0 -0
  97. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$1$2.class +0 -0
  98. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$1.class +0 -0
  99. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$2.class +0 -0
  100. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunction$3.class +0 -0
  101. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  102. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  103. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  104. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  105. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$5.class +0 -0
  106. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$6.class +0 -0
  107. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$7.class +0 -0
  108. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$definition$lambda$10$$inlined$AsyncFunctionWithPromise$8.class +0 -0
  109. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule$dfuProgressListener$1.class +0 -0
  110. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/ExpoNordicDfuModule.class +0 -0
  111. package/android/build/tmp/kotlin-classes/debug/com/getquip/nordic/NotificationActivity.class +0 -0
  112. package/eslint.config.mjs +34 -0
  113. package/example/.nvmrc +1 -1
  114. package/example/App.tsx +6 -4
  115. package/example/android/app/build.gradle +16 -10
  116. package/example/android/app/src/debugOptimized/AndroidManifest.xml +7 -0
  117. package/example/android/app/src/main/AndroidManifest.xml +1 -7
  118. package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainApplication.kt +15 -16
  119. package/example/android/app/src/main/res/values/styles.xml +2 -8
  120. package/example/android/build.gradle +17 -34
  121. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  122. package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  123. package/example/android/gradle.properties +10 -1
  124. package/example/android/gradlew +3 -4
  125. package/example/android/gradlew.bat +2 -2
  126. package/example/android/settings.gradle +25 -24
  127. package/example/ios/Podfile +14 -20
  128. package/example/ios/Podfile.lock +909 -730
  129. package/example/ios/exponordicdfuexample/AppDelegate.swift +70 -0
  130. package/example/ios/exponordicdfuexample/Info.plist +2 -0
  131. package/example/ios/exponordicdfuexample/SplashScreen.storyboard +8 -4
  132. package/example/ios/exponordicdfuexample/exponordicdfuexample-Bridging-Header.h +1 -1
  133. package/example/ios/exponordicdfuexample.xcodeproj/project.pbxproj +88 -86
  134. package/example/package-lock.json +1930 -4350
  135. package/example/package.json +13 -7
  136. package/ios/ExpoNordicDfuModule.swift +4 -2
  137. package/package.json +18 -14
  138. package/example/ios/exponordicdfuexample/AppDelegate.h +0 -7
  139. package/example/ios/exponordicdfuexample/AppDelegate.mm +0 -62
  140. package/example/ios/exponordicdfuexample/main.m +0 -10
  141. package/example/ios/exponordicdfuexample/noop-file.swift +0 -4
  142. /package/example/ios/exponordicdfuexample/Images.xcassets/{SplashScreenLogo.imageset → SplashScreenLegacy.imageset}/Contents.json +0 -0
  143. /package/example/ios/exponordicdfuexample/Images.xcassets/{SplashScreenLogo.imageset → SplashScreenLegacy.imageset}/image.png +0 -0
  144. /package/example/ios/exponordicdfuexample/Images.xcassets/{SplashScreenLogo.imageset → SplashScreenLegacy.imageset}/image@2x.png +0 -0
  145. /package/example/ios/exponordicdfuexample/Images.xcassets/{SplashScreenLogo.imageset → SplashScreenLegacy.imageset}/image@3x.png +0 -0
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');
@@ -1,3 +1,3 @@
1
1
  # These owners will be the default owners for everything in
2
2
  # the repo. Unless a later match takes precedence,
3
- * @getquip/ecomm
3
+ * @getquip/mobile
@@ -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,102 @@
1
+ name: Weekly GitHub Activity Report
2
+ on:
3
+ schedule:
4
+ - cron: "0 9 * * 1" # Every Monday at 9:00 UTC
5
+ workflow_dispatch:
6
+ jobs:
7
+ run:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/create-github-app-token@v2
12
+ id: app-token
13
+ with:
14
+ app-id: ${{ secrets.REPO_ADMIN_READ_APP_ID }}
15
+ private-key: ${{ secrets.REPO_ADMIN_READ_APP_PRIVATE_KEY }}
16
+ - name: Fetch stats
17
+ id: stats
18
+ env:
19
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
20
+ run: |
21
+ GH_API="/repos/${{ github.repository }}"
22
+ TRAFFIC_API="/repos/${{ github.repository }}/traffic/views"
23
+ ACCEPT_HEADER="Accept: application/vnd.github+json"
24
+ API_VERSION_HEADER="X-GitHub-Api-Version: 2022-11-28"
25
+
26
+ repo_json=$(gh api -H "$ACCEPT_HEADER" -H "$API_VERSION_HEADER" "$GH_API")
27
+ forks=$(echo "$repo_json" | jq .forks_count)
28
+ watchers=$(echo "$repo_json" | jq .watchers)
29
+ stars=$(echo "$repo_json" | jq .stargazers_count)
30
+ visitors_json=$(gh api -H "$ACCEPT_HEADER" -H "$API_VERSION_HEADER" "$TRAFFIC_API")
31
+ visitors=$(echo "$visitors_json" | jq .count)
32
+
33
+ {
34
+ echo "FORKS=${forks}"
35
+ echo "WATCHERS=${watchers}"
36
+ echo "STARS=${stars}"
37
+ echo "VISITORS=${visitors}"
38
+ } >> "$GITHUB_ENV"
39
+ - name: Send Slack notification
40
+ run: |
41
+ run_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
42
+ payload=$(jq -n \
43
+ --arg repo "${{ github.repository }}" \
44
+ --arg repo_url "${{ github.server_url }}/${{ github.repository }}" \
45
+ --arg forks "$FORKS" \
46
+ --arg stars "$STARS" \
47
+ --arg watchers "$WATCHERS" \
48
+ --arg visitors "$VISITORS" \
49
+ --arg run_url "$run_url" \
50
+ '{
51
+ blocks: [
52
+ {
53
+ type: "header",
54
+ text: {
55
+ type: "plain_text",
56
+ text: ":bar_chart: Weekly Open Source Activity Report",
57
+ "emoji": true
58
+ }
59
+ },
60
+ {
61
+ type: "section",
62
+ text: {
63
+ type: "mrkdwn",
64
+ text: "*Repository: <\($repo_url)|\($repo)>*"
65
+ }
66
+ },
67
+ {
68
+ type: "section",
69
+ fields: [
70
+ {
71
+ type: "mrkdwn",
72
+ text: ":fork: *Forks*: \($forks)"
73
+ },
74
+ {
75
+ type: "mrkdwn",
76
+ text: ":star: *Stars*: \($stars)"
77
+ },
78
+ {
79
+ type: "mrkdwn",
80
+ text: ":eye: *Watchers*: \($watchers)"
81
+ },
82
+ {
83
+ type: "mrkdwn",
84
+ text: ":wave: *Visitors (14d)*: \($visitors)"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ type: "context",
90
+ "elements": [
91
+ {
92
+ type: "mrkdwn",
93
+ text: "<\($run_url)|Generated By>"
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ }')
99
+
100
+ curl -X POST -H 'Content-type: application/json' \
101
+ --data "$payload" \
102
+ ${{ 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
@@ -1,7 +1,5 @@
1
1
  # Expo Nordic DFU
2
2
 
3
- *Note*: First release is not out yet!
4
-
5
3
  This project was highly inspired by the original React Native project at [Pilloxa/react-native-nordic-dfu](https://github.com/Pilloxa/react-native-nordic-dfu). We continued the work so it functions with modern [Expo](http://expo.dev/) projects that use [Expo Modules](https://docs.expo.dev/modules/overview/).
6
4
 
7
5
  This module allows you to perform a Secure Device Firmware Update (DFU) for Nordic Semiconductors on Expo React Native bridgeless projects. It wraps the official libraries at [NordicSemiconductor/Android-DFU-Library](https://github.com/NordicSemiconductor/Android-DFU-Library) and [NordicSemiconductor/IOS-DFU-Library](https://github.com/NordicSemiconductor/IOS-DFU-Library). This will not support Legacy DFU out of the box!
@@ -13,9 +11,9 @@ This project does not provide an interface for scanning/connecting devices via B
13
11
  ## Requirements
14
12
 
15
13
  - Nordic zip firmware file
16
- - Android 14 or 15
17
- - iOS 17 or 18
18
- - Expo SDK 52
14
+ - Android 14+
15
+ - iOS 17+
16
+ - Expo SDK 54
19
17
  - React Native Bridgeless (new architecture) enabled
20
18
 
21
19
  ## Usage
@@ -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>