@screeb/react-native 0.8.16 → 0.8.18
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/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/8.0/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +2 -2
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/package.json +8 -3
- package/screeb-module.podspec +1 -1
- package/lib/commonjs/index.js +0 -48
- package/lib/commonjs/index.js.map +0 -1
- package/lib/module/index.js +0 -31
- package/lib/module/index.js.map +0 -1
- package/lib/typescript/index.d.ts +0 -5
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/android/build.gradle
CHANGED
|
@@ -8,7 +8,7 @@ buildscript {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
dependencies {
|
|
11
|
-
classpath 'com.android.tools.build:gradle:7.
|
|
11
|
+
classpath 'com.android.tools.build:gradle:7.4.2'
|
|
12
12
|
// noinspection DifferentKotlinGradleVersion
|
|
13
13
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
14
14
|
}
|
|
@@ -123,6 +123,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
|
|
|
123
123
|
dependencies {
|
|
124
124
|
// noinspection GradleDynamicVersion
|
|
125
125
|
api 'com.facebook.react:react-native:+'
|
|
126
|
-
implementation "app.screeb.sdk:survey:1.13.
|
|
126
|
+
implementation "app.screeb.sdk:survey:1.13.3"
|
|
127
127
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.0"
|
|
128
128
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@screeb/react-native",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.18",
|
|
4
4
|
"description": "A react-native module to integrate Screeb mobile sdk for Android and/or iOS.",
|
|
5
5
|
"scripts": {
|
|
6
|
+
"clean": "rm -rf lib/",
|
|
6
7
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
7
8
|
"example": "yarn --cwd example",
|
|
8
|
-
"pods": "cd example && pod-install --quiet"
|
|
9
|
+
"pods": "cd example && pod-install --quiet",
|
|
10
|
+
"build": "npm run clean ; tsc -p tsconfig.build.json && tsc -p tsconfig.build.cjs.json"
|
|
9
11
|
},
|
|
10
12
|
"react-native": "src/index",
|
|
13
|
+
"main": "lib/commonjs/index.js",
|
|
14
|
+
"module": "lib/module/index.js",
|
|
11
15
|
"source": "src/index",
|
|
12
16
|
"keywords": [
|
|
13
17
|
"react-native",
|
|
@@ -50,5 +54,6 @@
|
|
|
50
54
|
"peerDependencies": {
|
|
51
55
|
"react": "*",
|
|
52
56
|
"react-native": "*"
|
|
53
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"types": "./lib/typescript/index.d.ts"
|
|
54
59
|
}
|
package/screeb-module.podspec
CHANGED
package/lib/commonjs/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.initSdk = initSdk;
|
|
7
|
-
exports.setIdentity = setIdentity;
|
|
8
|
-
exports.setProperties = setProperties;
|
|
9
|
-
exports.trackEvent = trackEvent;
|
|
10
|
-
exports.trackScreen = trackScreen;
|
|
11
|
-
|
|
12
|
-
var _reactNative = require("react-native");
|
|
13
|
-
|
|
14
|
-
const LINKING_ERROR = `The package '@screeb/react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
15
|
-
ios: "- You have run 'pod install'\n",
|
|
16
|
-
default: ''
|
|
17
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
18
|
-
const ScreebModule = _reactNative.NativeModules.ScreebModule ? _reactNative.NativeModules.ScreebModule : new Proxy({}, {
|
|
19
|
-
get() {
|
|
20
|
-
throw new Error(LINKING_ERROR);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
function initSdk(androidChannelId, iosChannelId, userId, properties) {
|
|
26
|
-
if (_reactNative.Platform.OS === 'ios') {
|
|
27
|
-
return ScreebModule.initSdk(iosChannelId, userId, properties);
|
|
28
|
-
} else {
|
|
29
|
-
return ScreebModule.initSdk(androidChannelId, userId, properties);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function setIdentity(userId, properties) {
|
|
34
|
-
return ScreebModule.setIdentity(userId, properties);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function trackEvent(name, properties) {
|
|
38
|
-
return ScreebModule.trackEvent(name, properties);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function trackScreen(name, properties) {
|
|
42
|
-
return ScreebModule.trackScreen(name, properties);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function setProperties(properties) {
|
|
46
|
-
return ScreebModule.setProperties(properties);
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["LINKING_ERROR","Platform","select","ios","default","ScreebModule","NativeModules","Proxy","get","Error","initSdk","androidChannelId","iosChannelId","userId","properties","OS","setIdentity","trackEvent","name","trackScreen","setProperties"],"mappings":";;;;;;;;;;;AAAA;;AAEA,MAAMA,aAAa,GAChB,+EAAD,GACAC,sBAASC,MAAT,CAAgB;AAAEC,EAAAA,GAAG,EAAE,gCAAP;AAAyCC,EAAAA,OAAO,EAAE;AAAlD,CAAhB,CADA,GAEA,sDAFA,GAGA,6CAJF;AAMA,MAAMC,YAAY,GAAGC,2BAAcD,YAAd,GACjBC,2BAAcD,YADG,GAEjB,IAAIE,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUT,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;;AAWO,SAASU,OAAT,CACHC,gBADG,EAEHC,YAFG,EAGHC,MAHG,EAIHC,UAJG,EAI4B;AACjC,MAAIb,sBAASc,EAAT,KAAgB,KAApB,EAA2B;AACzB,WAAOV,YAAY,CAACK,OAAb,CAAqBE,YAArB,EAAmCC,MAAnC,EAA2CC,UAA3C,CAAP;AACD,GAFD,MAEO;AACL,WAAOT,YAAY,CAACK,OAAb,CAAqBC,gBAArB,EAAuCE,MAAvC,EAA+CC,UAA/C,CAAP;AACD;AACF;;AACM,SAASE,WAAT,CAAqBH,MAArB,EAAqCC,UAArC,EAAoE;AACzE,SAAOT,YAAY,CAACW,WAAb,CAAyBH,MAAzB,EAAiCC,UAAjC,CAAP;AACD;;AACM,SAASG,UAAT,CAAoBC,IAApB,EAAkCJ,UAAlC,EAAiE;AACtE,SAAOT,YAAY,CAACY,UAAb,CAAwBC,IAAxB,EAA8BJ,UAA9B,CAAP;AACD;;AACM,SAASK,WAAT,CAAqBD,IAArB,EAAmCJ,UAAnC,EAAkE;AACvE,SAAOT,YAAY,CAACc,WAAb,CAAyBD,IAAzB,EAA+BJ,UAA/B,CAAP;AACD;;AACM,SAASM,aAAT,CAAuBN,UAAvB,EAAsD;AAC3D,SAAOT,YAAY,CAACe,aAAb,CAA2BN,UAA3B,CAAP;AACD","sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\nconst LINKING_ERROR =\n `The package '@screeb/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nconst ScreebModule = NativeModules.ScreebModule\n ? NativeModules.ScreebModule\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function initSdk(\n androidChannelId: string,\n iosChannelId: string,\n userId?: string,\n properties?: Map<string, any>) {\n if (Platform.OS === 'ios') {\n return ScreebModule.initSdk(iosChannelId, userId, properties);\n } else {\n return ScreebModule.initSdk(androidChannelId, userId, properties);\n }\n}\nexport function setIdentity(userId: string, properties?: Map<string, any>) {\n return ScreebModule.setIdentity(userId, properties);\n}\nexport function trackEvent(name: string, properties?: Map<string, any>) {\n return ScreebModule.trackEvent(name, properties);\n}\nexport function trackScreen(name: string, properties?: Map<string, any>) {\n return ScreebModule.trackScreen(name, properties);\n}\nexport function setProperties(properties?: Map<string, any>) {\n return ScreebModule.setProperties(properties);\n}\n"]}
|
package/lib/module/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NativeModules, Platform } from 'react-native';
|
|
2
|
-
const LINKING_ERROR = `The package '@screeb/react-native' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
3
|
-
ios: "- You have run 'pod install'\n",
|
|
4
|
-
default: ''
|
|
5
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
6
|
-
const ScreebModule = NativeModules.ScreebModule ? NativeModules.ScreebModule : new Proxy({}, {
|
|
7
|
-
get() {
|
|
8
|
-
throw new Error(LINKING_ERROR);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
export function initSdk(androidChannelId, iosChannelId, userId, properties) {
|
|
13
|
-
if (Platform.OS === 'ios') {
|
|
14
|
-
return ScreebModule.initSdk(iosChannelId, userId, properties);
|
|
15
|
-
} else {
|
|
16
|
-
return ScreebModule.initSdk(androidChannelId, userId, properties);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export function setIdentity(userId, properties) {
|
|
20
|
-
return ScreebModule.setIdentity(userId, properties);
|
|
21
|
-
}
|
|
22
|
-
export function trackEvent(name, properties) {
|
|
23
|
-
return ScreebModule.trackEvent(name, properties);
|
|
24
|
-
}
|
|
25
|
-
export function trackScreen(name, properties) {
|
|
26
|
-
return ScreebModule.trackScreen(name, properties);
|
|
27
|
-
}
|
|
28
|
-
export function setProperties(properties) {
|
|
29
|
-
return ScreebModule.setProperties(properties);
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","ScreebModule","Proxy","get","Error","initSdk","androidChannelId","iosChannelId","userId","properties","OS","setIdentity","trackEvent","name","trackScreen","setProperties"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC;AAEA,MAAMC,aAAa,GAChB,+EAAD,G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n `The package '@screeb/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo managed workflow\\n';\n\nconst ScreebModule = NativeModules.ScreebModule\n ? NativeModules.ScreebModule\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\nexport function initSdk(\n androidChannelId: string,\n iosChannelId: string,\n userId?: string,\n properties?: Map<string, any>) {\n if (Platform.OS === 'ios') {\n return ScreebModule.initSdk(iosChannelId, userId, properties);\n } else {\n return ScreebModule.initSdk(androidChannelId, userId, properties);\n }\n}\nexport function setIdentity(userId: string, properties?: Map<string, any>) {\n return ScreebModule.setIdentity(userId, properties);\n}\nexport function trackEvent(name: string, properties?: Map<string, any>) {\n return ScreebModule.trackEvent(name, properties);\n}\nexport function trackScreen(name: string, properties?: Map<string, any>) {\n return ScreebModule.trackScreen(name, properties);\n}\nexport function setProperties(properties?: Map<string, any>) {\n return ScreebModule.setProperties(properties);\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function initSdk(androidChannelId: string, iosChannelId: string, userId?: string, properties?: Map<string, any>): any;
|
|
2
|
-
export declare function setIdentity(userId: string, properties?: Map<string, any>): any;
|
|
3
|
-
export declare function trackEvent(name: string, properties?: Map<string, any>): any;
|
|
4
|
-
export declare function trackScreen(name: string, properties?: Map<string, any>): any;
|
|
5
|
-
export declare function setProperties(properties?: Map<string, any>): any;
|