@coinbase/create-cdp-app 0.0.26 → 0.0.28

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 (82) hide show
  1. package/dist/index.js +39 -10
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template-react-native/App.tsx +359 -0
  5. package/template-react-native/EOATransaction.tsx +360 -0
  6. package/template-react-native/README.md +57 -0
  7. package/template-react-native/SmartAccountTransaction.tsx +304 -0
  8. package/template-react-native/Transaction.tsx +1 -0
  9. package/template-react-native/_gitignore +37 -0
  10. package/template-react-native/android/app/build.gradle +177 -0
  11. package/template-react-native/android/app/debug.keystore +0 -0
  12. package/template-react-native/android/app/proguard-rules.pro +14 -0
  13. package/template-react-native/android/app/src/debug/AndroidManifest.xml +7 -0
  14. package/template-react-native/android/app/src/main/AndroidManifest.xml +25 -0
  15. package/template-react-native/android/app/src/main/java/com/anonymous/reactnativeexpo/MainActivity.kt +61 -0
  16. package/template-react-native/android/app/src/main/java/com/anonymous/reactnativeexpo/MainApplication.kt +57 -0
  17. package/template-react-native/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  18. package/template-react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  19. package/template-react-native/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  20. package/template-react-native/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  21. package/template-react-native/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  22. package/template-react-native/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  23. package/template-react-native/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  24. package/template-react-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  25. package/template-react-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  26. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  27. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  28. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  29. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  30. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  31. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  32. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  33. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  34. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  35. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  36. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  37. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  38. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  39. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  40. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  41. package/template-react-native/android/app/src/main/res/values/colors.xml +6 -0
  42. package/template-react-native/android/app/src/main/res/values/strings.xml +5 -0
  43. package/template-react-native/android/app/src/main/res/values/styles.xml +10 -0
  44. package/template-react-native/android/app/src/main/res/values-night/colors.xml +1 -0
  45. package/template-react-native/android/build.gradle +37 -0
  46. package/template-react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  47. package/template-react-native/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  48. package/template-react-native/android/gradle.properties +59 -0
  49. package/template-react-native/android/gradlew +251 -0
  50. package/template-react-native/android/gradlew.bat +94 -0
  51. package/template-react-native/android/settings.gradle +39 -0
  52. package/template-react-native/app.json +34 -0
  53. package/template-react-native/assets/adaptive-icon.png +0 -0
  54. package/template-react-native/assets/favicon.png +0 -0
  55. package/template-react-native/assets/icon.png +0 -0
  56. package/template-react-native/assets/splash-icon.png +0 -0
  57. package/template-react-native/env.example +5 -0
  58. package/template-react-native/index.ts +20 -0
  59. package/template-react-native/ios/.xcode.env +11 -0
  60. package/template-react-native/ios/Podfile +64 -0
  61. package/template-react-native/ios/Podfile.lock +2125 -0
  62. package/template-react-native/ios/Podfile.properties.json +5 -0
  63. package/template-react-native/ios/reactnativeexpo/AppDelegate.swift +70 -0
  64. package/template-react-native/ios/reactnativeexpo/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  65. package/template-react-native/ios/reactnativeexpo/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
  66. package/template-react-native/ios/reactnativeexpo/Images.xcassets/Contents.json +6 -0
  67. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
  68. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/Contents.json +23 -0
  69. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image.png +0 -0
  70. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image@2x.png +0 -0
  71. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image@3x.png +0 -0
  72. package/template-react-native/ios/reactnativeexpo/Info.plist +74 -0
  73. package/template-react-native/ios/reactnativeexpo/PrivacyInfo.xcprivacy +48 -0
  74. package/template-react-native/ios/reactnativeexpo/SplashScreen.storyboard +44 -0
  75. package/template-react-native/ios/reactnativeexpo/Supporting/Expo.plist +12 -0
  76. package/template-react-native/ios/reactnativeexpo/reactnativeexpo-Bridging-Header.h +3 -0
  77. package/template-react-native/ios/reactnativeexpo/reactnativeexpo.entitlements +5 -0
  78. package/template-react-native/ios/reactnativeexpo.xcodeproj/project.pbxproj +545 -0
  79. package/template-react-native/ios/reactnativeexpo.xcodeproj/xcshareddata/xcschemes/reactnativeexpo.xcscheme +88 -0
  80. package/template-react-native/ios/reactnativeexpo.xcworkspace/contents.xcworkspacedata +10 -0
  81. package/template-react-native/package.json +30 -0
  82. package/template-react-native/tsconfig.json +6 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "expo.jsEngine": "hermes",
3
+ "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
4
+ "newArchEnabled": "true"
5
+ }
@@ -0,0 +1,70 @@
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
+ }
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "expo"
5
+ }
6
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,74 @@
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>react-native-expo</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>com.anonymous.reactnativeexpo</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>UILaunchStoryboardName</key>
48
+ <string>SplashScreen</string>
49
+ <key>UIRequiredDeviceCapabilities</key>
50
+ <array>
51
+ <string>arm64</string>
52
+ </array>
53
+ <key>UIRequiresFullScreen</key>
54
+ <false/>
55
+ <key>UIStatusBarStyle</key>
56
+ <string>UIStatusBarStyleDefault</string>
57
+ <key>UISupportedInterfaceOrientations</key>
58
+ <array>
59
+ <string>UIInterfaceOrientationPortrait</string>
60
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
61
+ </array>
62
+ <key>UISupportedInterfaceOrientations~ipad</key>
63
+ <array>
64
+ <string>UIInterfaceOrientationPortrait</string>
65
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
66
+ <string>UIInterfaceOrientationLandscapeLeft</string>
67
+ <string>UIInterfaceOrientationLandscapeRight</string>
68
+ </array>
69
+ <key>UIUserInterfaceStyle</key>
70
+ <string>Light</string>
71
+ <key>UIViewControllerBasedStatusBarAppearance</key>
72
+ <false/>
73
+ </dict>
74
+ </plist>
@@ -0,0 +1,48 @@
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>
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" 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="22685"/>
7
+ <capability name="Named colors" minToolsVersion="9.0"/>
8
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+ </dependencies>
11
+ <scenes>
12
+ <scene sceneID="EXPO-SCENE-1">
13
+ <objects>
14
+ <viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
15
+ <view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
16
+ <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
17
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
18
+ <subviews>
19
+ <imageView id="EXPO-SplashScreen" userLabel="SplashScreenLogo" image="SplashScreenLogo" contentMode="scaleAspectFit" clipsSubviews="true" userInteractionEnabled="false" translatesAutoresizingMaskIntoConstraints="false">
20
+ <rect key="frame" x="0" y="0" width="414" height="736"/>
21
+ </imageView>
22
+ </subviews>
23
+ <viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
24
+ <constraints>
25
+ <constraint firstItem="EXPO-SplashScreen" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="83fcb9b545b870ba44c24f0feeb116490c499c52"/>
26
+ <constraint firstItem="EXPO-SplashScreen" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="61d16215e44b98e39d0a2c74fdbfaaa22601b12c"/>
27
+ <constraint firstItem="EXPO-SplashScreen" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="f934da460e9ab5acae3ad9987d5b676a108796c1"/>
28
+ <constraint firstItem="EXPO-SplashScreen" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="d6a0be88096b36fb132659aa90203d39139deda9"/>
29
+ </constraints>
30
+ <color key="backgroundColor" name="SplashScreenBackground"/>
31
+ </view>
32
+ </viewController>
33
+ <placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
34
+ </objects>
35
+ <point key="canvasLocation" x="0.0" y="0.0"/>
36
+ </scene>
37
+ </scenes>
38
+ <resources>
39
+ <image name="SplashScreenLogo" width="414" height="736"/>
40
+ <namedColor name="SplashScreenBackground">
41
+ <color alpha="1.000" blue="1.00000000000000" green="1.00000000000000" red="1.00000000000000" customColorSpace="sRGB" colorSpace="custom"/>
42
+ </namedColor>
43
+ </resources>
44
+ </document>
@@ -0,0 +1,12 @@
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>
@@ -0,0 +1,3 @@
1
+ //
2
+ // Use this file to import your target's public headers that you would like to expose to Swift.
3
+ //
@@ -0,0 +1,5 @@
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>