-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Adds data transfer to Add2App samples, using caching on Android #146
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
Conversation
redbrogdon
commented
Oct 4, 2019
- Updates flutter_module to:
- Import Provider
- Track counter state via a ChangeNotifier model that uses a method channel as its source of truth.
- Updates Android to use a cached engine
- Updates both Android and iOS to:
- Set up their end of a method channel
- Track and display counter value between displays of the flutter view.
...p/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MainActivity.kt
Outdated
Show resolved
Hide resolved
...p/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MainActivity.kt
Outdated
Show resolved
Hide resolved
...p/android_fullscreen/app/src/main/java/dev/flutter/example/androidfullscreen/MainActivity.kt
Outdated
Show resolved
Hide resolved
jmagman
left a comment
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.
You may want to ask someone who knows more about Swift to review that part.
experimental/add_to_app/ios_fullscreen/IOSFullScreen/ViewController.swift
Show resolved
Hide resolved
|
@matthew-carroll PTAL |
|
Updated based on offline discussion with @matthew-carroll. Mgmt of the counter's state is much simplified. |
|
@matthew-carroll, PTAL. |
matthew-carroll
left a comment
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.
LGTM. Thanks for updating after our chat earlier this week!
| override fun onCreate() { | ||
| super.onCreate() | ||
|
|
||
| FlutterMain.startInitialization(this) |
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.
FYI, these 2 calls will no longer be required once I merge flutter/engine#12806
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.
Thanks for the reminder. Just CCed myself on your PR.