-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gabrielalao/fence 1339 upgrade flutter sdk to latest ios and android …
…radar sdk (#34) * bump up android sdk version, bump up play-services, update logConversion * update autocomplete, add trackVerified * add trackVerifiedToken * added isUsingRemoteTrackingOptions * add validateAddress * bump up ios sdk, add logConversion * updated autocomplete * add trackVerified ios * add trackVerifiedToken ios * added isUsingRemoteTrackingOptions ios * added validateAddress * remove android unused event channels * remove setAdIdEnabled * bump up 3.1.8 * uncomment Address issue * fix version to 3.2.0 * Create MIGRATION.MD * Update MIGRATION.MD * Update MIGRATION.MD * Update MIGRATION.MD * Update MIGRATION.MD --------- Co-authored-by: Tim Julien <[email protected]>
- Loading branch information
1 parent
e6ccd4f
commit 930f45a
Showing
13 changed files
with
390 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Migration guides | ||
|
||
## 3.1.x to 3.2.0 | ||
- `Radar.setAdIdEnabled()` has been removed. | ||
- Custom events have been renamed to conversions. | ||
- `Radar.sendEvent(customType, location, metadata)` is now `Radar.logConversion(name, revenue, metadata)`. | ||
- The method response does not include `location` and `user` props anymore. | ||
|
||
|
||
```dart | ||
// 3.2.0 - logging conversions | ||
var resp = await Radar.logConversion( | ||
name: "in_app_purchase", | ||
revenue: 0.2, | ||
metadata: {"price": "150USD"}); | ||
``` | ||
|
||
```dart | ||
// 3.1.x - sending events | ||
var resp = await Radar.sendEvent( | ||
customType: "in_app_purchase", | ||
location: { | ||
"latitude": 35.0, | ||
"longitude": -75.0 | ||
}, | ||
metadata: {"price": "150USD"}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
example/android/app/src/main/res/xml/network_security_config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<network-security-config> | ||
<domain-config cleartextTrafficPermitted="false"> | ||
<domain includeSubdomains="true">api-verified.radar.io</domain> | ||
<pin-set> | ||
<pin digest="SHA-256">15ktYXSSU2llpy7YyCgeqUKDBkjcimK/weUcec960sI=</pin> | ||
<pin digest="SHA-256">15ktYXSSU2llpy7YyCgeqUKDBkjcimK/weUcec960sI=</pin> | ||
</pin-set> | ||
</domain-config> | ||
<domain-config cleartextTrafficPermitted="false"> | ||
<domain includeSubdomains="true">api-verified.radar-staging.com</domain> | ||
<pin-set> | ||
<pin digest="SHA-256">09MICn++JSUz2tk36fH+5qiuUAbbxx4JzrAHR3QHu/I=</pin> | ||
<pin digest="SHA-256">09MICn++JSUz2tk36fH+5qiuUAbbxx4JzrAHR3QHu/I=</pin> | ||
</pin-set> | ||
</domain-config> | ||
</network-security-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.