@account-kit/react-native-signer 4.1.8-alpha → 4.6.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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/android/src/main/java/com/accountkit/reactnativesigner/NativeTEKStamperModule.kt +12 -180
  3. package/android/src/main/java/com/accountkit/reactnativesigner/{KeyExtensions.kt → core/KeyExtensions.kt} +1 -1
  4. package/android/src/main/java/com/accountkit/reactnativesigner/{TEKManager.kt → core/TEKManager.kt} +3 -2
  5. package/android/src/main/java/com/accountkit/reactnativesigner/core/TEKStamper.kt +199 -0
  6. package/android/src/main/java/com/accountkit/reactnativesigner/core/errors/NoInjectedBundleException.kt +3 -0
  7. package/android/src/main/java/com/accountkit/reactnativesigner/core/errors/NoTEKException.kt +3 -0
  8. package/android/src/main/java/com/accountkit/reactnativesigner/core/errors/StamperNotInitialized.kt +3 -0
  9. package/package.json +6 -5
  10. package/.github/actions/setup/action.yml +0 -27
  11. package/.github/workflows/ci.yml +0 -157
  12. package/.npmrc +0 -1
  13. package/.turbo/turbo-prepare.log +0 -21
  14. package/.watchmanconfig +0 -1
  15. package/babel.config.js +0 -5
  16. package/example/.bundle/config +0 -2
  17. package/example/.watchmanconfig +0 -1
  18. package/example/Gemfile +0 -9
  19. package/example/README.md +0 -79
  20. package/example/android/app/build.gradle +0 -133
  21. package/example/android/app/debug.keystore +0 -0
  22. package/example/android/app/proguard-rules.pro +0 -10
  23. package/example/android/app/src/debug/AndroidManifest.xml +0 -9
  24. package/example/android/app/src/main/AndroidManifest.xml +0 -17
  25. package/example/android/app/src/main/java/accountkit/reactnativesigner/example/MainActivity.kt +0 -27
  26. package/example/android/app/src/main/java/accountkit/reactnativesigner/example/MainApplication.kt +0 -48
  27. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  28. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  29. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  30. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  31. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  32. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  33. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  34. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  35. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  36. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  37. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  38. package/example/android/app/src/main/res/values/strings.xml +0 -3
  39. package/example/android/app/src/main/res/values/styles.xml +0 -9
  40. package/example/android/build.gradle +0 -21
  41. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  42. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  43. package/example/android/gradle.properties +0 -41
  44. package/example/android/gradlew +0 -252
  45. package/example/android/gradlew.bat +0 -94
  46. package/example/android/settings.gradle +0 -6
  47. package/example/app.json +0 -4
  48. package/example/babel.config.js +0 -12
  49. package/example/index.js +0 -6
  50. package/example/ios/.xcode.env +0 -11
  51. package/example/ios/File.swift +0 -6
  52. package/example/ios/Podfile +0 -47
  53. package/example/ios/ReactNativeSignerExample/AppDelegate.h +0 -6
  54. package/example/ios/ReactNativeSignerExample/AppDelegate.mm +0 -31
  55. package/example/ios/ReactNativeSignerExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  56. package/example/ios/ReactNativeSignerExample/Images.xcassets/Contents.json +0 -6
  57. package/example/ios/ReactNativeSignerExample/Info.plist +0 -52
  58. package/example/ios/ReactNativeSignerExample/LaunchScreen.storyboard +0 -47
  59. package/example/ios/ReactNativeSignerExample/PrivacyInfo.xcprivacy +0 -37
  60. package/example/ios/ReactNativeSignerExample/main.m +0 -10
  61. package/example/ios/ReactNativeSignerExample-Bridging-Header.h +0 -3
  62. package/example/ios/ReactNativeSignerExample.xcodeproj/project.pbxproj +0 -690
  63. package/example/ios/ReactNativeSignerExample.xcodeproj/xcshareddata/xcschemes/ReactNativeSignerExample.xcscheme +0 -98
  64. package/example/ios/ReactNativeSignerExampleTests/Info.plist +0 -24
  65. package/example/ios/ReactNativeSignerExampleTests/ReactNativeSignerExampleTests.m +0 -66
  66. package/example/jest.config.js +0 -3
  67. package/example/metro.config.js +0 -22
  68. package/example/package.json +0 -56
  69. package/example/react-native.config.js +0 -15
  70. package/example/redirect-server/index.ts +0 -19
  71. package/example/src/App.tsx +0 -30
  72. package/example/src/screens/Home.tsx +0 -149
  73. package/example/turbo.json +0 -38
  74. package/react-native.config.js +0 -11
  75. package/tsconfig.build.json +0 -4
  76. package/tsconfig.json +0 -30
  77. package/turbo.json +0 -9
@@ -1,157 +0,0 @@
1
- name: CI
2
- on:
3
- push:
4
- branches:
5
- - main
6
- pull_request:
7
- branches:
8
- - main
9
- merge_group:
10
- types:
11
- - checks_requested
12
-
13
- jobs:
14
- lint:
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: Checkout
18
- uses: actions/checkout@v3
19
-
20
- - name: Setup
21
- uses: ./.github/actions/setup
22
-
23
- - name: Lint files
24
- run: yarn lint
25
-
26
- - name: Typecheck files
27
- run: yarn typecheck
28
-
29
- test:
30
- runs-on: ubuntu-latest
31
- steps:
32
- - name: Checkout
33
- uses: actions/checkout@v3
34
-
35
- - name: Setup
36
- uses: ./.github/actions/setup
37
-
38
- - name: Run unit tests
39
- run: yarn test --maxWorkers=2 --coverage
40
-
41
- build-library:
42
- runs-on: ubuntu-latest
43
- steps:
44
- - name: Checkout
45
- uses: actions/checkout@v3
46
-
47
- - name: Setup
48
- uses: ./.github/actions/setup
49
-
50
- - name: Build package
51
- run: yarn prepare
52
-
53
- build-android:
54
- runs-on: ubuntu-latest
55
- env:
56
- TURBO_CACHE_DIR: .turbo/android
57
- steps:
58
- - name: Checkout
59
- uses: actions/checkout@v3
60
-
61
- - name: Setup
62
- uses: ./.github/actions/setup
63
-
64
- - name: Cache turborepo for Android
65
- uses: actions/cache@v3
66
- with:
67
- path: ${{ env.TURBO_CACHE_DIR }}
68
- key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
69
- restore-keys: |
70
- ${{ runner.os }}-turborepo-android-
71
-
72
- - name: Check turborepo cache for Android
73
- run: |
74
- TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
75
-
76
- if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
77
- echo "turbo_cache_hit=1" >> $GITHUB_ENV
78
- fi
79
-
80
- - name: Install JDK
81
- if: env.turbo_cache_hit != 1
82
- uses: actions/setup-java@v3
83
- with:
84
- distribution: "zulu"
85
- java-version: "17"
86
-
87
- - name: Finalize Android SDK
88
- if: env.turbo_cache_hit != 1
89
- run: |
90
- /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
91
-
92
- - name: Cache Gradle
93
- if: env.turbo_cache_hit != 1
94
- uses: actions/cache@v3
95
- with:
96
- path: |
97
- ~/.gradle/wrapper
98
- ~/.gradle/caches
99
- key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
100
- restore-keys: |
101
- ${{ runner.os }}-gradle-
102
-
103
- - name: Build example for Android
104
- env:
105
- JAVA_OPTS: "-XX:MaxHeapSize=6g"
106
- run: |
107
- yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
108
-
109
- build-ios:
110
- runs-on: macos-14
111
- env:
112
- TURBO_CACHE_DIR: .turbo/ios
113
- steps:
114
- - name: Checkout
115
- uses: actions/checkout@v3
116
-
117
- - name: Setup
118
- uses: ./.github/actions/setup
119
-
120
- - name: Cache turborepo for iOS
121
- uses: actions/cache@v3
122
- with:
123
- path: ${{ env.TURBO_CACHE_DIR }}
124
- key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
125
- restore-keys: |
126
- ${{ runner.os }}-turborepo-ios-
127
-
128
- - name: Check turborepo cache for iOS
129
- run: |
130
- TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
131
-
132
- if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
133
- echo "turbo_cache_hit=1" >> $GITHUB_ENV
134
- fi
135
-
136
- - name: Cache cocoapods
137
- if: env.turbo_cache_hit != 1
138
- id: cocoapods-cache
139
- uses: actions/cache@v3
140
- with:
141
- path: |
142
- **/ios/Pods
143
- key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
144
- restore-keys: |
145
- ${{ runner.os }}-cocoapods-
146
-
147
- - name: Install cocoapods
148
- if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
149
- run: |
150
- cd example/ios
151
- pod install
152
- env:
153
- NO_FLIPPER: 1
154
-
155
- - name: Build example for iOS
156
- run: |
157
- yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
package/.npmrc DELETED
@@ -1 +0,0 @@
1
- //registry.npmjs.org/:_authToken=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
@@ -1,21 +0,0 @@
1
-
2
- yarn run v1.22.22
3
- warning package.json: No license field
4
- $ bob build
5
- ℹ Building target codegen
6
- ℹ Building target commonjs
7
- ℹ Cleaning up previous build at lib/commonjs
8
- ℹ Building target module
9
- ℹ Cleaning up previous build at lib/module
10
- ℹ Building target typescript
11
- ℹ Cleaning up previous build at lib/typescript
12
- ℹ Cleaning up previous iOS codegen native code at ios/generated
13
- ℹ Compiling 5 files in src with babel
14
- ℹ Compiling 5 files in src with babel
15
- ℹ Cleaning up previous Android codegen native code at android/generated
16
- ℹ Generating type definitions with tsc
17
- ✔ Wrote files to lib/module
18
- ✔ Wrote files to lib/commonjs
19
- ✔ Wrote definition files to lib/typescript
20
- ✔ Generated native code with codegen
21
- ✨ Done in 4.75s.
package/.watchmanconfig DELETED
@@ -1 +0,0 @@
1
- {}
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- ["module:react-native-builder-bob/babel-preset", { modules: "commonjs" }],
4
- ],
5
- };
@@ -1,2 +0,0 @@
1
- BUNDLE_PATH: "vendor/bundle"
2
- BUNDLE_FORCE_RUBY_PLATFORM: 1
@@ -1 +0,0 @@
1
- {}
package/example/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
6
- # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
- gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
- gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
- gem 'xcodeproj', '< 1.26.0'
package/example/README.md DELETED
@@ -1,79 +0,0 @@
1
- This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2
-
3
- # Getting Started
4
-
5
- > **Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
6
-
7
- ## Step 1: Start the Metro Server
8
-
9
- First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
10
-
11
- To start Metro, run the following command from the _root_ of your React Native project:
12
-
13
- ```bash
14
- # using npm
15
- npm start
16
-
17
- # OR using Yarn
18
- yarn start
19
- ```
20
-
21
- ## Step 2: Start your Application
22
-
23
- Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
24
-
25
- ### For Android
26
-
27
- ```bash
28
- # using npm
29
- npm run android
30
-
31
- # OR using Yarn
32
- yarn android
33
- ```
34
-
35
- ### For iOS
36
-
37
- ```bash
38
- # using npm
39
- npm run ios
40
-
41
- # OR using Yarn
42
- yarn ios
43
- ```
44
-
45
- If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46
-
47
- This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48
-
49
- ## Step 3: Modifying your App
50
-
51
- Now that you have successfully run the app, let's modify it.
52
-
53
- 1. Open `App.tsx` in your text editor of choice and edit some lines.
54
- 2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55
-
56
- For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57
-
58
- ## Congratulations! :tada:
59
-
60
- You've successfully run and modified your React Native App. :partying_face:
61
-
62
- ### Now what?
63
-
64
- - If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65
- - If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66
-
67
- # Troubleshooting
68
-
69
- If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70
-
71
- # Learn More
72
-
73
- To learn more about React Native, take a look at the following resources:
74
-
75
- - [React Native Website](https://reactnative.dev) - learn more about React Native.
76
- - [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77
- - [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78
- - [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79
- - [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
@@ -1,133 +0,0 @@
1
- apply plugin: "com.android.application"
2
- apply plugin: "org.jetbrains.kotlin.android"
3
- apply plugin: "com.facebook.react"
4
- apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
5
-
6
- /**
7
- * This is the configuration block to customize your React Native Android app.
8
- * By default you don't need to apply any configuration, just uncomment the lines you need.
9
- */
10
- react {
11
- /* Folders */
12
- // The root of your project, i.e. where "package.json" lives. Default is '../..'
13
- // root = file("../../")
14
- // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
15
- // reactNativeDir = file("../../node_modules/react-native")
16
- // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
17
- // codegenDir = file("../../node_modules/@react-native/codegen")
18
- // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
19
- // cliFile = file("../../node_modules/react-native/cli.js")
20
-
21
- /* Variants */
22
- // The list of variants to that are debuggable. For those we're going to
23
- // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
24
- // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
25
- // debuggableVariants = ["liteDebug", "prodDebug"]
26
-
27
- /* Bundling */
28
- // A list containing the node command and its flags. Default is just 'node'.
29
- // nodeExecutableAndArgs = ["node"]
30
- //
31
- // The command to run when bundling. By default is 'bundle'
32
- // bundleCommand = "ram-bundle"
33
- //
34
- // The path to the CLI configuration file. Default is empty.
35
- // bundleConfig = file(../rn-cli.config.js)
36
- //
37
- // The name of the generated asset file containing your JS bundle
38
- // bundleAssetName = "MyApplication.android.bundle"
39
- //
40
- // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
41
- // entryFile = file("../js/MyApplication.android.js")
42
- //
43
- // A list of extra flags to pass to the 'bundle' commands.
44
- // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
45
- // extraPackagerArgs = []
46
-
47
- /* Hermes Commands */
48
- // The hermes compiler command to run. By default it is 'hermesc'
49
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
50
- //
51
- // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
52
- // hermesFlags = ["-O", "-output-source-map"]
53
-
54
- /* Autolinking */
55
- autolinkLibrariesWithApp()
56
- }
57
-
58
- /**
59
- * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
60
- */
61
- def enableProguardInReleaseBuilds = false
62
-
63
- /**
64
- * The preferred build flavor of JavaScriptCore (JSC)
65
- *
66
- * For example, to use the international variant, you can use:
67
- * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
68
- *
69
- * The international variant includes ICU i18n library and necessary data
70
- * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
71
- * give correct results when using with locales other than en-US. Note that
72
- * this variant is about 6MiB larger per architecture than default.
73
- */
74
- def jscFlavor = 'org.webkit:android-jsc:+'
75
-
76
- android {
77
- ndkVersion rootProject.ext.ndkVersion
78
- buildToolsVersion rootProject.ext.buildToolsVersion
79
- compileSdk rootProject.ext.compileSdkVersion
80
-
81
- namespace "accountkit.reactnativesigner.example"
82
- defaultConfig {
83
- applicationId "accountkit.reactnativesigner.example"
84
- minSdkVersion rootProject.ext.minSdkVersion
85
- targetSdkVersion rootProject.ext.targetSdkVersion
86
- versionCode 1
87
- versionName "1.0"
88
- }
89
- signingConfigs {
90
- debug {
91
- storeFile file('debug.keystore')
92
- storePassword 'android'
93
- keyAlias 'androiddebugkey'
94
- keyPassword 'android'
95
- }
96
- }
97
- buildTypes {
98
- debug {
99
- signingConfig signingConfigs.debug
100
- }
101
- release {
102
- // Caution! In production, you need to generate your own keystore file.
103
- // see https://reactnative.dev/docs/signed-apk-android.
104
- signingConfig signingConfigs.debug
105
- minifyEnabled enableProguardInReleaseBuilds
106
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
107
- }
108
- }
109
- }
110
-
111
- dependencies {
112
- // The version of react-native is set by the React Native Gradle Plugin
113
- implementation("com.facebook.react:react-android")
114
-
115
- if (hermesEnabled.toBoolean()) {
116
- implementation("com.facebook.react:hermes-android")
117
- } else {
118
- implementation jscFlavor
119
- }
120
- }
121
-
122
- def isNewArchitectureEnabled() {
123
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
124
- }
125
-
126
- if (isNewArchitectureEnabled()) {
127
- // Since our library doesn't invoke codegen automatically we need to do it here.
128
- tasks.register('invokeLibraryCodegen', Exec) {
129
- workingDir "$rootDir/../../"
130
- commandLine "npx", "bob", "build", "--target", "codegen"
131
- }
132
- preBuild.dependsOn invokeLibraryCodegen
133
- }
Binary file
@@ -1,10 +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
- # Add any project specific keep options here:
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:tools="http://schemas.android.com/tools">
4
-
5
- <application
6
- android:usesCleartextTraffic="true"
7
- tools:targetApi="28"
8
- tools:ignore="GoogleAppIndexingWarning"/>
9
- </manifest>
@@ -1,17 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
- <uses-permission android:name="android.permission.INTERNET"/>
3
- <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:supportsRtl="true">
4
- <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:exported="true">
5
- <intent-filter>
6
- <action android:name="android.intent.action.MAIN"/>
7
- <category android:name="android.intent.category.LAUNCHER"/>
8
- </intent-filter>
9
- <intent-filter>
10
- <action android:name="android.intent.action.VIEW"/>
11
- <category android:name="android.intent.category.DEFAULT"/>
12
- <category android:name="android.intent.category.BROWSABLE"/>
13
- <data android:scheme="rn-signer-demo"/>
14
- </intent-filter>
15
- </activity>
16
- </application>
17
- </manifest>
@@ -1,27 +0,0 @@
1
- package accountkit.reactnativesigner.example
2
-
3
- import com.facebook.react.ReactActivity
4
- import com.facebook.react.ReactActivityDelegate
5
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
- import com.facebook.react.defaults.DefaultReactActivityDelegate
7
- import android.os.Bundle
8
-
9
- class MainActivity : ReactActivity() {
10
-
11
- // Necessary for react-native-screens
12
- override fun onCreate(savedInstanceState: Bundle?) {
13
- super.onCreate(null)
14
- }
15
- /**
16
- * Returns the name of the main component registered from JavaScript. This is used to schedule
17
- * rendering of the component.
18
- */
19
- override fun getMainComponentName(): String = "ReactNativeSignerExample"
20
-
21
- /**
22
- * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
23
- * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
24
- */
25
- override fun createReactActivityDelegate(): ReactActivityDelegate =
26
- DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
27
- }
@@ -1,48 +0,0 @@
1
- package accountkit.reactnativesigner.example
2
-
3
- import android.app.Application
4
- import com.accountkit.reactnativesigner.NativeTEKStamperModule
5
- import com.accountkit.reactnativesigner.NativeTEKStamperSpec
6
- import com.accountkit.reactnativesigner.ReactNativeSignerPackage
7
- import com.facebook.react.PackageList
8
- import com.facebook.react.ReactApplication
9
- import com.facebook.react.ReactHost
10
- import com.facebook.react.ReactNativeHost
11
- import com.facebook.react.ReactPackage
12
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
13
- import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
14
- import com.facebook.react.defaults.DefaultReactNativeHost
15
- import com.facebook.react.soloader.OpenSourceMergedSoMapping
16
- import com.facebook.soloader.SoLoader
17
-
18
- class MainApplication : Application(), ReactApplication {
19
-
20
- override val reactNativeHost: ReactNativeHost =
21
- object : DefaultReactNativeHost(this) {
22
- override fun getPackages(): List<ReactPackage> =
23
- PackageList(this).packages.apply {
24
- // Packages that cannot be autolinked yet can be added manually here, for
25
- // example:
26
- add(ReactNativeSignerPackage())
27
- }
28
-
29
- override fun getJSMainModuleName(): String = "index"
30
-
31
- override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
32
-
33
- override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
34
- override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
35
- }
36
-
37
- override val reactHost: ReactHost
38
- get() = getDefaultReactHost(applicationContext, reactNativeHost)
39
-
40
- override fun onCreate() {
41
- super.onCreate()
42
- SoLoader.init(this, OpenSourceMergedSoMapping)
43
- if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
44
- // If you opted-in for the New Architecture, we load the native entry point for this app.
45
- load()
46
- }
47
- }
48
- }
@@ -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,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">ReactNativeSignerExample</string>
3
- </resources>
@@ -1,9 +0,0 @@
1
- <resources>
2
-
3
- <!-- Base application theme. -->
4
- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
- <!-- Customize your theme here. -->
6
- <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
- </style>
8
-
9
- </resources>
@@ -1,21 +0,0 @@
1
- buildscript {
2
- ext {
3
- buildToolsVersion = "35.0.0"
4
- minSdkVersion = 24
5
- compileSdkVersion = 35
6
- targetSdkVersion = 34
7
- ndkVersion = "26.1.10909125"
8
- kotlinVersion = "1.9.24"
9
- }
10
- repositories {
11
- google()
12
- mavenCentral()
13
- }
14
- dependencies {
15
- classpath("com.android.tools.build:gradle")
16
- classpath("com.facebook.react:react-native-gradle-plugin")
17
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
18
- }
19
- }
20
-
21
- apply plugin: "com.facebook.react.rootproject"
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists