@screeb/react-native 0.8.21 → 1.0.0-rc.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.
@@ -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.7"
126
+ implementation "app.screeb.sdk:survey:2.0.0-rc.1"
127
127
  implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.0"
128
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/react-native",
3
- "version": "0.8.21",
3
+ "version": "1.0.0-rc.1",
4
4
  "description": "Continuous Product Discovery",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib/",
@@ -56,4 +56,4 @@
56
56
  "react-native": "*"
57
57
  },
58
58
  "types": "./lib/typescript/index.d.ts"
59
- }
59
+ }
@@ -10,11 +10,11 @@ Pod::Spec.new do |s|
10
10
  s.license = package["license"]
11
11
  s.authors = package["author"]
12
12
 
13
- s.platforms = { :ios => "12.4" }
13
+ s.platforms = { :ios => "11.0" }
14
14
  s.source = { :git => "https://github.com/ScreebApp/sdk-reactnative.git", :tag => "#{s.version}" }
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "Screeb", '~> 1.13.2'
19
+ s.dependency "Screeb", '~> 2.0.0-rc.3'
20
20
  end
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.closeSdk = exports.resetIdentity = exports.debugTargeting = exports.debug = exports.startSurvey = exports.trackScreen = exports.trackEvent = exports.unassignGroup = exports.assignGroup = exports.setProperties = exports.setIdentity = exports.initSdk = void 0;
4
- const react_native_1 = require("react-native");
5
- const LINKING_ERROR = `The package '@screeb/react-native' doesn't seem to be linked. Make sure: \n\n` +
6
- react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
7
- '- You rebuilt the app after installing the package\n' +
8
- '- You are not using Expo managed workflow\n';
9
- const ScreebModule = react_native_1.NativeModules.ScreebModule
10
- ? react_native_1.NativeModules.ScreebModule
11
- : new Proxy({}, {
12
- get() {
13
- throw new Error(LINKING_ERROR);
14
- },
15
- });
16
- function initSdk(androidChannelId, iosChannelId, userId, properties) {
17
- if (react_native_1.Platform.OS === 'ios') {
18
- return ScreebModule.initSdk(iosChannelId, userId, properties);
19
- }
20
- else {
21
- return ScreebModule.initSdk(androidChannelId, userId, properties);
22
- }
23
- }
24
- exports.initSdk = initSdk;
25
- function setIdentity(userId, properties) {
26
- return ScreebModule.setIdentity(userId, properties);
27
- }
28
- exports.setIdentity = setIdentity;
29
- function setProperties(properties) {
30
- return ScreebModule.setProperties(properties);
31
- }
32
- exports.setProperties = setProperties;
33
- function assignGroup(type, name, properties) {
34
- return ScreebModule.assignGroup(type, name, properties);
35
- }
36
- exports.assignGroup = assignGroup;
37
- function unassignGroup(type, name, properties) {
38
- return ScreebModule.unassignGroup(type, name, properties);
39
- }
40
- exports.unassignGroup = unassignGroup;
41
- function trackEvent(name, properties) {
42
- return ScreebModule.trackEvent(name, properties);
43
- }
44
- exports.trackEvent = trackEvent;
45
- function trackScreen(name, properties) {
46
- return ScreebModule.trackScreen(name, properties);
47
- }
48
- exports.trackScreen = trackScreen;
49
- function startSurvey(surveyId, allowMultipleResponses, hiddenFields, ignoreSurveyStatus) {
50
- return ScreebModule.startSurvey(surveyId, allowMultipleResponses ?? true, hiddenFields, ignoreSurveyStatus ?? true);
51
- }
52
- exports.startSurvey = startSurvey;
53
- function debug() {
54
- return ScreebModule.debug();
55
- }
56
- exports.debug = debug;
57
- function debugTargeting() {
58
- return ScreebModule.debugTargeting();
59
- }
60
- exports.debugTargeting = debugTargeting;
61
- function resetIdentity() {
62
- return ScreebModule.resetIdentity();
63
- }
64
- exports.resetIdentity = resetIdentity;
65
- function closeSdk() {
66
- return ScreebModule.closeSdk();
67
- }
68
- exports.closeSdk = closeSdk;
@@ -1,53 +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` +
3
- Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
4
- '- You rebuilt the app after installing the package\n' +
5
- '- You are not using Expo managed workflow\n';
6
- const ScreebModule = NativeModules.ScreebModule
7
- ? NativeModules.ScreebModule
8
- : new Proxy({}, {
9
- get() {
10
- throw new Error(LINKING_ERROR);
11
- },
12
- });
13
- export function initSdk(androidChannelId, iosChannelId, userId, properties) {
14
- if (Platform.OS === 'ios') {
15
- return ScreebModule.initSdk(iosChannelId, userId, properties);
16
- }
17
- else {
18
- return ScreebModule.initSdk(androidChannelId, userId, properties);
19
- }
20
- }
21
- export function setIdentity(userId, properties) {
22
- return ScreebModule.setIdentity(userId, properties);
23
- }
24
- export function setProperties(properties) {
25
- return ScreebModule.setProperties(properties);
26
- }
27
- export function assignGroup(type, name, properties) {
28
- return ScreebModule.assignGroup(type, name, properties);
29
- }
30
- export function unassignGroup(type, name, properties) {
31
- return ScreebModule.unassignGroup(type, name, properties);
32
- }
33
- export function trackEvent(name, properties) {
34
- return ScreebModule.trackEvent(name, properties);
35
- }
36
- export function trackScreen(name, properties) {
37
- return ScreebModule.trackScreen(name, properties);
38
- }
39
- export function startSurvey(surveyId, allowMultipleResponses, hiddenFields, ignoreSurveyStatus) {
40
- return ScreebModule.startSurvey(surveyId, allowMultipleResponses ?? true, hiddenFields, ignoreSurveyStatus ?? true);
41
- }
42
- export function debug() {
43
- return ScreebModule.debug();
44
- }
45
- export function debugTargeting() {
46
- return ScreebModule.debugTargeting();
47
- }
48
- export function resetIdentity() {
49
- return ScreebModule.resetIdentity();
50
- }
51
- export function closeSdk() {
52
- return ScreebModule.closeSdk();
53
- }
@@ -1,12 +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 setProperties(properties?: Map<string, any>): any;
4
- export declare function assignGroup(type: string | null, name: string, properties?: Map<string, any>): any;
5
- export declare function unassignGroup(type: string | null, name: string, properties?: Map<string, any>): any;
6
- export declare function trackEvent(name: string, properties?: Map<string, any>): any;
7
- export declare function trackScreen(name: string, properties?: Map<string, any>): any;
8
- export declare function startSurvey(surveyId: string, allowMultipleResponses?: boolean, hiddenFields?: Map<string, any>, ignoreSurveyStatus?: boolean): any;
9
- export declare function debug(): any;
10
- export declare function debugTargeting(): any;
11
- export declare function resetIdentity(): any;
12
- export declare function closeSdk(): any;