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.
@@ -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
- def _ext = rootProject.ext;
38
+ dependencies {
39
+ classpath "com.android.tools.build:gradle:$buildGradleVersion"
40
+ }
41
+ }
42
+ }
43
+
44
+ apply plugin: 'com.android.library'
4
45
 
5
- def _reactNativeVersion = _ext.has('reactNative') ? _ext.reactNative : '+';
6
- def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 31;
7
- def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '30.0.2';
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 _compileSdkVersion
13
- buildToolsVersion _buildToolsVersion
51
+ compileSdkVersion safeExtGet('compileSdkVersion', 31)
14
52
 
15
53
  defaultConfig {
16
- minSdkVersion _minSdkVersion
17
- targetSdkVersion _targetSdkVersion
18
- versionCode 28
19
- versionName "1.2.3"
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
- provided "com.facebook.react:react-native:${_reactNativeVersion}"
71
+ implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
25
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnipay-reactnative-sdk",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Omnipay react native sdk",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",