affise-attribution-lib 1.6.28 → 1.6.29
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/README.md +27 -9
- package/affise-attribution-native.podspec +2 -2
- package/android/build.gradle +2 -1
- package/lib/commonjs/module/AffiseModules.js +1 -0
- package/lib/commonjs/module/AffiseModules.js.map +1 -1
- package/lib/module/module/AffiseModules.js +1 -0
- package/lib/module/module/AffiseModules.js.map +1 -1
- package/lib/typescript/module/AffiseModules.d.ts +1 -0
- package/lib/typescript/module/AffiseModules.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/module/AffiseModules.ts +1 -0
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
- [Affise Attribution React Native Library](#affise-attribution-react-native-library)
|
|
10
10
|
- [Description](#description)
|
|
11
11
|
- [Quick start](#quick-start)
|
|
12
|
+
- [SDK compatibility](#sdk-compatibility)
|
|
12
13
|
- [Integration](#integration)
|
|
13
14
|
- [Integrate npm package](#integrate-npm-package)
|
|
14
15
|
- [Modules](#modules)
|
|
@@ -83,6 +84,12 @@ referrer.
|
|
|
83
84
|
|
|
84
85
|
## Quick start
|
|
85
86
|
|
|
87
|
+
### SDK compatibility
|
|
88
|
+
|
|
89
|
+
- `Xcode` `14.2+`
|
|
90
|
+
- `iOS` `12+`
|
|
91
|
+
- `Android` `21+`
|
|
92
|
+
|
|
86
93
|
## Integration
|
|
87
94
|
|
|
88
95
|
### Integrate npm package
|
|
@@ -136,7 +143,7 @@ Add modules to Android project
|
|
|
136
143
|
Example [`example/android/app/build.gradle`](example/android/app/build.gradle)
|
|
137
144
|
|
|
138
145
|
```gradle
|
|
139
|
-
final affise_version = '1.6.
|
|
146
|
+
final affise_version = '1.6.53'
|
|
140
147
|
|
|
141
148
|
dependencies {
|
|
142
149
|
// Affise modules
|
|
@@ -158,10 +165,11 @@ Add modules to iOS project
|
|
|
158
165
|
|
|
159
166
|
| Module | Version | Start |
|
|
160
167
|
|----------------|:------------------------------------------------------------------------------------:|----------|
|
|
161
|
-
| `ADVERTISING` | [`1.6.
|
|
162
|
-
| `LINK` | [`1.6.
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
168
|
+
| `ADVERTISING` | [`1.6.45`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Manual` |
|
|
169
|
+
| `LINK` | [`1.6.45`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
170
|
+
| `PERSISTENT` | [`1.6.45`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
171
|
+
| `STATUS` | [`1.6.45`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
172
|
+
| `SUBSCRIPTION` | [`1.6.45`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) | `Auto` |
|
|
165
173
|
|
|
166
174
|
Example [example/ios/Podfile](example/ios/Podfile)
|
|
167
175
|
|
|
@@ -169,11 +177,13 @@ Example [example/ios/Podfile](example/ios/Podfile)
|
|
|
169
177
|
target 'YourAppProject' do
|
|
170
178
|
# ...
|
|
171
179
|
|
|
180
|
+
affise_version = '1.6.45'
|
|
172
181
|
# Affise Modules
|
|
173
|
-
pod 'AffiseModule/Advertising',
|
|
174
|
-
pod 'AffiseModule/Link',
|
|
175
|
-
pod 'AffiseModule/
|
|
176
|
-
pod 'AffiseModule/
|
|
182
|
+
pod 'AffiseModule/Advertising', affise_version
|
|
183
|
+
pod 'AffiseModule/Link', affise_version
|
|
184
|
+
pod 'AffiseModule/Persistent', affise_version
|
|
185
|
+
pod 'AffiseModule/Status', affise_version
|
|
186
|
+
pod 'AffiseModule/Subscription', affise_version
|
|
177
187
|
end
|
|
178
188
|
```
|
|
179
189
|
|
|
@@ -1126,6 +1136,14 @@ Affise.getRandomUserId();
|
|
|
1126
1136
|
|
|
1127
1137
|
## Get random device Id
|
|
1128
1138
|
|
|
1139
|
+
> **Note**
|
|
1140
|
+
>
|
|
1141
|
+
> To make `device id` more persistent on application reinstall
|
|
1142
|
+
>
|
|
1143
|
+
> use [Affise `Persistent` Module](#modules) for `iOS`
|
|
1144
|
+
>
|
|
1145
|
+
> use [Affise `AndroidId` Module](#modules) for `Android`
|
|
1146
|
+
|
|
1129
1147
|
```typescript
|
|
1130
1148
|
Affise.getRandomDeviceId();
|
|
1131
1149
|
```
|
|
@@ -11,13 +11,13 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.license = package["license"]
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
|
-
s.platforms = { :ios => "
|
|
14
|
+
s.platforms = { :ios => "12.0" }
|
|
15
15
|
s.source = { :git => "https://github.com/affise/sdk-react.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency 'AffiseInternal', '1.6.
|
|
20
|
+
s.dependency 'AffiseInternal', '1.6.45'
|
|
21
21
|
|
|
22
22
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
23
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
package/android/build.gradle
CHANGED
|
@@ -2,7 +2,7 @@ buildscript {
|
|
|
2
2
|
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
3
|
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["AffiseAttributionNative_kotlinVersion"]
|
|
4
4
|
ext {
|
|
5
|
-
affise_version = '1.6.
|
|
5
|
+
affise_version = '1.6.53'
|
|
6
6
|
agp_version = '7.2.2'
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ def getExtOrIntegerDefault(name) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
android {
|
|
41
|
+
namespace 'com.affise.attribution.react'
|
|
41
42
|
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
42
43
|
|
|
43
44
|
defaultConfig {
|
|
@@ -11,6 +11,7 @@ exports.AffiseModules = AffiseModules;
|
|
|
11
11
|
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
12
12
|
AffiseModules["LINK"] = "Link";
|
|
13
13
|
AffiseModules["NETWORK"] = "Network";
|
|
14
|
+
AffiseModules["PERSISTENT"] = "Persistent";
|
|
14
15
|
AffiseModules["PHONE"] = "Phone";
|
|
15
16
|
AffiseModules["STATUS"] = "Status";
|
|
16
17
|
AffiseModules["SUBSCRIPTION"] = "Subscription";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":";;;;;;IAAYA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":";;;;;;IAAYA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
@@ -4,6 +4,7 @@ export let AffiseModules;
|
|
|
4
4
|
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
5
5
|
AffiseModules["LINK"] = "Link";
|
|
6
6
|
AffiseModules["NETWORK"] = "Network";
|
|
7
|
+
AffiseModules["PERSISTENT"] = "Persistent";
|
|
7
8
|
AffiseModules["PHONE"] = "Phone";
|
|
8
9
|
AffiseModules["STATUS"] = "Status";
|
|
9
10
|
AffiseModules["SUBSCRIPTION"] = "Subscription";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;AAWxB,WAXWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiseModules.d.ts","sourceRoot":"","sources":["../../../src/module/AffiseModules.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB"}
|
|
1
|
+
{"version":3,"file":"AffiseModules.d.ts","sourceRoot":"","sources":["../../../src/module/AffiseModules.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB"}
|
package/package.json
CHANGED