@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.
@@ -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.1'
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.VERSION_1_8
52
- targetCompatibility JavaVersion.VERSION_1_8
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.6.0'
68
+ implementation 'io.purchasely:huawei-services:5.7.1'
136
69
  }
@@ -1,4 +1,4 @@
1
- PurchaselyHuawei_kotlinVersion=1.8.22
1
+ PurchaselyHuawei_kotlinVersion=2.1.21
2
2
  PurchaselyHuawei_compileSdkVersion=35
3
3
  PurchaselyHuawei_targetSdkVersion=35
4
4
 
@@ -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":["_reactNative","require","LINKING_ERROR","PurchaselyGoogle","NativeModules","Proxy","get","Error","multiply","a","b"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,yFAAyF,GACzF,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,gBAAgB,GAAGC,0BAAa,CAACD,gBAAgB,GACnDC,0BAAa,CAACD,gBAAgB,GAC9B,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACL,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEE,SAASM,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOP,gBAAgB,CAACK,QAAQ,CAACC,CAAC,EAAEC,CAAC,CAAC;AACxC","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"","ignoreList":[]}
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { NativeModules } from 'react-native';
4
- 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';
5
- const PurchaselyGoogle = NativeModules.PurchaselyGoogle ? NativeModules.PurchaselyGoogle : new Proxy({}, {
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
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","LINKING_ERROR","PurchaselyGoogle","Proxy","get","Error","multiply","a","b"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,MAAMC,aAAa,GACjB,yFAAyF,GACzF,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,gBAAgB,GAAGF,aAAa,CAACE,gBAAgB,GACnDF,aAAa,CAACE,gBAAgB,GAC9B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACJ,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,OAAO,SAASK,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAON,gBAAgB,CAACI,QAAQ,CAACC,CAAC,EAAEC,CAAC,CAAC;AACxC","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export declare function multiply(a: number, b: number): Promise<number>;
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":"AAkBA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purchasely/react-native-purchasely-huawei",
3
- "version": "5.6.2",
3
+ "version": "5.7.1",
4
4
  "description": "Purchasely Huawei Mobile Services dependencies",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",