Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Support null safety and upgrading pre 1.12 Android projects #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lvchenyang
Copy link

@@ -15,8 +15,10 @@ class FlutterUserAgent {
/// the native platform.
static Future init({force: false}) async {
if (_properties == null || force) {
Map<dynamic, dynamic> properties= (await _channel.invokeMethod('getProperties'));
print(Map.unmodifiable(properties));
Copy link
Owner

Choose a reason for hiding this comment

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

The print statement should not be there.

@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_user_agent","path":"/Users/lvchenyang/AndroidStudioProjects/flutter_user_agent/","dependencies":[]}],"android":[{"name":"flutter_user_agent","path":"/Users/lvchenyang/AndroidStudioProjects/flutter_user_agent/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_user_agent","dependencies":[]}],"date_created":"2021-04-07 14:39:14.468191","version":"2.0.3"}
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this file should be in version control

@@ -0,0 +1,14 @@
#!/bin/sh
Copy link
Owner

Choose a reason for hiding this comment

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

Neither should this

@j0j00
Copy link
Owner

j0j00 commented May 30, 2021

Is the flutterembedding stuff required for null safety or just an extra?

@j0j00
Copy link
Owner

j0j00 commented May 30, 2021

#17 seems to try and achieve that, but with more specific changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants