Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gabrielalao/fence 1339 upgrade flutter sdk to latest ios and android radar sdk #34

Conversation

gabrielalao
Copy link
Collaborator

  • Bump iOS version from 3.5.9 to 3.8.9
  • Bump android version from 3.5.9 to 3.8.12
  • remove setAdIdEnabled
  • rename sendEvent to logConversion and add revenue param
  • add trackVerified
  • add trackVerifiedToken
  • add isUsingRemoteTrackingOptions
  • update autocompleteQuery with param add expandUnits
  • add validateAddress
  • add App Attest to ios example
  • add Play Integrity API to android example
  • update example project

@gabrielalao gabrielalao requested review from nickpatrick and tjulien and removed request for nickpatrick October 24, 2023 05:48
@gabrielalao gabrielalao self-assigned this Oct 24, 2023
@@ -208,9 +198,6 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull final Result result)
case "setAnonymousTrackingEnabled":
setAnonymousTrackingEnabled(call, result);
break;
case "setAdIdEnabled":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For breaking changes, we add entries to MIGRATION.MD. This repo doesn't have one yet, but let's create one. It should be formatted like this: https://github.com/radarlabs/radar-sdk-ios/blob/master/MIGRATION.md

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can put all of the renamed functions in there as well, like that latest ios MIGRATION files does

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, @tjulien

JSONObject obj = new JSONObject();
obj.put("status", status.toString());
if (address != null) {
//obj.put("address", address.toJson());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's uncomment this and we'll fix the NaN bug in the radar android SDK

pubspec.yaml Outdated
@@ -1,6 +1,6 @@
name: flutter_radar
description: Flutter package for Radar, the leading geofencing and location tracking platform
version: 3.1.7
version: 3.1.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do 3.2

CHANGELOG.md Outdated
@@ -1,3 +1,18 @@
# 3.1.8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do 3.2

@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'RadarSDK', '3.5.9'
s.dependency 'RadarSDK', '3.8.9'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

above, let's update s.version to 3.2

@gabrielalao
Copy link
Collaborator Author

@tjulien fixed all please review again

@tjulien
Copy link
Contributor

tjulien commented Oct 25, 2023

Looks good - except MIGRATION.MD is empty - can you copy the content from here: https://github.com/radarlabs/radar-sdk-ios/blob/master/MIGRATION.md#36x-to-370. except translate the code to flutter?

@gabrielalao
Copy link
Collaborator Author

@tjulien I updated migration.md I thought I pushed the commit.

- `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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add code snippets below of the migration, for example, how this is done in the native SDKs: https://github.com/radarlabs/radar-sdk-android/blob/master/MIGRATION.md#36x-to-370

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I will

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tjulien added code snippets

@gabrielalao gabrielalao merged commit 930f45a into master Oct 26, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants