@getquip/expo-nordic-dfu 2.0.0 → 2.0.2

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 (71) hide show
  1. package/.github/workflows/conf-traffic.yml +2 -0
  2. package/README.md +20 -4
  3. package/example/README.md +1 -0
  4. package/example/package-lock.json +536 -809
  5. package/example/package.json +8 -8
  6. package/package.json +10 -10
  7. package/example/android/app/build.gradle +0 -182
  8. package/example/android/app/debug.keystore +0 -0
  9. package/example/android/app/proguard-rules.pro +0 -14
  10. package/example/android/app/src/debug/AndroidManifest.xml +0 -7
  11. package/example/android/app/src/debugOptimized/AndroidManifest.xml +0 -7
  12. package/example/android/app/src/main/AndroidManifest.xml +0 -34
  13. package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainActivity.kt +0 -61
  14. package/example/android/app/src/main/java/expo/modules/nordicdfu/example/MainApplication.kt +0 -56
  15. package/example/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
  16. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  17. package/example/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  18. package/example/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  19. package/example/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  20. package/example/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  21. package/example/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  22. package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  23. package/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  24. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  25. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  26. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  27. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  28. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  29. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  30. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  31. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  32. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  33. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  34. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  35. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  36. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  37. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  38. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  39. package/example/android/app/src/main/res/values/colors.xml +0 -6
  40. package/example/android/app/src/main/res/values/strings.xml +0 -5
  41. package/example/android/app/src/main/res/values/styles.xml +0 -11
  42. package/example/android/app/src/main/res/values-night/colors.xml +0 -1
  43. package/example/android/build.gradle +0 -24
  44. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  45. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  46. package/example/android/gradle.properties +0 -65
  47. package/example/android/gradlew +0 -251
  48. package/example/android/gradlew.bat +0 -94
  49. package/example/android/settings.gradle +0 -39
  50. package/example/ios/.xcode.env +0 -11
  51. package/example/ios/Podfile +0 -60
  52. package/example/ios/Podfile.lock +0 -2123
  53. package/example/ios/Podfile.properties.json +0 -5
  54. package/example/ios/exponordicdfuexample/AppDelegate.swift +0 -70
  55. package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  56. package/example/ios/exponordicdfuexample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -14
  57. package/example/ios/exponordicdfuexample/Images.xcassets/Contents.json +0 -6
  58. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenBackground.colorset/Contents.json +0 -20
  59. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLegacy.imageset/Contents.json +0 -23
  60. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLegacy.imageset/image.png +0 -0
  61. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLegacy.imageset/image@2x.png +0 -0
  62. package/example/ios/exponordicdfuexample/Images.xcassets/SplashScreenLegacy.imageset/image@3x.png +0 -0
  63. package/example/ios/exponordicdfuexample/Info.plist +0 -78
  64. package/example/ios/exponordicdfuexample/PrivacyInfo.xcprivacy +0 -48
  65. package/example/ios/exponordicdfuexample/SplashScreen.storyboard +0 -48
  66. package/example/ios/exponordicdfuexample/Supporting/Expo.plist +0 -12
  67. package/example/ios/exponordicdfuexample/exponordicdfuexample-Bridging-Header.h +0 -3
  68. package/example/ios/exponordicdfuexample/exponordicdfuexample.entitlements +0 -5
  69. package/example/ios/exponordicdfuexample.xcodeproj/project.pbxproj +0 -546
  70. package/example/ios/exponordicdfuexample.xcodeproj/xcshareddata/xcschemes/exponordicdfuexample.xcscheme +0 -88
  71. package/example/ios/exponordicdfuexample.xcworkspace/contents.xcworkspacedata +0 -10
@@ -1,5 +0,0 @@
1
- {
2
- "expo.jsEngine": "hermes",
3
- "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
4
- "newArchEnabled": "true"
5
- }
@@ -1,70 +0,0 @@
1
- import Expo
2
- import React
3
- import ReactAppDependencyProvider
4
-
5
- @UIApplicationMain
6
- public class AppDelegate: ExpoAppDelegate {
7
- var window: UIWindow?
8
-
9
- var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
10
- var reactNativeFactory: RCTReactNativeFactory?
11
-
12
- public override func application(
13
- _ application: UIApplication,
14
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
15
- ) -> Bool {
16
- let delegate = ReactNativeDelegate()
17
- let factory = ExpoReactNativeFactory(delegate: delegate)
18
- delegate.dependencyProvider = RCTAppDependencyProvider()
19
-
20
- reactNativeDelegate = delegate
21
- reactNativeFactory = factory
22
- bindReactNativeFactory(factory)
23
-
24
- #if os(iOS) || os(tvOS)
25
- window = UIWindow(frame: UIScreen.main.bounds)
26
- factory.startReactNative(
27
- withModuleName: "main",
28
- in: window,
29
- launchOptions: launchOptions)
30
- #endif
31
-
32
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
33
- }
34
-
35
- // Linking API
36
- public override func application(
37
- _ app: UIApplication,
38
- open url: URL,
39
- options: [UIApplication.OpenURLOptionsKey: Any] = [:]
40
- ) -> Bool {
41
- return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
42
- }
43
-
44
- // Universal Links
45
- public override func application(
46
- _ application: UIApplication,
47
- continue userActivity: NSUserActivity,
48
- restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
49
- ) -> Bool {
50
- let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
51
- return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
52
- }
53
- }
54
-
55
- class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
56
- // Extension point for config-plugins
57
-
58
- override func sourceURL(for bridge: RCTBridge) -> URL? {
59
- // needed to return the correct URL for expo-dev-client.
60
- bridge.bundleURL ?? bundleURL()
61
- }
62
-
63
- override func bundleURL() -> URL? {
64
- #if DEBUG
65
- return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
66
- #else
67
- return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
68
- #endif
69
- }
70
- }
@@ -1,14 +0,0 @@
1
- {
2
- "images": [
3
- {
4
- "filename": "App-Icon-1024x1024@1x.png",
5
- "idiom": "universal",
6
- "platform": "ios",
7
- "size": "1024x1024"
8
- }
9
- ],
10
- "info": {
11
- "version": 1,
12
- "author": "expo"
13
- }
14
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "expo"
5
- }
6
- }
@@ -1,20 +0,0 @@
1
- {
2
- "colors": [
3
- {
4
- "color": {
5
- "components": {
6
- "alpha": "1.000",
7
- "blue": "1.00000000000000",
8
- "green": "1.00000000000000",
9
- "red": "1.00000000000000"
10
- },
11
- "color-space": "srgb"
12
- },
13
- "idiom": "universal"
14
- }
15
- ],
16
- "info": {
17
- "version": 1,
18
- "author": "expo"
19
- }
20
- }
@@ -1,23 +0,0 @@
1
- {
2
- "images": [
3
- {
4
- "idiom": "universal",
5
- "filename": "image.png",
6
- "scale": "1x"
7
- },
8
- {
9
- "idiom": "universal",
10
- "filename": "image@2x.png",
11
- "scale": "2x"
12
- },
13
- {
14
- "idiom": "universal",
15
- "filename": "image@3x.png",
16
- "scale": "3x"
17
- }
18
- ],
19
- "info": {
20
- "version": 1,
21
- "author": "expo"
22
- }
23
- }
@@ -1,78 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CADisableMinimumFrameDurationOnPhone</key>
6
- <true/>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>$(DEVELOPMENT_LANGUAGE)</string>
9
- <key>CFBundleDisplayName</key>
10
- <string>expo-nordic-dfu-example</string>
11
- <key>CFBundleExecutable</key>
12
- <string>$(EXECUTABLE_NAME)</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>$(PRODUCT_NAME)</string>
19
- <key>CFBundlePackageType</key>
20
- <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.0.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleURLTypes</key>
26
- <array>
27
- <dict>
28
- <key>CFBundleURLSchemes</key>
29
- <array>
30
- <string>expo.modules.nordicdfu.example</string>
31
- </array>
32
- </dict>
33
- </array>
34
- <key>CFBundleVersion</key>
35
- <string>1</string>
36
- <key>LSMinimumSystemVersion</key>
37
- <string>12.0</string>
38
- <key>LSRequiresIPhoneOS</key>
39
- <true/>
40
- <key>NSAppTransportSecurity</key>
41
- <dict>
42
- <key>NSAllowsArbitraryLoads</key>
43
- <false/>
44
- <key>NSAllowsLocalNetworking</key>
45
- <true/>
46
- </dict>
47
- <key>NSBluetoothAlwaysUsageDescription</key>
48
- <string>to connect to to Bluetooth devices</string>
49
- <key>RCTNewArchEnabled</key>
50
- <true/>
51
- <key>UILaunchStoryboardName</key>
52
- <string>SplashScreen</string>
53
- <key>UIRequiredDeviceCapabilities</key>
54
- <array>
55
- <string>arm64</string>
56
- </array>
57
- <key>UIRequiresFullScreen</key>
58
- <false/>
59
- <key>UIStatusBarStyle</key>
60
- <string>UIStatusBarStyleDefault</string>
61
- <key>UISupportedInterfaceOrientations</key>
62
- <array>
63
- <string>UIInterfaceOrientationPortrait</string>
64
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
65
- </array>
66
- <key>UISupportedInterfaceOrientations~ipad</key>
67
- <array>
68
- <string>UIInterfaceOrientationPortrait</string>
69
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
70
- <string>UIInterfaceOrientationLandscapeLeft</string>
71
- <string>UIInterfaceOrientationLandscapeRight</string>
72
- </array>
73
- <key>UIUserInterfaceStyle</key>
74
- <string>Light</string>
75
- <key>UIViewControllerBasedStatusBarAppearance</key>
76
- <false/>
77
- </dict>
78
- </plist>
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>NSPrivacyAccessedAPITypes</key>
6
- <array>
7
- <dict>
8
- <key>NSPrivacyAccessedAPIType</key>
9
- <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
10
- <key>NSPrivacyAccessedAPITypeReasons</key>
11
- <array>
12
- <string>CA92.1</string>
13
- </array>
14
- </dict>
15
- <dict>
16
- <key>NSPrivacyAccessedAPIType</key>
17
- <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
18
- <key>NSPrivacyAccessedAPITypeReasons</key>
19
- <array>
20
- <string>0A2A.1</string>
21
- <string>3B52.1</string>
22
- <string>C617.1</string>
23
- </array>
24
- </dict>
25
- <dict>
26
- <key>NSPrivacyAccessedAPIType</key>
27
- <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
28
- <key>NSPrivacyAccessedAPITypeReasons</key>
29
- <array>
30
- <string>E174.1</string>
31
- <string>85F4.1</string>
32
- </array>
33
- </dict>
34
- <dict>
35
- <key>NSPrivacyAccessedAPIType</key>
36
- <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
37
- <key>NSPrivacyAccessedAPITypeReasons</key>
38
- <array>
39
- <string>35F9.1</string>
40
- </array>
41
- </dict>
42
- </array>
43
- <key>NSPrivacyCollectedDataTypes</key>
44
- <array/>
45
- <key>NSPrivacyTracking</key>
46
- <false/>
47
- </dict>
48
- </plist>
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="24093.7" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
3
- <device id="retina6_12" orientation="portrait" appearance="light"/>
4
- <dependencies>
5
- <deployment identifier="iOS"/>
6
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="24053.1"/>
7
- <capability name="Named colors" minToolsVersion="9.0"/>
8
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9
- <capability name="System colors in document resources" minToolsVersion="11.0"/>
10
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11
- </dependencies>
12
- <scenes>
13
- <scene sceneID="EXPO-SCENE-1">
14
- <objects>
15
- <viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
16
- <view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
17
- <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
18
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
19
- <subviews>
20
- <imageView id="EXPO-SplashScreen" userLabel="SplashScreenLegacy" image="SplashScreenLegacy" contentMode="scaleAspectFit" clipsSubviews="true" userInteractionEnabled="false" translatesAutoresizingMaskIntoConstraints="false">
21
- <rect key="frame" x="0" y="0" width="414" height="736"/>
22
- </imageView>
23
- </subviews>
24
- <viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
25
- <constraints>
26
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="83fcb9b545b870ba44c24f0feeb116490c499c52"/>
27
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="61d16215e44b98e39d0a2c74fdbfaaa22601b12c"/>
28
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="f934da460e9ab5acae3ad9987d5b676a108796c1"/>
29
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="d6a0be88096b36fb132659aa90203d39139deda9"/>
30
- </constraints>
31
- <color key="backgroundColor" name="SplashScreenBackground"/>
32
- </view>
33
- </viewController>
34
- <placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
35
- </objects>
36
- <point key="canvasLocation" x="0.0" y="0.0"/>
37
- </scene>
38
- </scenes>
39
- <resources>
40
- <image name="SplashScreenLegacy" width="414" height="736"/>
41
- <systemColor name="systemBackgroundColor">
42
- <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
43
- </systemColor>
44
- <namedColor name="SplashScreenBackground">
45
- <color alpha="1.000" blue="1.00000000000000" green="1.00000000000000" red="1.00000000000000" customColorSpace="sRGB" colorSpace="custom"/>
46
- </namedColor>
47
- </resources>
48
- </document>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>EXUpdatesCheckOnLaunch</key>
6
- <string>ALWAYS</string>
7
- <key>EXUpdatesEnabled</key>
8
- <false/>
9
- <key>EXUpdatesLaunchWaitMs</key>
10
- <integer>0</integer>
11
- </dict>
12
- </plist>
@@ -1,3 +0,0 @@
1
- //
2
- // Use this file to import your target's public headers that you would like to expose to Swift.
3
- //
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict/>
5
- </plist>