@rollershop/capacitor-emarsys-sdk 1.0.0-beta.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.
Files changed (43) hide show
  1. package/README.md +1076 -0
  2. package/RollershopCapacitorEmarsysSdk.podspec +18 -0
  3. package/android/build.gradle +58 -0
  4. package/android/src/main/AndroidManifest.xml +3 -0
  5. package/android/src/main/java/de/roller/emarsys/Emarsys.java +8 -0
  6. package/android/src/main/java/de/roller/emarsys/EmarsysPlugin.java +22 -0
  7. package/android/src/main/res/.gitkeep +0 -0
  8. package/dist/docs.json +1912 -0
  9. package/dist/esm/definitions.d.ts +266 -0
  10. package/dist/esm/definitions.js +3 -0
  11. package/dist/esm/definitions.js.map +1 -0
  12. package/dist/esm/index.d.ts +4 -0
  13. package/dist/esm/index.js +5 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/interfaces/base.d.ts +25 -0
  16. package/dist/esm/interfaces/base.js +2 -0
  17. package/dist/esm/interfaces/base.js.map +1 -0
  18. package/dist/esm/interfaces/config.d.ts +12 -0
  19. package/dist/esm/interfaces/config.js +2 -0
  20. package/dist/esm/interfaces/config.js.map +1 -0
  21. package/dist/esm/interfaces/inbox.d.ts +108 -0
  22. package/dist/esm/interfaces/inbox.js +2 -0
  23. package/dist/esm/interfaces/inbox.js.map +1 -0
  24. package/dist/esm/interfaces/predict.d.ts +297 -0
  25. package/dist/esm/interfaces/predict.js +2 -0
  26. package/dist/esm/interfaces/predict.js.map +1 -0
  27. package/dist/esm/interfaces/push.d.ts +25 -0
  28. package/dist/esm/interfaces/push.js +2 -0
  29. package/dist/esm/interfaces/push.js.map +1 -0
  30. package/dist/plugin.cjs.js +10 -0
  31. package/dist/plugin.cjs.js.map +1 -0
  32. package/dist/plugin.js +13 -0
  33. package/dist/plugin.js.map +1 -0
  34. package/ios/Plugin/EmarsysConfig.swift +51 -0
  35. package/ios/Plugin/EmarsysDelegate.swift +16 -0
  36. package/ios/Plugin/EmarsysInbox.swift +110 -0
  37. package/ios/Plugin/EmarsysPlugin.h +10 -0
  38. package/ios/Plugin/EmarsysPlugin.m +36 -0
  39. package/ios/Plugin/EmarsysPlugin.swift +335 -0
  40. package/ios/Plugin/EmarsysPredict.swift +195 -0
  41. package/ios/Plugin/EmarsysTypes.swift +18 -0
  42. package/ios/Plugin/Info.plist +24 -0
  43. package/package.json +102 -0
@@ -0,0 +1,18 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'RollershopCapacitorEmarsysSdk'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '12.0'
15
+ s.dependency 'Capacitor'
16
+ s.dependency 'EmarsysSDK', '3.2.2'
17
+ s.swift_version = '5.1'
18
+ end
@@ -0,0 +1,58 @@
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
6
+ }
7
+
8
+ buildscript {
9
+ repositories {
10
+ google()
11
+ jcenter()
12
+ }
13
+ dependencies {
14
+ classpath 'com.android.tools.build:gradle:4.2.1'
15
+ }
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ android {
21
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
22
+ defaultConfig {
23
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
24
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
25
+ versionCode 1
26
+ versionName "1.0"
27
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
28
+ }
29
+ buildTypes {
30
+ release {
31
+ minifyEnabled false
32
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ }
34
+ }
35
+ lintOptions {
36
+ abortOnError false
37
+ }
38
+ compileOptions {
39
+ sourceCompatibility JavaVersion.VERSION_1_8
40
+ targetCompatibility JavaVersion.VERSION_1_8
41
+ }
42
+ }
43
+
44
+ repositories {
45
+ google()
46
+ jcenter()
47
+ mavenCentral()
48
+ }
49
+
50
+
51
+ dependencies {
52
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
53
+ implementation project(':capacitor-android')
54
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
55
+ testImplementation "junit:junit:$junitVersion"
56
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
57
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
58
+ }
@@ -0,0 +1,3 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="de.roller.emarsys">
3
+ </manifest>
@@ -0,0 +1,8 @@
1
+ package de.roller.emarsys;
2
+
3
+ public class Emarsys {
4
+
5
+ public String echo(String value) {
6
+ return value;
7
+ }
8
+ }
@@ -0,0 +1,22 @@
1
+ package de.roller.emarsys;
2
+
3
+ import com.getcapacitor.JSObject;
4
+ import com.getcapacitor.Plugin;
5
+ import com.getcapacitor.PluginCall;
6
+ import com.getcapacitor.PluginMethod;
7
+ import com.getcapacitor.annotation.CapacitorPlugin;
8
+
9
+ @CapacitorPlugin(name = "Emarsys")
10
+ public class EmarsysPlugin extends Plugin {
11
+
12
+ private Emarsys implementation = new Emarsys();
13
+
14
+ @PluginMethod
15
+ public void echo(PluginCall call) {
16
+ String value = call.getString("value");
17
+
18
+ JSObject ret = new JSObject();
19
+ ret.put("value", implementation.echo(value));
20
+ call.resolve(ret);
21
+ }
22
+ }
File without changes