@purchasely/react-native-purchasely-huawei 5.6.2 → 5.7.1
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 +6 -73
- package/android/gradle.properties +1 -1
- package/lib/commonjs/index.js +0 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +3 -10
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/packages/huawei/src/index.d.ts +1 -1
- package/lib/typescript/packages/huawei/src/index.d.ts.map +1 -1
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -5,12 +5,11 @@ buildscript {
|
|
|
5
5
|
repositories {
|
|
6
6
|
google()
|
|
7
7
|
mavenCentral()
|
|
8
|
-
jcenter()
|
|
9
8
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
dependencies {
|
|
13
|
-
classpath 'com.android.tools.build:gradle:7.3
|
|
12
|
+
classpath 'com.android.tools.build:gradle:8.7.3'
|
|
14
13
|
// noinspection DifferentKotlinGradleVersion
|
|
15
14
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
16
15
|
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
|
|
@@ -30,13 +29,13 @@ def getExtOrIntegerDefault(name) {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
android {
|
|
32
|
+
namespace = "com.reactnativepurchaselyhuawei"
|
|
33
33
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
34
34
|
defaultConfig {
|
|
35
35
|
minSdkVersion 21
|
|
36
36
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
37
37
|
versionCode 1
|
|
38
38
|
versionName "1.0"
|
|
39
|
-
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
buildTypes {
|
|
@@ -48,81 +47,15 @@ android {
|
|
|
48
47
|
disable 'GradleCompatible'
|
|
49
48
|
}
|
|
50
49
|
compileOptions {
|
|
51
|
-
sourceCompatibility JavaVersion.
|
|
52
|
-
targetCompatibility JavaVersion.
|
|
50
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
51
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
repositories {
|
|
57
|
-
mavenCentral()
|
|
58
|
-
jcenter()
|
|
59
56
|
google()
|
|
57
|
+
mavenCentral()
|
|
60
58
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
61
|
-
|
|
62
|
-
def found = false
|
|
63
|
-
def defaultDir = null
|
|
64
|
-
def androidSourcesName = 'React Native sources'
|
|
65
|
-
|
|
66
|
-
if (rootProject.ext.has('reactNativeAndroidRoot')) {
|
|
67
|
-
defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
|
|
68
|
-
} else {
|
|
69
|
-
defaultDir = new File(
|
|
70
|
-
projectDir,
|
|
71
|
-
'/../../../node_modules/react-native/android'
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (defaultDir.exists()) {
|
|
76
|
-
maven {
|
|
77
|
-
url defaultDir.toString()
|
|
78
|
-
name androidSourcesName
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
|
|
82
|
-
found = true
|
|
83
|
-
} else {
|
|
84
|
-
def parentDir = rootProject.projectDir
|
|
85
|
-
|
|
86
|
-
1.upto(5, {
|
|
87
|
-
if (found) return true
|
|
88
|
-
parentDir = parentDir.parentFile
|
|
89
|
-
|
|
90
|
-
def androidSourcesDir = new File(
|
|
91
|
-
parentDir,
|
|
92
|
-
'node_modules/react-native'
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
def androidPrebuiltBinaryDir = new File(
|
|
96
|
-
parentDir,
|
|
97
|
-
'node_modules/react-native/android'
|
|
98
|
-
)
|
|
99
|
-
|
|
100
|
-
if (androidPrebuiltBinaryDir.exists()) {
|
|
101
|
-
maven {
|
|
102
|
-
url androidPrebuiltBinaryDir.toString()
|
|
103
|
-
name androidSourcesName
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
|
|
107
|
-
found = true
|
|
108
|
-
} else if (androidSourcesDir.exists()) {
|
|
109
|
-
maven {
|
|
110
|
-
url androidSourcesDir.toString()
|
|
111
|
-
name androidSourcesName
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
|
|
115
|
-
found = true
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (!found) {
|
|
121
|
-
throw new GradleException(
|
|
122
|
-
"${project.name}: unable to locate React Native android sources. " +
|
|
123
|
-
"Ensure you have you installed React Native as a dependency in your project and try again."
|
|
124
|
-
)
|
|
125
|
-
}
|
|
126
59
|
}
|
|
127
60
|
|
|
128
61
|
def kotlin_version = getExtOrDefault('kotlinVersion')
|
|
@@ -132,5 +65,5 @@ dependencies {
|
|
|
132
65
|
api 'com.facebook.react:react-native:+'
|
|
133
66
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
134
67
|
|
|
135
|
-
implementation 'io.purchasely:huawei-services:5.
|
|
68
|
+
implementation 'io.purchasely:huawei-services:5.7.1'
|
|
136
69
|
}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,15 +3,4 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.multiply = multiply;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
const LINKING_ERROR = `The package 'react-native-purchasely-google' doesn't seem to be linked. Make sure: \n\n` + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
9
|
-
const PurchaselyGoogle = _reactNative.NativeModules.PurchaselyGoogle ? _reactNative.NativeModules.PurchaselyGoogle : new Proxy({}, {
|
|
10
|
-
get() {
|
|
11
|
-
throw new Error(LINKING_ERROR);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
function multiply(a, b) {
|
|
15
|
-
return PurchaselyGoogle.multiply(a, b);
|
|
16
|
-
}
|
|
17
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
get() {
|
|
7
|
-
throw new Error(LINKING_ERROR);
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
export function multiply(a, b) {
|
|
11
|
-
return PurchaselyGoogle.multiply(a, b);
|
|
12
|
-
}
|
|
3
|
+
// This package provides the Purchasely Huawei Mobile Services SDK as a native dependency.
|
|
4
|
+
// No JavaScript API is exposed by this package.
|
|
5
|
+
export {};
|
|
13
6
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAA"}
|