This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Firebase Analytics] Update AGP, remove deprecated method and remove castings #1938
Merged
collinjackson
merged 8 commits into
flutter-team-archive:master
from
juliocbcotta:plugin/firebase_analytics_review
Aug 6, 2019
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3e71217
Update AGP and Gradle.
juliocbcotta 04b7b23
Remove deprecated Android method setMinimumSessionDuration.
juliocbcotta 0488db3
Removed reduntant casting
juliocbcotta 70d5a7a
update CHANGELOG.md and pubspec.yaml
juliocbcotta f4eb61c
remove `FirebaseAnalyticsAndroid.setAnalyticsCollectionEnabled`
juliocbcotta f49fb2f
update CHANGELOG.md
juliocbcotta 0c8b2ab
fix test
juliocbcotta 8e2d9d4
Update CHANGELOG.md
collinjackson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
3 changes: 2 additions & 1 deletion
3
packages/firebase_analytics/example/android/gradle/wrapper/gradle-wrapper.properties
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| #Wed Jul 31 23:52:55 BRT 2019 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ class FirebaseAnalytics { | |
| /// Example: | ||
| /// | ||
| /// FirebaseAnalytics analytics = FirebaseAnalytics(); | ||
| /// analytics.android?.setMinimumSessionDuration(200000); | ||
| /// analytics.android?.setAnalyticsCollectionEnabled(true); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be less confusing to use Also, since we're doing a breaking change here it might make sense to remove |
||
| final FirebaseAnalyticsAndroid android = | ||
| defaultTargetPlatform == TargetPlatform.android | ||
| ? FirebaseAnalyticsAndroid() | ||
|
|
@@ -874,26 +874,13 @@ class FirebaseAnalyticsAndroid { | |
| /// Sets whether analytics collection is enabled for this app on this device. | ||
| /// | ||
| /// This setting is persisted across app sessions. By default it is enabled. | ||
| /// Deprecated: Use [FirebaseAnalytics.setAnalyticsCollectionEnabled] instead. | ||
| @deprecated | ||
| Future<void> setAnalyticsCollectionEnabled(bool enabled) async { | ||
| if (enabled == null) { | ||
| throw ArgumentError.notNull('enabled'); | ||
| } | ||
| await _channel.invokeMethod<void>('setAnalyticsCollectionEnabled', enabled); | ||
| } | ||
|
|
||
| /// Sets the minimum engagement time required before starting a session. | ||
| /// | ||
| /// The default value is 10000 (10 seconds). | ||
| Future<void> setMinimumSessionDuration(int milliseconds) async { | ||
| if (milliseconds == null) { | ||
| throw ArgumentError.notNull('milliseconds'); | ||
| } | ||
| await _channel.invokeMethod<void>( | ||
| 'setMinimumSessionDuration', milliseconds); | ||
| } | ||
|
|
||
| /// Sets the duration of inactivity that terminates the current session. | ||
| /// | ||
| /// The default value is 1800000 (30 minutes). | ||
|
|
||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can you make this more consistent with other CHANGELOG entries, e.g. the one below it.? Make sure to indicate the removal of methods as a breaking change.