@xbenjii/react-native-braintree-dropin-ui 2.5.0 → 2.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.
- package/LICENSE +21 -21
- package/README.md +377 -377
- package/RNBraintreeDropIn.podspec +22 -22
- package/android/build.gradle +110 -110
- package/android/gradle/wrapper/gradle-wrapper.properties +8 -8
- package/android/gradle.properties +15 -15
- package/android/gradlew.bat +92 -92
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/xbenjii/RNBraintreeDropIn/RNBraintreeDropInModule.java +366 -366
- package/android/src/main/java/com/xbenjii/RNBraintreeDropIn/RNBraintreeDropInPackage.java +27 -27
- package/index.js +5 -5
- package/index.js.flow +42 -42
- package/ios/RNBraintreeDropIn.h +40 -40
- package/ios/RNBraintreeDropIn.m +352 -352
- package/ios/RNBraintreeDropIn.xcodeproj/project.pbxproj +291 -291
- package/ios/RNBraintreeDropIn.xcworkspace/contents.xcworkspacedata +8 -8
- package/package.json +38 -38
- package/react-native.config.js +13 -13
@@ -1,22 +1,22 @@
|
|
1
|
-
Pod::Spec.new do |s|
|
2
|
-
s.name = "RNBraintreeDropIn"
|
3
|
-
s.version = "2.1.0"
|
4
|
-
s.summary = "RNBraintreeDropIn"
|
5
|
-
s.description = <<-DESC
|
6
|
-
RNBraintreeDropIn
|
7
|
-
DESC
|
8
|
-
s.homepage = "https://github.com/xbenjii/react-native-braintree-dropin-ui"
|
9
|
-
s.license = "MIT"
|
10
|
-
# s.license = { :type => "MIT", :file => "./LICENSE" }
|
11
|
-
s.author = { "author" => "github@xbenjii.co.uk" }
|
12
|
-
s.platform = :ios, "12.0"
|
13
|
-
s.source = { :git => "git@github.com:xbenjii/react-native-braintree-dropin-ui.git", :tag => "master" }
|
14
|
-
s.source_files = "ios/**/*.{h,m}"
|
15
|
-
s.requires_arc = true
|
16
|
-
s.dependency 'React'
|
17
|
-
s.dependency 'Braintree', '5.26.0'
|
18
|
-
s.dependency 'BraintreeDropIn', '9.12.2'
|
19
|
-
s.dependency 'Braintree/DataCollector', '5.26.0'
|
20
|
-
s.dependency 'Braintree/ApplePay', '5.26.0'
|
21
|
-
s.dependency 'Braintree/Venmo', '5.26.0'
|
22
|
-
end
|
1
|
+
Pod::Spec.new do |s|
|
2
|
+
s.name = "RNBraintreeDropIn"
|
3
|
+
s.version = "2.1.0"
|
4
|
+
s.summary = "RNBraintreeDropIn"
|
5
|
+
s.description = <<-DESC
|
6
|
+
RNBraintreeDropIn
|
7
|
+
DESC
|
8
|
+
s.homepage = "https://github.com/xbenjii/react-native-braintree-dropin-ui"
|
9
|
+
s.license = "MIT"
|
10
|
+
# s.license = { :type => "MIT", :file => "./LICENSE" }
|
11
|
+
s.author = { "author" => "github@xbenjii.co.uk" }
|
12
|
+
s.platform = :ios, "12.0"
|
13
|
+
s.source = { :git => "git@github.com:xbenjii/react-native-braintree-dropin-ui.git", :tag => "master" }
|
14
|
+
s.source_files = "ios/**/*.{h,m}"
|
15
|
+
s.requires_arc = true
|
16
|
+
s.dependency 'React'
|
17
|
+
s.dependency 'Braintree', '5.26.0'
|
18
|
+
s.dependency 'BraintreeDropIn', '9.12.2'
|
19
|
+
s.dependency 'Braintree/DataCollector', '5.26.0'
|
20
|
+
s.dependency 'Braintree/ApplePay', '5.26.0'
|
21
|
+
s.dependency 'Braintree/Venmo', '5.26.0'
|
22
|
+
end
|
package/android/build.gradle
CHANGED
@@ -1,111 +1,111 @@
|
|
1
|
-
import java.nio.file.Paths
|
2
|
-
import com.android.Version
|
3
|
-
import groovy.json.JsonSlurper
|
4
|
-
|
5
|
-
|
6
|
-
buildscript {
|
7
|
-
repositories {
|
8
|
-
google()
|
9
|
-
mavenCentral()
|
10
|
-
}
|
11
|
-
|
12
|
-
dependencies {
|
13
|
-
classpath 'com.android.tools.build:gradle:8.3.0'
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
def reactNativeArchitectures() {
|
18
|
-
def value = rootProject.getProperties().get("reactNativeArchitectures")
|
19
|
-
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
20
|
-
}
|
21
|
-
|
22
|
-
def isNewArchitectureEnabled() {
|
23
|
-
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
24
|
-
}
|
25
|
-
|
26
|
-
def safeExtGet(prop, fallback) {
|
27
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
28
|
-
}
|
29
|
-
|
30
|
-
def getNpmVersion() {
|
31
|
-
def inputFile = file("$rootDir/../package.json")
|
32
|
-
def jsonPackage = new JsonSlurper().parseText(inputFile.text)
|
33
|
-
|
34
|
-
return jsonPackage["version"]
|
35
|
-
}
|
36
|
-
|
37
|
-
static def findNodeModules(baseDir) {
|
38
|
-
def basePath = baseDir.toPath().normalize()
|
39
|
-
// Node"s module resolution algorithm searches up to the root directory,
|
40
|
-
// after which the base path will be null
|
41
|
-
while (basePath) {
|
42
|
-
def nodeModulesPath = Paths.get(basePath.toString(), "node_modules")
|
43
|
-
def reactNativePath = Paths.get(nodeModulesPath.toString(), "react-native")
|
44
|
-
if (nodeModulesPath.toFile().exists() && reactNativePath.toFile().exists()) {
|
45
|
-
return nodeModulesPath.toString()
|
46
|
-
}
|
47
|
-
basePath = basePath.getParent()
|
48
|
-
}
|
49
|
-
throw new GradleException("@xbenjii/react-native-braintree-dropin-ui: Failed to find node_modules/ path!")
|
50
|
-
}
|
51
|
-
|
52
|
-
// https://developers.braintreepayments.com/guides/3d-secure/migration/android/v3
|
53
|
-
rootProject.allprojects {
|
54
|
-
repositories {
|
55
|
-
maven {
|
56
|
-
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
|
57
|
-
credentials {
|
58
|
-
username 'braintree_team_sdk'
|
59
|
-
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
apply plugin: "com.android.library"
|
66
|
-
if (isNewArchitectureEnabled()) {
|
67
|
-
apply plugin: "com.facebook.react"
|
68
|
-
}
|
69
|
-
|
70
|
-
def nodeModules = findNodeModules(projectDir)
|
71
|
-
logger.warn("[@xbenjii/react-native-braintree-dropin-ui] node_modules found at $nodeModules")
|
72
|
-
|
73
|
-
android {
|
74
|
-
if (rootProject.hasProperty("ndkPath")) {
|
75
|
-
ndkPath rootProject.ext.ndkPath
|
76
|
-
}
|
77
|
-
if (rootProject.hasProperty("ndkVersion")) {
|
78
|
-
ndkVersion rootProject.ext.ndkVersion
|
79
|
-
}
|
80
|
-
|
81
|
-
namespace "com.xbenjii.RNBraintreeDropIn"
|
82
|
-
|
83
|
-
defaultConfig {
|
84
|
-
minSdkVersion safeExtGet("minSdkVersion", 21)
|
85
|
-
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
86
|
-
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
87
|
-
versionCode 1
|
88
|
-
versionName getNpmVersion()
|
89
|
-
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
90
|
-
}
|
91
|
-
|
92
|
-
compileOptions {
|
93
|
-
sourceCompatibility JavaVersion.VERSION_1_8
|
94
|
-
targetCompatibility JavaVersion.VERSION_1_8
|
95
|
-
}
|
96
|
-
|
97
|
-
buildFeatures {
|
98
|
-
buildConfig true
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
repositories {
|
103
|
-
mavenCentral()
|
104
|
-
google()
|
105
|
-
}
|
106
|
-
|
107
|
-
dependencies {
|
108
|
-
implementation 'com.braintreepayments.api:drop-in:6.16.0'
|
109
|
-
implementation "com.facebook.react:react-android:+"
|
110
|
-
implementation 'org.codehaus.groovy:groovy-json:3.0.22'
|
1
|
+
import java.nio.file.Paths
|
2
|
+
import com.android.Version
|
3
|
+
import groovy.json.JsonSlurper
|
4
|
+
|
5
|
+
|
6
|
+
buildscript {
|
7
|
+
repositories {
|
8
|
+
google()
|
9
|
+
mavenCentral()
|
10
|
+
}
|
11
|
+
|
12
|
+
dependencies {
|
13
|
+
classpath 'com.android.tools.build:gradle:8.3.0'
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
def reactNativeArchitectures() {
|
18
|
+
def value = rootProject.getProperties().get("reactNativeArchitectures")
|
19
|
+
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
20
|
+
}
|
21
|
+
|
22
|
+
def isNewArchitectureEnabled() {
|
23
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
24
|
+
}
|
25
|
+
|
26
|
+
def safeExtGet(prop, fallback) {
|
27
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
28
|
+
}
|
29
|
+
|
30
|
+
def getNpmVersion() {
|
31
|
+
def inputFile = file("$rootDir/../package.json")
|
32
|
+
def jsonPackage = new JsonSlurper().parseText(inputFile.text)
|
33
|
+
|
34
|
+
return jsonPackage["version"]
|
35
|
+
}
|
36
|
+
|
37
|
+
static def findNodeModules(baseDir) {
|
38
|
+
def basePath = baseDir.toPath().normalize()
|
39
|
+
// Node"s module resolution algorithm searches up to the root directory,
|
40
|
+
// after which the base path will be null
|
41
|
+
while (basePath) {
|
42
|
+
def nodeModulesPath = Paths.get(basePath.toString(), "node_modules")
|
43
|
+
def reactNativePath = Paths.get(nodeModulesPath.toString(), "react-native")
|
44
|
+
if (nodeModulesPath.toFile().exists() && reactNativePath.toFile().exists()) {
|
45
|
+
return nodeModulesPath.toString()
|
46
|
+
}
|
47
|
+
basePath = basePath.getParent()
|
48
|
+
}
|
49
|
+
throw new GradleException("@xbenjii/react-native-braintree-dropin-ui: Failed to find node_modules/ path!")
|
50
|
+
}
|
51
|
+
|
52
|
+
// https://developers.braintreepayments.com/guides/3d-secure/migration/android/v3
|
53
|
+
rootProject.allprojects {
|
54
|
+
repositories {
|
55
|
+
maven {
|
56
|
+
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
|
57
|
+
credentials {
|
58
|
+
username 'braintree_team_sdk'
|
59
|
+
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
apply plugin: "com.android.library"
|
66
|
+
if (isNewArchitectureEnabled()) {
|
67
|
+
apply plugin: "com.facebook.react"
|
68
|
+
}
|
69
|
+
|
70
|
+
def nodeModules = findNodeModules(projectDir)
|
71
|
+
logger.warn("[@xbenjii/react-native-braintree-dropin-ui] node_modules found at $nodeModules")
|
72
|
+
|
73
|
+
android {
|
74
|
+
if (rootProject.hasProperty("ndkPath")) {
|
75
|
+
ndkPath rootProject.ext.ndkPath
|
76
|
+
}
|
77
|
+
if (rootProject.hasProperty("ndkVersion")) {
|
78
|
+
ndkVersion rootProject.ext.ndkVersion
|
79
|
+
}
|
80
|
+
|
81
|
+
namespace "com.xbenjii.RNBraintreeDropIn"
|
82
|
+
|
83
|
+
defaultConfig {
|
84
|
+
minSdkVersion safeExtGet("minSdkVersion", 21)
|
85
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
86
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
87
|
+
versionCode 1
|
88
|
+
versionName getNpmVersion()
|
89
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
90
|
+
}
|
91
|
+
|
92
|
+
compileOptions {
|
93
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
94
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
95
|
+
}
|
96
|
+
|
97
|
+
buildFeatures {
|
98
|
+
buildConfig true
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
repositories {
|
103
|
+
mavenCentral()
|
104
|
+
google()
|
105
|
+
}
|
106
|
+
|
107
|
+
dependencies {
|
108
|
+
implementation 'com.braintreepayments.api:drop-in:6.16.0'
|
109
|
+
implementation "com.facebook.react:react-android:+"
|
110
|
+
implementation 'org.codehaus.groovy:groovy-json:3.0.22'
|
111
111
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
#Thu Jul 04 14:09:24 BST 2024
|
2
|
-
distributionBase=GRADLE_USER_HOME
|
3
|
-
distributionPath=wrapper/dists
|
4
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
5
|
-
networkTimeout=10000
|
6
|
-
validateDistributionUrl=true
|
7
|
-
zipStoreBase=GRADLE_USER_HOME
|
8
|
-
zipStorePath=wrapper/dists
|
1
|
+
#Thu Jul 04 14:09:24 BST 2024
|
2
|
+
distributionBase=GRADLE_USER_HOME
|
3
|
+
distributionPath=wrapper/dists
|
4
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
5
|
+
networkTimeout=10000
|
6
|
+
validateDistributionUrl=true
|
7
|
+
zipStoreBase=GRADLE_USER_HOME
|
8
|
+
zipStorePath=wrapper/dists
|
@@ -1,16 +1,16 @@
|
|
1
|
-
## For more details on how to configure your build environment visit
|
2
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
3
|
-
#
|
4
|
-
# Specifies the JVM arguments used for the daemon process.
|
5
|
-
# The setting is particularly useful for tweaking memory settings.
|
6
|
-
# Default value: -Xmx1024m -XX:MaxPermSize=256m
|
7
|
-
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
8
|
-
#
|
9
|
-
# When configured, Gradle will run in incubating parallel mode.
|
10
|
-
# This option should only be used with decoupled projects. For more details, visit
|
11
|
-
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
|
12
|
-
# org.gradle.parallel=true
|
13
|
-
#Thu Jul 04 13:49:44 BST 2024
|
14
|
-
android.enableJetifier=true
|
15
|
-
android.useAndroidX=true
|
1
|
+
## For more details on how to configure your build environment visit
|
2
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
3
|
+
#
|
4
|
+
# Specifies the JVM arguments used for the daemon process.
|
5
|
+
# The setting is particularly useful for tweaking memory settings.
|
6
|
+
# Default value: -Xmx1024m -XX:MaxPermSize=256m
|
7
|
+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
8
|
+
#
|
9
|
+
# When configured, Gradle will run in incubating parallel mode.
|
10
|
+
# This option should only be used with decoupled projects. For more details, visit
|
11
|
+
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
|
12
|
+
# org.gradle.parallel=true
|
13
|
+
#Thu Jul 04 13:49:44 BST 2024
|
14
|
+
android.enableJetifier=true
|
15
|
+
android.useAndroidX=true
|
16
16
|
org.gradle.jvmargs=-Xmx4096M -XX:MaxMetaspaceSize=512m
|
package/android/gradlew.bat
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
@rem
|
2
|
-
@rem Copyright 2015 the original author or authors.
|
3
|
-
@rem
|
4
|
-
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
@rem you may not use this file except in compliance with the License.
|
6
|
-
@rem You may obtain a copy of the License at
|
7
|
-
@rem
|
8
|
-
@rem https://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
@rem
|
10
|
-
@rem Unless required by applicable law or agreed to in writing, software
|
11
|
-
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
@rem See the License for the specific language governing permissions and
|
14
|
-
@rem limitations under the License.
|
15
|
-
@rem
|
16
|
-
|
17
|
-
@if "%DEBUG%"=="" @echo off
|
18
|
-
@rem ##########################################################################
|
19
|
-
@rem
|
20
|
-
@rem Gradle startup script for Windows
|
21
|
-
@rem
|
22
|
-
@rem ##########################################################################
|
23
|
-
|
24
|
-
@rem Set local scope for the variables with windows NT shell
|
25
|
-
if "%OS%"=="Windows_NT" setlocal
|
26
|
-
|
27
|
-
set DIRNAME=%~dp0
|
28
|
-
if "%DIRNAME%"=="" set DIRNAME=.
|
29
|
-
@rem This is normally unused
|
30
|
-
set APP_BASE_NAME=%~n0
|
31
|
-
set APP_HOME=%DIRNAME%
|
32
|
-
|
33
|
-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
34
|
-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
35
|
-
|
36
|
-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
37
|
-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
38
|
-
|
39
|
-
@rem Find java.exe
|
40
|
-
if defined JAVA_HOME goto findJavaFromJavaHome
|
41
|
-
|
42
|
-
set JAVA_EXE=java.exe
|
43
|
-
%JAVA_EXE% -version >NUL 2>&1
|
44
|
-
if %ERRORLEVEL% equ 0 goto execute
|
45
|
-
|
46
|
-
echo.
|
47
|
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
48
|
-
echo.
|
49
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
50
|
-
echo location of your Java installation.
|
51
|
-
|
52
|
-
goto fail
|
53
|
-
|
54
|
-
:findJavaFromJavaHome
|
55
|
-
set JAVA_HOME=%JAVA_HOME:"=%
|
56
|
-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
57
|
-
|
58
|
-
if exist "%JAVA_EXE%" goto execute
|
59
|
-
|
60
|
-
echo.
|
61
|
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
62
|
-
echo.
|
63
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
64
|
-
echo location of your Java installation.
|
65
|
-
|
66
|
-
goto fail
|
67
|
-
|
68
|
-
:execute
|
69
|
-
@rem Setup the command line
|
70
|
-
|
71
|
-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
72
|
-
|
73
|
-
|
74
|
-
@rem Execute Gradle
|
75
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
76
|
-
|
77
|
-
:end
|
78
|
-
@rem End local scope for the variables with windows NT shell
|
79
|
-
if %ERRORLEVEL% equ 0 goto mainEnd
|
80
|
-
|
81
|
-
:fail
|
82
|
-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
83
|
-
rem the _cmd.exe /c_ return code!
|
84
|
-
set EXIT_CODE=%ERRORLEVEL%
|
85
|
-
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
86
|
-
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
87
|
-
exit /b %EXIT_CODE%
|
88
|
-
|
89
|
-
:mainEnd
|
90
|
-
if "%OS%"=="Windows_NT" endlocal
|
91
|
-
|
92
|
-
:omega
|
1
|
+
@rem
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
3
|
+
@rem
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
6
|
+
@rem You may obtain a copy of the License at
|
7
|
+
@rem
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
@rem
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
@rem See the License for the specific language governing permissions and
|
14
|
+
@rem limitations under the License.
|
15
|
+
@rem
|
16
|
+
|
17
|
+
@if "%DEBUG%"=="" @echo off
|
18
|
+
@rem ##########################################################################
|
19
|
+
@rem
|
20
|
+
@rem Gradle startup script for Windows
|
21
|
+
@rem
|
22
|
+
@rem ##########################################################################
|
23
|
+
|
24
|
+
@rem Set local scope for the variables with windows NT shell
|
25
|
+
if "%OS%"=="Windows_NT" setlocal
|
26
|
+
|
27
|
+
set DIRNAME=%~dp0
|
28
|
+
if "%DIRNAME%"=="" set DIRNAME=.
|
29
|
+
@rem This is normally unused
|
30
|
+
set APP_BASE_NAME=%~n0
|
31
|
+
set APP_HOME=%DIRNAME%
|
32
|
+
|
33
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
34
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
35
|
+
|
36
|
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
37
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
38
|
+
|
39
|
+
@rem Find java.exe
|
40
|
+
if defined JAVA_HOME goto findJavaFromJavaHome
|
41
|
+
|
42
|
+
set JAVA_EXE=java.exe
|
43
|
+
%JAVA_EXE% -version >NUL 2>&1
|
44
|
+
if %ERRORLEVEL% equ 0 goto execute
|
45
|
+
|
46
|
+
echo.
|
47
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
48
|
+
echo.
|
49
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
50
|
+
echo location of your Java installation.
|
51
|
+
|
52
|
+
goto fail
|
53
|
+
|
54
|
+
:findJavaFromJavaHome
|
55
|
+
set JAVA_HOME=%JAVA_HOME:"=%
|
56
|
+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
57
|
+
|
58
|
+
if exist "%JAVA_EXE%" goto execute
|
59
|
+
|
60
|
+
echo.
|
61
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
62
|
+
echo.
|
63
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
64
|
+
echo location of your Java installation.
|
65
|
+
|
66
|
+
goto fail
|
67
|
+
|
68
|
+
:execute
|
69
|
+
@rem Setup the command line
|
70
|
+
|
71
|
+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
72
|
+
|
73
|
+
|
74
|
+
@rem Execute Gradle
|
75
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
76
|
+
|
77
|
+
:end
|
78
|
+
@rem End local scope for the variables with windows NT shell
|
79
|
+
if %ERRORLEVEL% equ 0 goto mainEnd
|
80
|
+
|
81
|
+
:fail
|
82
|
+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
83
|
+
rem the _cmd.exe /c_ return code!
|
84
|
+
set EXIT_CODE=%ERRORLEVEL%
|
85
|
+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
86
|
+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
87
|
+
exit /b %EXIT_CODE%
|
88
|
+
|
89
|
+
:mainEnd
|
90
|
+
if "%OS%"=="Windows_NT" endlocal
|
91
|
+
|
92
|
+
:omega
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2
|
-
package="com.xbenjii.RNBraintreeDropIn">
|
3
|
-
|
4
|
-
</manifest>
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2
|
+
package="com.xbenjii.RNBraintreeDropIn">
|
3
|
+
|
4
|
+
</manifest>
|
5
5
|
|