@amplitude/plugin-engagement-react-native 0.2.0-alpha.0 → 0.2.0-alpha.2

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.
@@ -15,8 +15,8 @@ Pod::Spec.new do |s|
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
17
17
  s.private_header_files = "ios/**/*.h"
18
- #s.dependency "AmplitudeEngagementSwift"
19
- s.dependency "AmplitudeEngagementSwift"
20
-
18
+
19
+ s.dependency "AmplitudeEngagementSwift", ">=1.0.6"
20
+
21
21
  install_modules_dependencies(s)
22
22
  end
package/README.md CHANGED
@@ -12,20 +12,8 @@ To install:
12
12
 
13
13
  ```sh
14
14
  npm install @amplitude/analytics-react-native
15
- npm install @amplitude/plugin-engagement-react-native
16
15
  npm install @react-native-async-storage/async-storage
17
- ```
18
-
19
- Add the source for the `AmplitudeEngagementSwift` pod to your Podfile:
20
-
21
- ```rb
22
- target '<your appname>' do
23
- ...
24
-
25
- pod "AmplitudeEngagementSwift", :git => "https://github.com/amplitude/Amplitude-Engagement-Swift"
26
-
27
- ...
28
- end
16
+ npm install @amplitude/plugin-engagement-react-native
29
17
  ```
30
18
 
31
19
  Re-run `pod install` in the `ios` directory:
@@ -82,11 +70,11 @@ Finally, “boot” the plugin with the user’s ID; "booting" the SDK enables G
82
70
 
83
71
  ```
84
72
  import {
85
- track,
86
73
  setDeviceId,
87
74
  setUserId,
88
75
  } from '@amplitude/analytics-react-native';
89
76
  import { useEffect } from 'react';
77
+ import { getPlugin } from '@amplitude/plugin-engagement-react-native';
90
78
 
91
79
  export default function App() {
92
80
  useEffect(() => {
@@ -76,7 +76,7 @@ dependencies {
76
76
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
77
77
 
78
78
  // Amplitude Engagement SDK
79
- implementation "com.amplitude:amplitude-engagement-android:1.0.14"
79
+ implementation "com.amplitude:amplitude-engagement-android:1.0.15"
80
80
 
81
81
  // Amplitude Analytics SDK (required dependency)
82
82
  implementation "com.amplitude:analytics-android:1.+"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-engagement-react-native",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-alpha.2",
4
4
  "description": "Amplitude Engagement plugin for React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",