Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e456d863
Commit
e456d863
authored
Apr 08, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update engine (#3214)
Also, update hello_android to use the new Java class names.
parent
c00d61f6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
AUTHORS
AUTHORS
+1
-1
engine.version
bin/cache/engine.version
+1
-1
ExampleActivity.java
...pp/src/main/java/com/example/flutter/ExampleActivity.java
+8
-8
flutter_layout.xml
.../hello_android/app/src/main/res/layout/flutter_layout.xml
+1
-1
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+1
-1
No files found.
AUTHORS
View file @
e456d863
# Below is a list of people and organizations that have contributed
# Below is a list of people and organizations that have contributed
# to the
Sky
project. Names should be added to the list like so:
# to the
Flutter
project. Names should be added to the list like so:
#
#
# Name/Organization <email address>
# Name/Organization <email address>
...
...
bin/cache/engine.version
View file @
e456d863
94a4b96b40d1e85a4245cf8aafc385fe364c7347
a299d69f6ca70f325d583eb678b91db24a155743
examples/hello_android/app/src/main/java/com/example/flutter/ExampleActivity.java
View file @
e456d863
...
@@ -18,8 +18,8 @@ import android.widget.TextView;
...
@@ -18,8 +18,8 @@ import android.widget.TextView;
import
org.chromium.base.PathUtils
;
import
org.chromium.base.PathUtils
;
import
org.domokit.activity.ActivityImpl
;
import
org.domokit.activity.ActivityImpl
;
import
org.domokit.sky.shell.Sky
Main
;
import
io.flutter.view.Flutter
Main
;
import
org.domokit.sky.shell.PlatformViewAndroid
;
import
io.flutter.view.FlutterView
;
import
java.io.File
;
import
java.io.File
;
import
org.json.JSONException
;
import
org.json.JSONException
;
...
@@ -28,21 +28,21 @@ import org.json.JSONObject;
...
@@ -28,21 +28,21 @@ import org.json.JSONObject;
public
class
ExampleActivity
extends
Activity
{
public
class
ExampleActivity
extends
Activity
{
private
static
final
String
TAG
=
"ExampleActivity"
;
private
static
final
String
TAG
=
"ExampleActivity"
;
private
PlatformViewAndroid
flutterView
;
private
FlutterView
flutterView
;
@Override
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
SkyMain
.
ensureInitialized
(
getApplicationContext
(),
null
);
FlutterMain
.
ensureInitializationComplete
(
getApplicationContext
(),
null
);
setContentView
(
R
.
layout
.
flutter_layout
);
setContentView
(
R
.
layout
.
flutter_layout
);
flutterView
=
(
PlatformViewAndroid
)
findViewById
(
R
.
id
.
flutter_view
);
flutterView
=
(
FlutterView
)
findViewById
(
R
.
id
.
flutter_view
);
File
appBundle
=
new
File
(
PathUtils
.
getDataDirectory
(
this
),
Sky
Main
.
APP_BUNDLE
);
File
appBundle
=
new
File
(
PathUtils
.
getDataDirectory
(
this
),
Flutter
Main
.
APP_BUNDLE
);
flutterView
.
runFromBundle
(
appBundle
.
getPath
(),
null
);
flutterView
.
runFromBundle
(
appBundle
.
getPath
(),
null
);
flutterView
.
addOnMessageListener
(
"getLocation"
,
flutterView
.
addOnMessageListener
(
"getLocation"
,
new
PlatformViewAndroid
.
OnMessageListener
()
{
new
FlutterView
.
OnMessageListener
()
{
@Override
@Override
public
String
onMessage
(
String
message
)
{
public
String
onMessage
(
String
message
)
{
return
onGetLocation
(
message
);
return
onGetLocation
(
message
);
...
@@ -103,7 +103,7 @@ public class ExampleActivity extends Activity {
...
@@ -103,7 +103,7 @@ public class ExampleActivity extends Activity {
}
}
flutterView
.
sendToFlutter
(
"getRandom"
,
message
.
toString
(),
flutterView
.
sendToFlutter
(
"getRandom"
,
message
.
toString
(),
new
PlatformViewAndroid
.
MessageReplyCallback
()
{
new
FlutterView
.
MessageReplyCallback
()
{
@Override
@Override
public
void
onReply
(
String
json
)
{
public
void
onReply
(
String
json
)
{
onRandomReply
(
json
);
onRandomReply
(
json
);
...
...
examples/hello_android/app/src/main/res/layout/flutter_layout.xml
View file @
e456d863
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
/>
/>
</LinearLayout>
</LinearLayout>
<
org.domokit.sky.shell.PlatformViewAndroid
<
io.flutter.view.FlutterView
android:id=
"@+id/flutter_view"
android:id=
"@+id/flutter_view"
android:layout_width=
"fill_parent"
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
android:layout_height=
"fill_parent"
...
...
packages/flutter_tools/lib/src/android/android_device.dart
View file @
e456d863
...
@@ -570,7 +570,7 @@ class _AdbLogReader extends DeviceLogReader {
...
@@ -570,7 +570,7 @@ class _AdbLogReader extends DeviceLogReader {
if
(
lastTimestamp
!=
null
)
if
(
lastTimestamp
!=
null
)
args
.
addAll
(<
String
>[
'-T'
,
lastTimestamp
]);
args
.
addAll
(<
String
>[
'-T'
,
lastTimestamp
]);
args
.
addAll
(<
String
>[
args
.
addAll
(<
String
>[
'-s'
,
'flutter:V'
,
'
SkyMain
:V'
,
'AndroidRuntime:W'
,
'ActivityManager:W'
,
'System.err:W'
,
'*:F'
'-s'
,
'flutter:V'
,
'
FlutterMain:V'
,
'FlutterView
:V'
,
'AndroidRuntime:W'
,
'ActivityManager:W'
,
'System.err:W'
,
'*:F'
]);
]);
_process
=
await
runCommand
(
device
.
adbCommandForDevice
(
args
));
_process
=
await
runCommand
(
device
.
adbCommandForDevice
(
args
));
_stdoutSubscription
=
_stdoutSubscription
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment