iamport-react-native 2.0.15 → 3.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.
- package/CHANGELOG.md +7 -0
- package/README.md +12 -2
- package/lib/commonjs/components/Certification/index.js +69 -69
- package/lib/commonjs/components/Certification/index.js.map +1 -1
- package/lib/commonjs/components/ErrorOnParams/index.js +10 -9
- package/lib/commonjs/components/ErrorOnParams/index.js.map +1 -1
- package/lib/commonjs/components/Loading/index.js +10 -9
- package/lib/commonjs/components/Loading/index.js.map +1 -1
- package/lib/commonjs/components/Payment/index.js +91 -92
- package/lib/commonjs/components/Payment/index.js.map +1 -1
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles.js.map +1 -1
- package/lib/commonjs/utils/IamportUrl.js +48 -29
- package/lib/commonjs/utils/IamportUrl.js.map +1 -1
- package/lib/commonjs/utils/Validation.js +1 -2
- package/lib/commonjs/utils/Validation.js.map +1 -1
- package/lib/commonjs/utils/ValidationForPayment.js.map +1 -1
- package/lib/module/components/Certification/index.js +75 -72
- package/lib/module/components/Certification/index.js.map +1 -1
- package/lib/module/components/ErrorOnParams/index.js +13 -9
- package/lib/module/components/ErrorOnParams/index.js.map +1 -1
- package/lib/module/components/Loading/index.js +13 -9
- package/lib/module/components/Loading/index.js.map +1 -1
- package/lib/module/components/Payment/index.js +95 -93
- package/lib/module/components/Payment/index.js.map +1 -1
- package/lib/module/constants/index.js +2 -0
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/index.js +6 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/styles.js +2 -0
- package/lib/module/styles.js.map +1 -1
- package/lib/module/utils/IamportUrl.js +51 -29
- package/lib/module/utils/IamportUrl.js.map +1 -1
- package/lib/module/utils/Validation.js +3 -2
- package/lib/module/utils/Validation.js.map +1 -1
- package/lib/module/utils/ValidationForPayment.js +4 -2
- package/lib/module/utils/ValidationForPayment.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/{components → src/components}/Certification/index.d.ts +1 -2
- package/lib/typescript/src/components/Certification/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ErrorOnParams/index.d.ts +6 -0
- package/lib/typescript/src/components/ErrorOnParams/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Loading/index.d.ts +3 -0
- package/lib/typescript/src/components/Loading/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Payment/index.d.ts +1 -2
- package/lib/typescript/src/components/Payment/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/{styles.d.ts → src/styles.d.ts} +2 -2
- package/lib/typescript/src/styles.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/IamportUrl.d.ts +8 -7
- package/lib/typescript/src/utils/IamportUrl.d.ts.map +1 -0
- package/lib/typescript/src/utils/Validation.d.ts.map +1 -0
- package/lib/typescript/src/utils/ValidationForPayment.d.ts.map +1 -0
- package/package.json +91 -64
- package/src/components/Certification/index.tsx +7 -7
- package/src/components/ErrorOnParams/index.tsx +1 -2
- package/src/components/Loading/index.tsx +1 -2
- package/src/components/Payment/index.tsx +6 -6
- package/src/utils/IamportUrl.ts +54 -26
- package/.circleci/config.yml +0 -98
- package/.editorconfig +0 -15
- package/.gitattributes +0 -3
- package/.gitignore +0 -69
- package/.yarnrc +0 -3
- package/.yarnrc.yml +0 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +0 -128
- package/android/gradle.properties +0 -4
- package/android/src/main/AndroidManifest.xml +0 -4
- package/android/src/main/java/com/iamportreactnative/IamportReactNativePackage.kt +0 -17
- package/android/src/main/java/com/iamportreactnative/IamportReactNativeViewManager.kt +0 -20
- package/babel.config.js +0 -3
- package/example/.gitignore +0 -69
- package/example/README.md +0 -44
- package/example/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/example/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/example/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/example/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
- package/example/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/example/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/example/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/7.5.1/gc.properties +0 -0
- package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/example/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/android/app/build.gradle +0 -183
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +0 -10
- package/example/android/app/src/debug/AndroidManifest.xml +0 -8
- package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java +0 -69
- package/example/android/app/src/main/AndroidManifest.xml +0 -34
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainActivity.java +0 -15
- package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java +0 -80
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +0 -3
- package/example/android/app/src/main/res/values/styles.xml +0 -9
- package/example/android/build.gradle +0 -21
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/example/android/gradle.properties +0 -44
- package/example/android/gradlew +0 -183
- package/example/android/gradlew.bat +0 -103
- package/example/android/settings.gradle +0 -9
- package/example/app.json +0 -4
- package/example/babel.config.js +0 -11
- package/example/index.js +0 -5
- package/example/ios/File.swift +0 -8
- package/example/ios/Gemfile +0 -7
- package/example/ios/Gemfile.lock +0 -99
- package/example/ios/IamportReactNativeExample/AppDelegate.h +0 -15
- package/example/ios/IamportReactNativeExample/AppDelegate.mm +0 -138
- package/example/ios/IamportReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/example/ios/IamportReactNativeExample/Images.xcassets/Contents.json +0 -6
- package/example/ios/IamportReactNativeExample/Info.plist +0 -121
- package/example/ios/IamportReactNativeExample/LaunchScreen.storyboard +0 -58
- package/example/ios/IamportReactNativeExample/main.m +0 -16
- package/example/ios/IamportReactNativeExample-Bridging-Header.h +0 -3
- package/example/ios/IamportReactNativeExample.xcodeproj/project.pbxproj +0 -969
- package/example/ios/IamportReactNativeExample.xcodeproj/xcshareddata/xcschemes/IamportReactNativeExample.xcscheme +0 -99
- package/example/ios/IamportReactNativeExample.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/ios/IamportReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/ios/Podfile +0 -57
- package/example/ios/Podfile.lock +0 -756
- package/example/metro.config.js +0 -66
- package/example/package.json +0 -40
- package/example/src/App.tsx +0 -17
- package/example/src/Certification/index.tsx +0 -30
- package/example/src/CertificationResult/index.tsx +0 -79
- package/example/src/CertificationTest/index.tsx +0 -214
- package/example/src/Home/index.tsx +0 -87
- package/example/src/Loading/index.tsx +0 -12
- package/example/src/NavigationService.tsx +0 -127
- package/example/src/Payment/index.tsx +0 -28
- package/example/src/PaymentResult/index.tsx +0 -96
- package/example/src/PaymentTest/index.tsx +0 -383
- package/example/src/Picker/index.tsx +0 -60
- package/example/src/constants.ts +0 -274
- package/example/src/utils.ts +0 -83
- package/example/yarn.lock +0 -7358
- package/exampleForExpo/.buckconfig +0 -6
- package/exampleForExpo/.expo/README.md +0 -8
- package/exampleForExpo/.expo/devices.json +0 -3
- package/exampleForExpo/.gitattributes +0 -1
- package/exampleForExpo/.gitignore +0 -125
- package/exampleForExpo/.idea/.gitignore +0 -3
- package/exampleForExpo/.idea/caches/deviceStreaming.xml +0 -549
- package/exampleForExpo/.idea/exampleForExpo.iml +0 -9
- package/exampleForExpo/.idea/misc.xml +0 -6
- package/exampleForExpo/.idea/modules.xml +0 -8
- package/exampleForExpo/.idea/vcs.xml +0 -6
- package/exampleForExpo/.idea/workspace.xml +0 -53
- package/exampleForExpo/README.md +0 -58
- package/exampleForExpo/__tests__/App.js +0 -10
- package/exampleForExpo/android/.gitignore +0 -21
- package/exampleForExpo/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/exampleForExpo/android/.gradle/7.5.1/gc.properties +0 -0
- package/exampleForExpo/android/.gradle/vcs-1/gc.properties +0 -0
- package/exampleForExpo/android/app/BUCK +0 -55
- package/exampleForExpo/android/app/build.gradle +0 -362
- package/exampleForExpo/android/app/build_defs.bzl +0 -19
- package/exampleForExpo/android/app/debug.keystore +0 -0
- package/exampleForExpo/android/app/proguard-rules.pro +0 -14
- package/exampleForExpo/android/app/src/debug/AndroidManifest.xml +0 -7
- package/exampleForExpo/android/app/src/debug/java/kr/iamport/exampleForExpo/ReactNativeFlipper.java +0 -69
- package/exampleForExpo/android/app/src/main/AndroidManifest.xml +0 -34
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainActivity.java +0 -83
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainApplication.java +0 -106
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/MainApplicationReactNativeHost.java +0 -117
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/exampleForExpo/android/app/src/main/jni/CMakeLists.txt +0 -7
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
- package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
- package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/exampleForExpo/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/exampleForExpo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/exampleForExpo/android/app/src/main/res/drawable/splashscreen.xml +0 -4
- package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/exampleForExpo/android/app/src/main/res/values/colors.xml +0 -4
- package/exampleForExpo/android/app/src/main/res/values/strings.xml +0 -3
- package/exampleForExpo/android/app/src/main/res/values/styles.xml +0 -17
- package/exampleForExpo/android/app/src/main/res/values-night/colors.xml +0 -1
- package/exampleForExpo/android/build.gradle +0 -65
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/exampleForExpo/android/gradle.properties +0 -53
- package/exampleForExpo/android/gradlew +0 -240
- package/exampleForExpo/android/gradlew.bat +0 -91
- package/exampleForExpo/android/settings.gradle +0 -17
- package/exampleForExpo/app.json +0 -16
- package/exampleForExpo/babel.config.js +0 -11
- package/exampleForExpo/index.js +0 -9
- package/exampleForExpo/ios/.gitignore +0 -30
- package/exampleForExpo/ios/.xcode.env +0 -11
- package/exampleForExpo/ios/Podfile +0 -61
- package/exampleForExpo/ios/Podfile.lock +0 -734
- package/exampleForExpo/ios/Podfile.properties.json +0 -3
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.h +0 -9
- package/exampleForExpo/ios/exampleForExpo/AppDelegate.mm +0 -166
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/Contents.json +0 -6
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
- package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/exampleForExpo/ios/exampleForExpo/Info.plist +0 -118
- package/exampleForExpo/ios/exampleForExpo/SplashScreen.storyboard +0 -43
- package/exampleForExpo/ios/exampleForExpo/Supporting/Expo.plist +0 -16
- package/exampleForExpo/ios/exampleForExpo/exampleForExpo.entitlements +0 -8
- package/exampleForExpo/ios/exampleForExpo/main.m +0 -10
- package/exampleForExpo/ios/exampleForExpo/noop-file.swift +0 -4
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/project.pbxproj +0 -544
- package/exampleForExpo/ios/exampleForExpo.xcodeproj/xcshareddata/xcschemes/exampleForExpo.xcscheme +0 -88
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/contents.xcworkspacedata +0 -10
- package/exampleForExpo/ios/exampleForExpo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/exampleForExpo/metro.config.js +0 -62
- package/exampleForExpo/package.json +0 -40
- package/exampleForExpo/src/App.js +0 -14
- package/exampleForExpo/src/Certification/index.js +0 -25
- package/exampleForExpo/src/CertificationResult/index.js +0 -61
- package/exampleForExpo/src/CertificationTest/index.js +0 -151
- package/exampleForExpo/src/Home/index.js +0 -80
- package/exampleForExpo/src/Loading/index.js +0 -10
- package/exampleForExpo/src/NavigationService.js +0 -102
- package/exampleForExpo/src/Payment/index.js +0 -23
- package/exampleForExpo/src/PaymentResult/index.js +0 -82
- package/exampleForExpo/src/PaymentTest/index.js +0 -313
- package/exampleForExpo/src/Picker/index.js +0 -19
- package/exampleForExpo/src/constants.js +0 -322
- package/exampleForExpo/src/utils.js +0 -116
- package/exampleForExpo/yarn.lock +0 -9498
- package/exampleForManagedExpo/.expo-shared/assets.json +0 -4
- package/exampleForManagedExpo/.gitignore +0 -22
- package/exampleForManagedExpo/App.js +0 -11
- package/exampleForManagedExpo/README.md +0 -33
- package/exampleForManagedExpo/app.json +0 -90
- package/exampleForManagedExpo/assets/adaptive-icon.png +0 -0
- package/exampleForManagedExpo/assets/favicon.png +0 -0
- package/exampleForManagedExpo/assets/icon.png +0 -0
- package/exampleForManagedExpo/assets/splash.png +0 -0
- package/exampleForManagedExpo/babel.config.js +0 -11
- package/exampleForManagedExpo/metro.config.js +0 -62
- package/exampleForManagedExpo/package.json +0 -36
- package/exampleForManagedExpo/src/Certification/index.js +0 -25
- package/exampleForManagedExpo/src/CertificationResult/index.js +0 -61
- package/exampleForManagedExpo/src/CertificationTest/index.js +0 -151
- package/exampleForManagedExpo/src/Home/index.js +0 -80
- package/exampleForManagedExpo/src/Loading/index.js +0 -10
- package/exampleForManagedExpo/src/NavigationService.js +0 -102
- package/exampleForManagedExpo/src/Payment/index.js +0 -23
- package/exampleForManagedExpo/src/PaymentResult/index.js +0 -82
- package/exampleForManagedExpo/src/PaymentTest/index.js +0 -313
- package/exampleForManagedExpo/src/Picker/index.js +0 -19
- package/exampleForManagedExpo/src/constants.js +0 -322
- package/exampleForManagedExpo/src/utils.js +0 -116
- package/exampleForManagedExpo/yarn.lock +0 -9411
- package/exampleForWebView/.buckconfig +0 -6
- package/exampleForWebView/.eslintrc.js +0 -4
- package/exampleForWebView/.gitattributes +0 -3
- package/exampleForWebView/.gitignore +0 -68
- package/exampleForWebView/.prettierrc.js +0 -7
- package/exampleForWebView/.watchmanconfig +0 -1
- package/exampleForWebView/README.md +0 -77
- package/exampleForWebView/__tests__/App-test.tsx +0 -14
- package/exampleForWebView/_editorconfig +0 -3
- package/exampleForWebView/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/exampleForWebView/android/.gradle/7.5.1/gc.properties +0 -0
- package/exampleForWebView/android/.gradle/vcs-1/gc.properties +0 -0
- package/exampleForWebView/android/app/BUCK +0 -55
- package/exampleForWebView/android/app/build.gradle +0 -313
- package/exampleForWebView/android/app/build_defs.bzl +0 -19
- package/exampleForWebView/android/app/debug.keystore +0 -0
- package/exampleForWebView/android/app/proguard-rules.pro +0 -10
- package/exampleForWebView/android/app/src/debug/AndroidManifest.xml +0 -13
- package/exampleForWebView/android/app/src/debug/java/com/exampleforwebview/ReactNativeFlipper.java +0 -73
- package/exampleForWebView/android/app/src/main/AndroidManifest.xml +0 -26
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainActivity.java +0 -48
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainApplication.java +0 -91
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/MainApplicationReactNativeHost.java +0 -116
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/exampleForWebView/android/app/src/main/jni/CMakeLists.txt +0 -7
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
- package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
- package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/exampleForWebView/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/exampleForWebView/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/exampleForWebView/android/app/src/main/res/values/strings.xml +0 -3
- package/exampleForWebView/android/app/src/main/res/values/styles.xml +0 -9
- package/exampleForWebView/android/build.gradle +0 -51
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/exampleForWebView/android/gradle.properties +0 -40
- package/exampleForWebView/android/gradlew +0 -234
- package/exampleForWebView/android/gradlew.bat +0 -89
- package/exampleForWebView/android/settings.gradle +0 -11
- package/exampleForWebView/app.json +0 -4
- package/exampleForWebView/babel.config.js +0 -11
- package/exampleForWebView/index.js +0 -9
- package/exampleForWebView/ios/.xcode.env +0 -11
- package/exampleForWebView/ios/Podfile +0 -43
- package/exampleForWebView/ios/Podfile.lock +0 -748
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.h +0 -8
- package/exampleForWebView/ios/exampleForWebView/AppDelegate.mm +0 -133
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/exampleForWebView/ios/exampleForWebView/Images.xcassets/Contents.json +0 -6
- package/exampleForWebView/ios/exampleForWebView/Info.plist +0 -96
- package/exampleForWebView/ios/exampleForWebView/LaunchScreen.storyboard +0 -47
- package/exampleForWebView/ios/exampleForWebView/main.m +0 -10
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/project.pbxproj +0 -723
- package/exampleForWebView/ios/exampleForWebView.xcodeproj/xcshareddata/xcschemes/exampleForWebView.xcscheme +0 -88
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/contents.xcworkspacedata +0 -10
- package/exampleForWebView/ios/exampleForWebView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/exampleForWebView/ios/exampleForWebViewTests/Info.plist +0 -24
- package/exampleForWebView/ios/exampleForWebViewTests/exampleForWebViewTests.m +0 -66
- package/exampleForWebView/manuals/CERTIFICATION.md +0 -223
- package/exampleForWebView/manuals/PAYMENT.md +0 -232
- package/exampleForWebView/metro.config.js +0 -61
- package/exampleForWebView/package.json +0 -54
- package/exampleForWebView/src/App.tsx +0 -50
- package/exampleForWebView/src/Certification.tsx +0 -54
- package/exampleForWebView/src/Home.tsx +0 -49
- package/exampleForWebView/src/Loading.tsx +0 -23
- package/exampleForWebView/src/Payment.tsx +0 -65
- package/exampleForWebView/yarn.lock +0 -7362
- package/iamport-react-native.podspec +0 -19
- package/ios/IamportReactNative-Bridging-Header.h +0 -1
- package/ios/IamportReactNative.xcodeproj/project.pbxproj +0 -293
- package/ios/IamportReactNativeViewManager.m +0 -12
- package/ios/IamportReactNativeViewManager.swift +0 -32
- package/lib/typescript/components/Certification/index.d.ts.map +0 -1
- package/lib/typescript/components/ErrorOnParams/index.d.ts +0 -7
- package/lib/typescript/components/ErrorOnParams/index.d.ts.map +0 -1
- package/lib/typescript/components/Loading/index.d.ts +0 -4
- package/lib/typescript/components/Loading/index.d.ts.map +0 -1
- package/lib/typescript/components/Payment/index.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/styles.d.ts.map +0 -1
- package/lib/typescript/utils/IamportUrl.d.ts.map +0 -1
- package/lib/typescript/utils/Validation.d.ts.map +0 -1
- package/lib/typescript/utils/ValidationForPayment.d.ts.map +0 -1
- package/manuals/CALLBACK.md +0 -72
- package/manuals/EXAMPLE.md +0 -168
- package/manuals/EXPO.md +0 -246
- package/manuals/INSTALL.md +0 -31
- package/manuals/SETTING.md +0 -140
- package/manuals/SUPPORT.md +0 -35
- package/manuals/TRANS.md +0 -77
- package/manuals/VERSION.md +0 -187
- package/manuals/assets/after-linking-iamport.png +0 -0
- package/manuals/assets/after-linking-webview.png +0 -0
- package/manuals/assets/allow-arbitrary.gif +0 -0
- package/manuals/assets/android-studio-avd-manager.png +0 -0
- package/manuals/assets/android-studio-build.png +0 -0
- package/manuals/assets/app-scheme-registry.gif +0 -0
- package/manuals/assets/expo-eject.png +0 -0
- package/manuals/assets/ios-emulator-certification.png +0 -0
- package/manuals/assets/ios-emulator-home.png +0 -0
- package/manuals/assets/ios-emulator-payment.png +0 -0
- package/manuals/assets/ios-trans-create-header-file-1.png +0 -0
- package/manuals/assets/ios-trans-create-header-file-2.png +0 -0
- package/manuals/assets/ios-trans-create-objectivec-file-1.png +0 -0
- package/manuals/assets/ios-trans-create-objectivec-file-2.png +0 -0
- package/manuals/assets/ios-trans-result.png +0 -0
- package/manuals/assets/webview-peer-dependency.png +0 -0
- package/scripts/bootstrap.js +0 -24
- package/tsconfig.build.json +0 -9
- package/tsconfig.json +0 -26
- package/yarn.lock +0 -6174
- /package/lib/typescript/{constants → src/constants}/index.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{utils → src/utils}/Validation.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/ValidationForPayment.d.ts +0 -0
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
apply plugin: "com.android.application"
|
|
2
|
-
apply plugin: "com.facebook.react"
|
|
3
|
-
|
|
4
|
-
import com.android.build.OutputFile
|
|
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
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Set this to true to create four separate APKs instead of one,
|
|
57
|
-
* one for each native architecture. This is useful if you don't
|
|
58
|
-
* use App Bundles (https://developer.android.com/guide/app-bundle/)
|
|
59
|
-
* and want to have separate APKs to upload to the Play Store.
|
|
60
|
-
*/
|
|
61
|
-
def enableSeparateBuildPerCPUArchitecture = false
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
|
|
65
|
-
*/
|
|
66
|
-
def enableProguardInReleaseBuilds = false
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The preferred build flavor of JavaScriptCore (JSC)
|
|
70
|
-
*
|
|
71
|
-
* For example, to use the international variant, you can use:
|
|
72
|
-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
|
|
73
|
-
*
|
|
74
|
-
* The international variant includes ICU i18n library and necessary data
|
|
75
|
-
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
|
|
76
|
-
* give correct results when using with locales other than en-US. Note that
|
|
77
|
-
* this variant is about 6MiB larger per architecture than default.
|
|
78
|
-
*/
|
|
79
|
-
def jscFlavor = 'org.webkit:android-jsc:+'
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Private function to get the list of Native Architectures you want to build.
|
|
83
|
-
* This reads the value from reactNativeArchitectures in your gradle.properties
|
|
84
|
-
* file and works together with the --active-arch-only flag of react-native run-android.
|
|
85
|
-
*/
|
|
86
|
-
def reactNativeArchitectures() {
|
|
87
|
-
def value = project.getProperties().get("reactNativeArchitectures")
|
|
88
|
-
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
android {
|
|
92
|
-
ndkVersion rootProject.ext.ndkVersion
|
|
93
|
-
|
|
94
|
-
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
95
|
-
|
|
96
|
-
namespace "com.example.iamportreactnative"
|
|
97
|
-
defaultConfig {
|
|
98
|
-
applicationId "com.example.iamportreactnative"
|
|
99
|
-
minSdkVersion rootProject.ext.minSdkVersion
|
|
100
|
-
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
101
|
-
versionCode 1
|
|
102
|
-
versionName "1.0"
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
splits {
|
|
106
|
-
abi {
|
|
107
|
-
reset()
|
|
108
|
-
enable enableSeparateBuildPerCPUArchitecture
|
|
109
|
-
universalApk false // If true, also generate a universal APK
|
|
110
|
-
include (*reactNativeArchitectures())
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
signingConfigs {
|
|
114
|
-
debug {
|
|
115
|
-
storeFile file('debug.keystore')
|
|
116
|
-
storePassword 'android'
|
|
117
|
-
keyAlias 'androiddebugkey'
|
|
118
|
-
keyPassword 'android'
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
buildTypes {
|
|
122
|
-
debug {
|
|
123
|
-
signingConfig signingConfigs.debug
|
|
124
|
-
}
|
|
125
|
-
release {
|
|
126
|
-
// Caution! In production, you need to generate your own keystore file.
|
|
127
|
-
// see https://reactnative.dev/docs/signed-apk-android.
|
|
128
|
-
signingConfig signingConfigs.debug
|
|
129
|
-
minifyEnabled enableProguardInReleaseBuilds
|
|
130
|
-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// applicationVariants are e.g. debug, release
|
|
135
|
-
applicationVariants.all { variant ->
|
|
136
|
-
variant.outputs.each { output ->
|
|
137
|
-
// For each separate APK per architecture, set a unique version code as described here:
|
|
138
|
-
// https://developer.android.com/studio/build/configure-apk-splits.html
|
|
139
|
-
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
|
|
140
|
-
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
|
|
141
|
-
def abi = output.getFilter(OutputFile.ABI)
|
|
142
|
-
if (abi != null) { // null for the universal-debug, universal-release variants
|
|
143
|
-
output.versionCodeOverride =
|
|
144
|
-
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
dependencies {
|
|
152
|
-
// The version of react-native is set by the React Native Gradle Plugin
|
|
153
|
-
implementation("com.facebook.react:react-android")
|
|
154
|
-
|
|
155
|
-
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
|
|
156
|
-
|
|
157
|
-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
|
|
158
|
-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
|
|
159
|
-
exclude group:'com.squareup.okhttp3', module:'okhttp'
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
|
|
163
|
-
if (hermesEnabled.toBoolean()) {
|
|
164
|
-
implementation("com.facebook.react:hermes-android")
|
|
165
|
-
} else {
|
|
166
|
-
implementation jscFlavor
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
|
171
|
-
|
|
172
|
-
project.ext.vectoricons = [
|
|
173
|
-
iconFontNames: [ 'FontAwesome.ttf' ]
|
|
174
|
-
]
|
|
175
|
-
|
|
176
|
-
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
|
|
177
|
-
def isNewArchitectureEnabled() {
|
|
178
|
-
// To opt-in for the New Architecture, you can either:
|
|
179
|
-
// - Set `newArchEnabled` to true inside the `gradle.properties` file
|
|
180
|
-
// - Invoke gradle with `-newArchEnabled=true`
|
|
181
|
-
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
|
|
182
|
-
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
183
|
-
}
|
|
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,8 +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
|
-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
6
|
-
|
|
7
|
-
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
|
|
8
|
-
</manifest>
|
package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
-
*
|
|
4
|
-
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
|
5
|
-
* directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
package com.example.iamportreactnative;
|
|
8
|
-
|
|
9
|
-
import android.content.Context;
|
|
10
|
-
import com.facebook.flipper.android.AndroidFlipperClient;
|
|
11
|
-
import com.facebook.flipper.android.utils.FlipperUtils;
|
|
12
|
-
import com.facebook.flipper.core.FlipperClient;
|
|
13
|
-
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
|
|
14
|
-
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
|
|
15
|
-
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
|
|
16
|
-
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
|
|
17
|
-
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
|
|
18
|
-
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
|
|
19
|
-
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
|
|
20
|
-
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
|
|
21
|
-
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
|
|
22
|
-
import com.facebook.react.ReactInstanceManager;
|
|
23
|
-
import com.facebook.react.bridge.ReactContext;
|
|
24
|
-
import com.facebook.react.modules.network.NetworkingModule;
|
|
25
|
-
import okhttp3.OkHttpClient;
|
|
26
|
-
|
|
27
|
-
public class ReactNativeFlipper {
|
|
28
|
-
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
|
|
29
|
-
if (FlipperUtils.shouldEnableFlipper(context)) {
|
|
30
|
-
final FlipperClient client = AndroidFlipperClient.getInstance(context);
|
|
31
|
-
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
|
|
32
|
-
client.addPlugin(new ReactFlipperPlugin());
|
|
33
|
-
client.addPlugin(new DatabasesFlipperPlugin(context));
|
|
34
|
-
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
|
|
35
|
-
client.addPlugin(CrashReporterPlugin.getInstance());
|
|
36
|
-
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
|
|
37
|
-
NetworkingModule.setCustomClientBuilder(
|
|
38
|
-
new NetworkingModule.CustomClientBuilder() {
|
|
39
|
-
@Override
|
|
40
|
-
public void apply(OkHttpClient.Builder builder) {
|
|
41
|
-
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
client.addPlugin(networkFlipperPlugin);
|
|
45
|
-
client.start();
|
|
46
|
-
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
|
|
47
|
-
// Hence we run if after all native modules have been initialized
|
|
48
|
-
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
|
|
49
|
-
if (reactContext == null) {
|
|
50
|
-
reactInstanceManager.addReactInstanceEventListener(
|
|
51
|
-
new ReactInstanceManager.ReactInstanceEventListener() {
|
|
52
|
-
@Override
|
|
53
|
-
public void onReactContextInitialized(ReactContext reactContext) {
|
|
54
|
-
reactInstanceManager.removeReactInstanceEventListener(this);
|
|
55
|
-
reactContext.runOnNativeModulesQueueThread(
|
|
56
|
-
new Runnable() {
|
|
57
|
-
@Override
|
|
58
|
-
public void run() {
|
|
59
|
-
client.addPlugin(new FrescoFlipperPlugin());
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
} else {
|
|
65
|
-
client.addPlugin(new FrescoFlipperPlugin());
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
|
|
3
|
-
<uses-permission android:name="android.permission.INTERNET" />
|
|
4
|
-
|
|
5
|
-
<application
|
|
6
|
-
android:name=".MainApplication"
|
|
7
|
-
android:allowBackup="false"
|
|
8
|
-
android:icon="@mipmap/ic_launcher"
|
|
9
|
-
android:label="@string/app_name"
|
|
10
|
-
android:roundIcon="@mipmap/ic_launcher_round"
|
|
11
|
-
android:theme="@style/AppTheme">
|
|
12
|
-
<activity
|
|
13
|
-
android:name=".MainActivity"
|
|
14
|
-
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode|screenLayout|smallestScreenSize"
|
|
15
|
-
android:launchMode="singleTask"
|
|
16
|
-
android:windowSoftInputMode="adjustResize"
|
|
17
|
-
android:exported="true">
|
|
18
|
-
<intent-filter>
|
|
19
|
-
<action android:name="android.intent.action.MAIN" />
|
|
20
|
-
<category android:name="android.intent.category.LAUNCHER" />
|
|
21
|
-
</intent-filter>
|
|
22
|
-
<intent-filter>
|
|
23
|
-
<action android:name="android.intent.action.VIEW" />
|
|
24
|
-
|
|
25
|
-
<category android:name="android.intent.category.DEFAULT" />
|
|
26
|
-
<category android:name="android.intent.category.BROWSABLE" />
|
|
27
|
-
|
|
28
|
-
<data android:scheme="exampleforrn" />
|
|
29
|
-
</intent-filter>
|
|
30
|
-
</activity>
|
|
31
|
-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
|
32
|
-
</application>
|
|
33
|
-
|
|
34
|
-
</manifest>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
package com.example.iamportreactnative;
|
|
2
|
-
|
|
3
|
-
import com.facebook.react.ReactActivity;
|
|
4
|
-
|
|
5
|
-
public class MainActivity extends ReactActivity {
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
9
|
-
* rendering of the component.
|
|
10
|
-
*/
|
|
11
|
-
@Override
|
|
12
|
-
protected String getMainComponentName() {
|
|
13
|
-
return "IamportReactNativeExample";
|
|
14
|
-
}
|
|
15
|
-
}
|
package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
package com.example.iamportreactnative;
|
|
2
|
-
|
|
3
|
-
import android.app.Application;
|
|
4
|
-
import android.content.Context;
|
|
5
|
-
import com.facebook.react.PackageList;
|
|
6
|
-
import com.facebook.react.ReactApplication;
|
|
7
|
-
import com.facebook.react.ReactInstanceManager;
|
|
8
|
-
import com.facebook.react.ReactNativeHost;
|
|
9
|
-
import com.facebook.react.ReactPackage;
|
|
10
|
-
import com.facebook.soloader.SoLoader;
|
|
11
|
-
import java.lang.reflect.InvocationTargetException;
|
|
12
|
-
import java.util.List;
|
|
13
|
-
|
|
14
|
-
public class MainApplication extends Application implements ReactApplication {
|
|
15
|
-
|
|
16
|
-
private final ReactNativeHost mReactNativeHost =
|
|
17
|
-
new ReactNativeHost(this) {
|
|
18
|
-
@Override
|
|
19
|
-
public boolean getUseDeveloperSupport() {
|
|
20
|
-
return BuildConfig.DEBUG;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@Override
|
|
24
|
-
protected List<ReactPackage> getPackages() {
|
|
25
|
-
@SuppressWarnings("UnnecessaryLocalVariable")
|
|
26
|
-
List<ReactPackage> packages = new PackageList(this).getPackages();
|
|
27
|
-
// Packages that cannot be autolinked yet can be added manually here, for IamportReactNativeExample:
|
|
28
|
-
// packages.add(new MyReactNativePackage());
|
|
29
|
-
return packages;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@Override
|
|
33
|
-
protected String getJSMainModuleName() {
|
|
34
|
-
return "index";
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
@Override
|
|
39
|
-
public ReactNativeHost getReactNativeHost() {
|
|
40
|
-
return mReactNativeHost;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@Override
|
|
44
|
-
public void onCreate() {
|
|
45
|
-
super.onCreate();
|
|
46
|
-
SoLoader.init(this, /* native exopackage */ false);
|
|
47
|
-
initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Loads Flipper in React Native templates. Call this in the onCreate method with something like
|
|
52
|
-
* initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
|
|
53
|
-
*
|
|
54
|
-
* @param context
|
|
55
|
-
* @param reactInstanceManager
|
|
56
|
-
*/
|
|
57
|
-
private static void initializeFlipper(
|
|
58
|
-
Context context, ReactInstanceManager reactInstanceManager) {
|
|
59
|
-
if (BuildConfig.DEBUG) {
|
|
60
|
-
try {
|
|
61
|
-
/*
|
|
62
|
-
We use reflection here to pick up the class that initializes Flipper,
|
|
63
|
-
since Flipper library is not available in release mode
|
|
64
|
-
*/
|
|
65
|
-
Class<?> aClass = Class.forName("com.iamportreactnativeExample.ReactNativeFlipper");
|
|
66
|
-
aClass
|
|
67
|
-
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
|
|
68
|
-
.invoke(null, context, reactInstanceManager);
|
|
69
|
-
} catch (ClassNotFoundException e) {
|
|
70
|
-
e.printStackTrace();
|
|
71
|
-
} catch (NoSuchMethodException e) {
|
|
72
|
-
e.printStackTrace();
|
|
73
|
-
} catch (IllegalAccessException e) {
|
|
74
|
-
e.printStackTrace();
|
|
75
|
-
} catch (InvocationTargetException e) {
|
|
76
|
-
e.printStackTrace();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
2
|
-
|
|
3
|
-
buildscript {
|
|
4
|
-
ext {
|
|
5
|
-
buildToolsVersion = "33.0.0"
|
|
6
|
-
minSdkVersion = 23
|
|
7
|
-
compileSdkVersion = 33
|
|
8
|
-
targetSdkVersion = 33
|
|
9
|
-
|
|
10
|
-
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
|
|
11
|
-
ndkVersion = "23.1.7779620"
|
|
12
|
-
}
|
|
13
|
-
repositories {
|
|
14
|
-
google()
|
|
15
|
-
mavenCentral()
|
|
16
|
-
}
|
|
17
|
-
dependencies {
|
|
18
|
-
classpath("com.android.tools.build:gradle:7.3.1")
|
|
19
|
-
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
20
|
-
}
|
|
21
|
-
}
|
|
Binary file
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
|
|
7
|
-
# For more details on how to configure your build environment visit
|
|
8
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
-
|
|
10
|
-
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
-
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
-
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
-
|
|
15
|
-
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
-
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
-
# org.gradle.parallel=true
|
|
19
|
-
|
|
20
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
-
# Android operating system, and which are packaged with your app's APK
|
|
22
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
-
android.useAndroidX=true
|
|
24
|
-
# Automatically convert third-party libraries to use AndroidX
|
|
25
|
-
android.enableJetifier=true
|
|
26
|
-
|
|
27
|
-
# Version of flipper SDK to use with React Native
|
|
28
|
-
FLIPPER_VERSION=0.182.0
|
|
29
|
-
|
|
30
|
-
# Use this property to specify which architecture you want to build.
|
|
31
|
-
# You can also override it from the CLI using
|
|
32
|
-
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
33
|
-
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
34
|
-
|
|
35
|
-
# Use this property to enable support to the new architecture.
|
|
36
|
-
# This will allow you to use TurboModules and the Fabric render in
|
|
37
|
-
# your application. You should enable this flag either if you want
|
|
38
|
-
# to write custom TurboModules/Fabric components OR use libraries that
|
|
39
|
-
# are providing them.
|
|
40
|
-
newArchEnabled=false
|
|
41
|
-
|
|
42
|
-
# Use this property to enable or disable the Hermes JS engine.
|
|
43
|
-
# If set to false, you will be using JSC instead.
|
|
44
|
-
hermesEnabled=true
|