@selligent-marketing-cloud/selligent-react-native 2.9.0 → 3.0.0
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/CHANGELOG.md +28 -0
- package/README.md +117 -12
- package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +1 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +1 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +4 -2
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +2 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +478 -352
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/{packageDebugResources → debug/packageDebugResources}/merger.xml +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +1 -1
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +1 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +4 -2
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +214 -132
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +27 -31
- package/android/libs/sdk-release.aar +0 -0
- package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +1 -1
- package/android/src/main/java/com/selligent/RNSelligent.java +1 -1
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +0 -1
- package/android/src/main/java/com/selligent/Settings.java +0 -8
- package/ios/libSelligentMobile.a +0 -0
- package/package.json +3 -3
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import com.android.build.api.variant.BuildConfigField
|
|
2
|
+
|
|
3
|
+
apply plugin: 'com.android.library'
|
|
4
|
+
apply plugin: 'maven-publish'
|
|
5
|
+
|
|
1
6
|
buildscript {
|
|
2
7
|
repositories {
|
|
3
8
|
google()
|
|
@@ -5,20 +10,31 @@ buildscript {
|
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
dependencies {
|
|
8
|
-
classpath 'com.android.tools.build:gradle:
|
|
13
|
+
classpath 'com.android.tools.build:gradle:7.2.2'
|
|
9
14
|
}
|
|
10
15
|
}
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
def buildTypeAttr = Attribute.of("com.android.build.api.attributes.BuildTypeAttr", String)
|
|
18
|
+
|
|
19
|
+
dependencies.attributesSchema {
|
|
20
|
+
// registers this attribute to the attributes schema
|
|
21
|
+
attribute(buildTypeAttr)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
configurations {
|
|
25
|
+
implementation {
|
|
26
|
+
attributes {
|
|
27
|
+
attribute(buildTypeAttr, "release")
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
14
31
|
|
|
15
32
|
android {
|
|
16
|
-
compileSdkVersion
|
|
17
|
-
buildToolsVersion "30.0.2"
|
|
33
|
+
compileSdkVersion 32
|
|
18
34
|
|
|
19
35
|
defaultConfig {
|
|
20
36
|
minSdkVersion 21
|
|
21
|
-
targetSdkVersion
|
|
37
|
+
targetSdkVersion 32
|
|
22
38
|
ndkVersion = "21.4.7075529"
|
|
23
39
|
versionCode 1
|
|
24
40
|
versionName "1.0"
|
|
@@ -34,7 +50,7 @@ androidComponents {
|
|
|
34
50
|
def selligentSettings = loadSelligentSettings(variant)
|
|
35
51
|
if (selligentSettings != null) {
|
|
36
52
|
try {
|
|
37
|
-
variant.
|
|
53
|
+
variant.buildConfigFields.put("SELLIGENT_SETTINGS", new BuildConfigField("String", "\"" + selligentSettings + "\"", "Selligent settings"))
|
|
38
54
|
} catch (MissingMethodException ignored) {
|
|
39
55
|
throw new Exception("Selligent requires Android Gradle plugin version 4.2.0 or higher.")
|
|
40
56
|
}
|
|
@@ -55,40 +71,20 @@ dependencies {
|
|
|
55
71
|
implementation 'com.facebook.react:react-native:+'
|
|
56
72
|
implementation 'com.android.support:cardview-v7:27.1.1'
|
|
57
73
|
implementation 'com.plotprojects:plot-android:3.13.1'
|
|
58
|
-
implementation 'com.google.code.gson:gson:2.8.
|
|
74
|
+
implementation 'com.google.code.gson:gson:2.8.9'
|
|
59
75
|
implementation 'com.google.firebase:firebase-messaging:21.0.0'
|
|
60
|
-
implementation 'androidx.work:work-runtime:2.
|
|
76
|
+
implementation 'androidx.work:work-runtime:2.7.1'
|
|
61
77
|
implementation 'androidx.concurrent:concurrent-futures:1.1.0'
|
|
62
78
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
63
79
|
}
|
|
64
80
|
|
|
65
|
-
def configureReactNativePom(def pom) {
|
|
66
|
-
def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
|
|
67
|
-
|
|
68
|
-
pom.project {
|
|
69
|
-
name packageJson.title
|
|
70
|
-
artifactId packageJson.name
|
|
71
|
-
version = packageJson.version
|
|
72
|
-
group = "com.selligent"
|
|
73
|
-
description packageJson.description
|
|
74
|
-
url packageJson.repository.baseUrl
|
|
75
|
-
|
|
76
|
-
licenses {
|
|
77
|
-
license {
|
|
78
|
-
name packageJson.license
|
|
79
|
-
url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
|
|
80
|
-
distribution 'repo'
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
81
|
afterEvaluate { project ->
|
|
87
82
|
|
|
88
83
|
task androidJavadoc(type: Javadoc) {
|
|
89
84
|
source = android.sourceSets.main.java.srcDirs
|
|
90
85
|
classpath += files(android.bootClasspath)
|
|
91
|
-
|
|
86
|
+
project.getConfigurations().getByName('implementation').setCanBeResolved(true)
|
|
87
|
+
classpath += files(project.getConfigurations().getByName('implementation').asList())
|
|
92
88
|
include '**/*.java'
|
|
93
89
|
}
|
|
94
90
|
|
|
Binary file
|
|
@@ -17,7 +17,7 @@ class ButtonBroadcastEventDataParser implements BroadcastEventDataParser {
|
|
|
17
17
|
resultingMap.putInt("type", button.type);
|
|
18
18
|
resultingMap.putString("value", button.value);
|
|
19
19
|
resultingMap.putString("label", button.label);
|
|
20
|
-
resultingMap.putInt("action", button.action);
|
|
20
|
+
resultingMap.putInt("action", button.action.getValue());
|
|
21
21
|
if (button.data != null) {
|
|
22
22
|
final WritableMap buttonData = new WritableNativeMap();
|
|
23
23
|
for(String dataKey : button.data.keySet()) {
|
|
@@ -187,7 +187,7 @@ public class RNSelligent extends ReactContextBaseJavaModule implements Lifecycle
|
|
|
187
187
|
buttonMap.putString("id", button.id);
|
|
188
188
|
buttonMap.putString("value", button.value);
|
|
189
189
|
buttonMap.putString("label", button.label);
|
|
190
|
-
buttonMap.putInt("action", button.action);
|
|
190
|
+
buttonMap.putInt("action", button.action.getValue());
|
|
191
191
|
buttonMap.putInt("type", button.type);
|
|
192
192
|
|
|
193
193
|
buttonsArray.pushMap(buttonMap);
|
|
@@ -9,7 +9,6 @@ class SMSettingsFactory {
|
|
|
9
9
|
smSettings.WebServiceUrl = settings.getUrl();
|
|
10
10
|
smSettings.ClientId = settings.getClientId();
|
|
11
11
|
smSettings.PrivateKey = settings.getPrivateKey();
|
|
12
|
-
smSettings.GoogleApplicationId = settings.getGoogleApplicationId();
|
|
13
12
|
smSettings.ConfigureGeolocation = settings.getConfigureLocationServices();
|
|
14
13
|
smSettings.AddInAppMessageFromPushToInAppMessageList = settings.getAddInAppMessageFromPushToInAppMessageList();
|
|
15
14
|
smSettings.DoNotFetchTheToken = settings.getDoNotFetchTheToken();
|
|
@@ -8,7 +8,6 @@ class Settings {
|
|
|
8
8
|
private String url;
|
|
9
9
|
private String clientId;
|
|
10
10
|
private String privateKey;
|
|
11
|
-
private String googleApplicationId;
|
|
12
11
|
private String activityName;
|
|
13
12
|
private String notificationSmallIcon;
|
|
14
13
|
private String notificationLargeIcon;
|
|
@@ -39,10 +38,6 @@ class Settings {
|
|
|
39
38
|
return privateKey;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
public String getGoogleApplicationId() {
|
|
43
|
-
return googleApplicationId;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
41
|
public String getActivityName() {
|
|
47
42
|
return activityName;
|
|
48
43
|
}
|
|
@@ -101,9 +96,6 @@ class Settings {
|
|
|
101
96
|
settings.url = (String) settingsHashMap.get("url");
|
|
102
97
|
settings.clientId = (String) settingsHashMap.get("clientId");
|
|
103
98
|
settings.privateKey = (String) settingsHashMap.get("privateKey");
|
|
104
|
-
if (settingsHashMap.containsKey("googleApplicationId")) {
|
|
105
|
-
settings.googleApplicationId = (String) settingsHashMap.get("googleApplicationId");
|
|
106
|
-
}
|
|
107
99
|
if (settingsHashMap.containsKey("configureLocationServices")) {
|
|
108
100
|
settings.configureLocationServices = (Boolean) settingsHashMap.get("configureLocationServices");
|
|
109
101
|
|
package/ios/libSelligentMobile.a
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selligent-marketing-cloud/selligent-react-native",
|
|
3
3
|
"title": "Selligent React Native",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "React Native bridge for Selligent SDK",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-native": "*"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"react": "
|
|
30
|
-
"react-native": "^0.
|
|
29
|
+
"react": "18.1.0",
|
|
30
|
+
"react-native": "^0.70.6"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#Wed May 18 23:29:26 CEST 2022
|