Skip to content

Commit 3663c01

Browse files
author
Sergey Korney
committed
1.6.5
1 parent 3a59d1f commit 3663c01

File tree

8 files changed

+234
-127
lines changed

8 files changed

+234
-127
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Package | Version |
44
|--------------------------|:-------------------------------------------------------:|
5-
| `affise_attribution_lib` | [`1.6.4`](https://github.com/affise/sdk-react/releases) |
5+
| `affise_attribution_lib` | [`1.6.5`](https://github.com/affise/sdk-react/releases) |
66

77
- [Affise Attribution Flutter Library](#affise-attribution-flutter-library)
88
- [Description](#description)
@@ -111,7 +111,7 @@ Add modules to iOS project
111111

112112
| Module | Version |
113113
|-----------------------|:------------------------------------------------------------------------------------:|
114-
| `AffiseModule/Status` | [`1.6.13`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
114+
| `AffiseModule/Status` | [`1.6.14`](https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/d/AffiseModule/) |
115115

116116
Example [example/ios/Podfile](example/ios/Podfile)
117117

@@ -120,7 +120,7 @@ target 'Runner' do
120120
# ...
121121
122122
# Affise Module
123-
pod 'AffiseModule/Status', `1.6.13`
123+
pod 'AffiseModule/Status', `1.6.14`
124124
end
125125
```
126126

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ target 'Runner' do
3434
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3535

3636
# Affise modules
37-
pod 'AffiseModule', '1.6.13'
37+
pod 'AffiseModule', '1.6.14'
3838
end
3939

4040
post_install do |installer|

example/lib/affise/affise_api_widget.dart

Lines changed: 99 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -36,86 +36,112 @@ class _AffiseApiWidgetState extends State<AffiseApiWidget> {
3636
return Container(
3737
padding: const EdgeInsets.all(8),
3838
child: Column(
39-
crossAxisAlignment: CrossAxisAlignment.stretch,
4039
children: [
4140
Container(
4241
margin: const EdgeInsets.all(8),
4342
child: TextField(
4443
controller: output,
4544
),
4645
),
47-
ElevatedButton(
48-
onPressed: () {
49-
// Debug: Validate credentials https://github.com/affise/flutter-sdk#validate-credentials
50-
Affise.debug.validate((status) {
51-
setOutput("Validate: $status");
52-
});
53-
},
54-
child: const Text("Debug: Validate credentials"),
55-
),
56-
ElevatedButton(
57-
onPressed: () {
58-
// Deeplinks https://github.com/affise/flutter-sdk#deeplinks
59-
Affise.registerDeeplinkCallback((uri) {
60-
setOutput("Deeplink: $uri");
61-
});
62-
},
63-
child: const Text("Deeplink"),
64-
),
65-
ElevatedButton(
66-
onPressed: () {
67-
// Get module state https://github.com/affise/flutter-sdk#get-module-state
68-
Affise.getStatus(AffiseModules.STATUS, (value) {
69-
setOutput("Status: ${value.toString()}");
70-
});
71-
},
72-
child: const Text("Status"),
73-
),
74-
ElevatedButton(
75-
onPressed: () {
76-
// Get referrer https://github.com/affise/flutter-sdk#get-referrer
77-
Affise.android.getReferrer((value) {
78-
setOutput("Referrer: $value");
79-
});
80-
},
81-
child: const Text("Referrer"),
82-
),
83-
ElevatedButton(
84-
onPressed: () {
85-
// Get referrer value https://github.com/affise/flutter-sdk#get-referrer-value
86-
Affise.android.getReferrerValue(ReferrerKey.CLICK_ID, (value) {
87-
setOutput("ReferrerValue: $value");
88-
});
89-
},
90-
child: const Text("ReferrerValue"),
91-
),
92-
ElevatedButton(
93-
onPressed: () {
94-
// StoreKit Ad Network https://github.com/affise/flutter-sdk#storekit-ad-network
95-
Affise.ios.registerAppForAdNetworkAttribution((error) {
96-
setOutput("SKAd register: $error");
97-
});
98-
},
99-
child: const Text("SKAd register"),
100-
),
101-
ElevatedButton(
102-
onPressed: () {
103-
// StoreKit Ad Network https://github.com/affise/flutter-sdk#storekit-ad-network
104-
Affise.ios.updatePostbackConversionValue(1, SKAdNetwork.CoarseConversionValue.medium, (error) {
105-
setOutput("SKAd update: $error");
106-
});
107-
},
108-
child: const Text("SKAd update"),
109-
),
110-
ElevatedButton(
111-
onPressed: () {
112-
// Get providers https://github.com/affise/flutter-sdk#get-providers
113-
Affise.getProviders().then((data) {
114-
var key = ProviderType.AFFISE_APP_TOKEN;
115-
setOutput("Get Providers: $key = ${data[key]}");
116-
});
117-
},
118-
child: const Text("Get Providers"),
46+
Expanded(
47+
child: SingleChildScrollView(
48+
child: Column(
49+
crossAxisAlignment: CrossAxisAlignment.stretch,
50+
children: [
51+
ElevatedButton(
52+
onPressed: () {
53+
// Debug: Validate credentials https://github.com/affise/flutter-sdk#validate-credentials
54+
Affise.debug.validate((status) {
55+
setOutput("Validate: $status");
56+
});
57+
},
58+
child: const Text("Debug: Validate credentials"),
59+
),
60+
ElevatedButton(
61+
onPressed: () {
62+
// Deeplinks https://github.com/affise/flutter-sdk#deeplinks
63+
Affise.registerDeeplinkCallback((uri) {
64+
setOutput("Deeplink: $uri");
65+
});
66+
},
67+
child: const Text("Deeplink"),
68+
),
69+
ElevatedButton(
70+
onPressed: () {
71+
// Get module state https://github.com/affise/flutter-sdk#get-module-state
72+
Affise.getStatus(AffiseModules.STATUS, (value) {
73+
setOutput("Status: ${value.toString()}");
74+
});
75+
},
76+
child: const Text("Status"),
77+
),
78+
ElevatedButton(
79+
onPressed: () {
80+
// Get referrer https://github.com/affise/flutter-sdk#get-referrer
81+
Affise.android.getReferrer((value) {
82+
setOutput("Referrer: $value");
83+
});
84+
},
85+
child: const Text("Referrer"),
86+
),
87+
ElevatedButton(
88+
onPressed: () {
89+
// Get referrer value https://github.com/affise/flutter-sdk#get-referrer-value
90+
Affise.android.getReferrerValue(ReferrerKey.CLICK_ID, (value) {
91+
setOutput("ReferrerValue: $value");
92+
});
93+
},
94+
child: const Text("ReferrerValue"),
95+
),
96+
ElevatedButton(
97+
onPressed: () {
98+
// StoreKit Ad Network https://github.com/affise/flutter-sdk#storekit-ad-network
99+
Affise.ios.registerAppForAdNetworkAttribution((error) {
100+
setOutput("SKAd register: $error");
101+
});
102+
},
103+
child: const Text("SKAd register"),
104+
),
105+
ElevatedButton(
106+
onPressed: () {
107+
// StoreKit Ad Network https://github.com/affise/flutter-sdk#storekit-ad-network
108+
Affise.ios.updatePostbackConversionValue(1, SKAdNetwork.CoarseConversionValue.medium, (error) {
109+
setOutput("SKAd update: $error");
110+
});
111+
},
112+
child: const Text("SKAd update"),
113+
),
114+
ElevatedButton(
115+
onPressed: () {
116+
// Get providers https://github.com/affise/flutter-sdk#get-providers
117+
Affise.getProviders().then((data) {
118+
var key = ProviderType.AFFISE_APP_TOKEN;
119+
setOutput("Get Providers: $key = ${data[key]}");
120+
});
121+
},
122+
child: const Text("Get Providers"),
123+
),
124+
ElevatedButton(
125+
onPressed: () {
126+
// Get Random Device Id https://github.com/affise/flutter-sdk#get-random-device-id
127+
Affise.getRandomDeviceId().then((value) {
128+
setOutput("RandomDeviceId: $value");
129+
});
130+
},
131+
child: const Text("Get Random Device Id"),
132+
),
133+
ElevatedButton(
134+
onPressed: () {
135+
// Get Random User Id https://github.com/affise/flutter-sdk#get-random-user-id
136+
Affise.getRandomUserId().then((value) {
137+
setOutput("RandomUserId: $value");
138+
});
139+
},
140+
child: const Text("Get Random Device Id"),
141+
),
142+
],
143+
),
144+
),
119145
),
120146
],
121147
),

example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ class _MyAppState extends State<MyApp> {
6969
length: 2,
7070
child: Scaffold(
7171
appBar: AppBar(
72-
bottom: TabBar(
72+
bottom: const TabBar(
7373
tabs: [
7474
Tab(
7575
child: Row(
7676
mainAxisSize: MainAxisSize.min,
77-
children: const [
77+
children: [
7878
Icon(Icons.swap_horiz),
7979
SizedBox(width: 8),
8080
Text('API'),
@@ -84,7 +84,7 @@ class _MyAppState extends State<MyApp> {
8484
Tab(
8585
child: Row(
8686
mainAxisSize: MainAxisSize.min,
87-
children: const [
87+
children: [
8888
Icon(Icons.file_upload),
8989
SizedBox(width: 8),
9090
Text('Events'),

example/pubspec.lock

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ packages:
77
path: ".."
88
relative: true
99
source: path
10-
version: "1.6.4"
10+
version: "1.6.5"
1111
async:
1212
dependency: transitive
1313
description:
1414
name: async
15-
sha256: "271b8899fc99f9df4f4ed419fa14e2fff392c7b2c162fbb87b222e2e963ddc73"
15+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
1616
url: "https://pub.dev"
1717
source: hosted
18-
version: "2.9.0"
18+
version: "2.11.0"
1919
boolean_selector:
2020
dependency: transitive
2121
description:
2222
name: boolean_selector
23-
sha256: "5bbf32bc9e518d41ec49718e2931cd4527292c9b0c6d2dffcf7fe6b9a8a8cf72"
23+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
2424
url: "https://pub.dev"
2525
source: hosted
26-
version: "2.1.0"
26+
version: "2.1.1"
2727
characters:
2828
dependency: transitive
2929
description:
3030
name: characters
31-
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
31+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
3232
url: "https://pub.dev"
3333
source: hosted
34-
version: "1.2.1"
34+
version: "1.3.0"
3535
clock:
3636
dependency: transitive
3737
description:
@@ -44,10 +44,10 @@ packages:
4444
dependency: transitive
4545
description:
4646
name: collection
47-
sha256: ef7e3a5529178ce8f37a9d0b11cbbc8b1e025940f9cf9f76c42da6796301219d
47+
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
4848
url: "https://pub.dev"
4949
source: hosted
50-
version: "1.16.0"
50+
version: "1.17.1"
5151
cupertino_icons:
5252
dependency: "direct main"
5353
description:
@@ -94,10 +94,10 @@ packages:
9494
dependency: transitive
9595
description:
9696
name: js
97-
sha256: a5e201311cb08bf3912ebbe9a2be096e182d703f881136ec1e81a2338a9e120d
97+
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
9898
url: "https://pub.dev"
9999
source: hosted
100-
version: "0.6.4"
100+
version: "0.6.7"
101101
lints:
102102
dependency: transitive
103103
description:
@@ -110,10 +110,10 @@ packages:
110110
dependency: transitive
111111
description:
112112
name: matcher
113-
sha256: "80c2989398773fa06e2457e9ff08580f24e9858b28462a722241cb53e5613478"
113+
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
114114
url: "https://pub.dev"
115115
source: hosted
116-
version: "0.12.12"
116+
version: "0.12.15"
117117
material_color_utilities:
118118
dependency: transitive
119119
description:
@@ -126,18 +126,18 @@ packages:
126126
dependency: transitive
127127
description:
128128
name: meta
129-
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
129+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
130130
url: "https://pub.dev"
131131
source: hosted
132-
version: "1.8.0"
132+
version: "1.9.1"
133133
path:
134134
dependency: transitive
135135
description:
136136
name: path
137-
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
137+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
138138
url: "https://pub.dev"
139139
source: hosted
140-
version: "1.8.2"
140+
version: "1.8.3"
141141
plugin_platform_interface:
142142
dependency: transitive
143143
description:
@@ -163,10 +163,10 @@ packages:
163163
dependency: transitive
164164
description:
165165
name: stack_trace
166-
sha256: f8d9f247e2f9f90e32d1495ff32dac7e4ae34ffa7194c5ff8fcc0fd0e52df774
166+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
167167
url: "https://pub.dev"
168168
source: hosted
169-
version: "1.10.0"
169+
version: "1.11.0"
170170
stream_channel:
171171
dependency: transitive
172172
description:
@@ -179,10 +179,10 @@ packages:
179179
dependency: transitive
180180
description:
181181
name: string_scanner
182-
sha256: "862015c5db1f3f3c4ea3b94dc2490363a84262994b88902315ed74be1155612f"
182+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
183183
url: "https://pub.dev"
184184
source: hosted
185-
version: "1.1.1"
185+
version: "1.2.0"
186186
term_glyph:
187187
dependency: transitive
188188
description:
@@ -195,10 +195,10 @@ packages:
195195
dependency: transitive
196196
description:
197197
name: test_api
198-
sha256: ceeddf59d613e862e77f4b506cfc2945ac9637ce0b4c00f4f4c1ac639f3e9731
198+
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
199199
url: "https://pub.dev"
200200
source: hosted
201-
version: "0.4.14"
201+
version: "0.5.1"
202202
vector_math:
203203
dependency: transitive
204204
description:
@@ -208,5 +208,5 @@ packages:
208208
source: hosted
209209
version: "2.1.4"
210210
sdks:
211-
dart: ">=2.18.0 <4.0.0"
211+
dart: ">=3.0.0-0 <4.0.0"
212212
flutter: ">=2.5.0"

0 commit comments

Comments
 (0)