omnipay-reactnative-sdk 0.6.1 → 0.6.3
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/android/build.gradle +61 -14
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -1,25 +1,72 @@
|
|
|
1
|
-
apply plugin: 'com.android.library'
|
|
1
|
+
// apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
// def _ext = rootProject.ext;
|
|
4
|
+
|
|
5
|
+
// def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 31;
|
|
6
|
+
// def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '30.0.2';
|
|
7
|
+
// def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 21;
|
|
8
|
+
// def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 31;
|
|
9
|
+
|
|
10
|
+
// android {
|
|
11
|
+
// compileSdkVersion _compileSdkVersion
|
|
12
|
+
// buildToolsVersion _buildToolsVersion
|
|
13
|
+
|
|
14
|
+
// defaultConfig {
|
|
15
|
+
// minSdkVersion _minSdkVersion
|
|
16
|
+
// targetSdkVersion _targetSdkVersion
|
|
17
|
+
// versionCode 28
|
|
18
|
+
// versionName "1.2.3"
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// dependencies {
|
|
23
|
+
// provided "com.facebook.react:react-native:${_reactNativeVersion}"
|
|
24
|
+
// }
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
buildscript {
|
|
28
|
+
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
29
|
+
// This avoids unnecessary downloads and potential conflicts when the library is included as a
|
|
30
|
+
// module dependency in an application project.
|
|
31
|
+
if (project == rootProject) {
|
|
32
|
+
repositories {
|
|
33
|
+
mavenCentral()
|
|
34
|
+
google()
|
|
35
|
+
}
|
|
36
|
+
def buildGradleVersion = ext.has('buildGradlePluginVersion') ? ext.get('buildGradlePluginVersion') : '4.2.0'
|
|
2
37
|
|
|
3
|
-
|
|
38
|
+
dependencies {
|
|
39
|
+
classpath "com.android.tools.build:gradle:$buildGradleVersion"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
apply plugin: 'com.android.library'
|
|
4
45
|
|
|
5
|
-
def
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 21;
|
|
9
|
-
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 31;
|
|
46
|
+
def safeExtGet(prop, fallback) {
|
|
47
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
48
|
+
}
|
|
10
49
|
|
|
11
50
|
android {
|
|
12
|
-
compileSdkVersion
|
|
13
|
-
buildToolsVersion _buildToolsVersion
|
|
51
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 31)
|
|
14
52
|
|
|
15
53
|
defaultConfig {
|
|
16
|
-
minSdkVersion
|
|
17
|
-
targetSdkVersion
|
|
18
|
-
versionCode
|
|
19
|
-
versionName "1.
|
|
54
|
+
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
55
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 31)
|
|
56
|
+
versionCode 1
|
|
57
|
+
versionName "1.1"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
repositories {
|
|
62
|
+
mavenCentral()
|
|
63
|
+
google()
|
|
64
|
+
maven {
|
|
65
|
+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
66
|
+
url "$rootDir/../node_modules/react-native/android"
|
|
20
67
|
}
|
|
21
68
|
}
|
|
22
69
|
|
|
23
70
|
dependencies {
|
|
24
|
-
|
|
71
|
+
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
|
25
72
|
}
|