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
28feba04
Commit
28feba04
authored
May 05, 2017
by
Chris Bracken
Committed by
GitHub
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Gallery plugin integration (#9823)
Enable plugin infra for both iOS and Android post-#9791.
parent
7d6e5632
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
85 additions
and
10 deletions
+85
-10
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+1
-1
AndroidManifest.xml
.../flutter_gallery/android/app/src/main/AndroidManifest.xml
+1
-1
MainActivity.java
...c/main/java/io/flutter/examples/gallery/MainActivity.java
+16
-0
PluginRegistry.java
.../app/src/main/java/io/flutter/plugins/PluginRegistry.java
+14
-0
project.pbxproj
...ples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
+6
-0
AppDelegate.m
examples/flutter_gallery/ios/Runner/AppDelegate.m
+14
-8
PluginRegistry.h
examples/flutter_gallery/ios/Runner/PluginRegistry.h
+18
-0
PluginRegistry.m
examples/flutter_gallery/ios/Runner/PluginRegistry.m
+15
-0
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
28feba04
...
@@ -65,7 +65,7 @@ TaskFunction createGalleryBackButtonMemoryTest() {
...
@@ -65,7 +65,7 @@ TaskFunction createGalleryBackButtonMemoryTest() {
return
new
AndroidBackButtonMemoryTest
(
return
new
AndroidBackButtonMemoryTest
(
'
${flutterDirectory.path}
/examples/flutter_gallery'
,
'
${flutterDirectory.path}
/examples/flutter_gallery'
,
'io.flutter.examples.gallery'
,
'io.flutter.examples.gallery'
,
'io.flutter.
app.Flutter
Activity'
,
'io.flutter.
examples.gallery.Main
Activity'
,
);
);
}
}
...
...
examples/flutter_gallery/android/app/src/main/AndroidManifest.xml
View file @
28feba04
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
additional functionality it is fine to subclass or reimplement
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
FlutterApplication and put your custom class here. -->
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"Gallery"
android:icon=
"@mipmap/ic_launcher"
>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"Gallery"
android:icon=
"@mipmap/ic_launcher"
>
<activity
android:name=
"
io.flutter.app.Flutter
Activity"
<activity
android:name=
"
.Main
Activity"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:theme=
"@android:style/Theme.Light.NoTitleBar"
android:theme=
"@android:style/Theme.Light.NoTitleBar"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
...
...
examples/flutter_gallery/android/app/src/main/java/io/flutter/examples/gallery/MainActivity.java
0 → 100644
View file @
28feba04
package
io
.
flutter
.
examples
.
gallery
;
import
android.os.Bundle
;
import
io.flutter.app.FlutterActivity
;
import
io.flutter.plugins.PluginRegistry
;
public
class
MainActivity
extends
FlutterActivity
{
PluginRegistry
pluginRegistry
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
pluginRegistry
=
new
PluginRegistry
();
pluginRegistry
.
registerAll
(
this
);
}
}
examples/flutter_gallery/android/app/src/main/java/io/flutter/plugins/PluginRegistry.java
0 → 100644
View file @
28feba04
package
io
.
flutter
.
plugins
;
import
io.flutter.app.FlutterActivity
;
/**
* Generated file. Do not edit.
*/
public
class
PluginRegistry
{
public
void
registerAll
(
FlutterActivity
activity
)
{
}
}
examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
View file @
28feba04
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
objects
=
{
objects
=
{
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2
/* PluginRegistry.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1498D2331E8E89220040F4C2
/* PluginRegistry.m */
;
};
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
;
};
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
;
};
3B80C3941E831B6300D905FE
/* App.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
};
3B80C3941E831B6300D905FE
/* App.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
};
3B80C3951E831B6300D905FE
/* App.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
3B80C3951E831B6300D905FE
/* App.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
...
@@ -38,6 +39,8 @@
...
@@ -38,6 +39,8 @@
/* End PBXCopyFilesBuildPhase section */
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2
/* PluginRegistry.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
PluginRegistry.h
;
sourceTree
=
"<group>"
;
};
1498D2331E8E89220040F4C2
/* PluginRegistry.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
PluginRegistry.m
;
sourceTree
=
"<group>"
;
};
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
AppFrameworkInfo.plist
;
path
=
Flutter/AppFrameworkInfo.plist
;
sourceTree
=
"<group>"
;
};
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
AppFrameworkInfo.plist
;
path
=
Flutter/AppFrameworkInfo.plist
;
sourceTree
=
"<group>"
;
};
3B80C3931E831B6300D905FE
/* App.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
App.framework
;
path
=
Flutter/App.framework
;
sourceTree
=
"<group>"
;
};
3B80C3931E831B6300D905FE
/* App.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
App.framework
;
path
=
Flutter/App.framework
;
sourceTree
=
"<group>"
;
};
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xcconfig
;
name
=
Release.xcconfig
;
path
=
Flutter/Release.xcconfig
;
sourceTree
=
"<group>"
;
};
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xcconfig
;
name
=
Release.xcconfig
;
path
=
Flutter/Release.xcconfig
;
sourceTree
=
"<group>"
;
};
...
@@ -110,6 +113,8 @@
...
@@ -110,6 +113,8 @@
97C146FF1CF9000F007C117D
/* LaunchScreen.storyboard */
,
97C146FF1CF9000F007C117D
/* LaunchScreen.storyboard */
,
97C147021CF9000F007C117D
/* Info.plist */
,
97C147021CF9000F007C117D
/* Info.plist */
,
97C146F11CF9000F007C117D
/* Supporting Files */
,
97C146F11CF9000F007C117D
/* Supporting Files */
,
1498D2321E8E86230040F4C2
/* PluginRegistry.h */
,
1498D2331E8E89220040F4C2
/* PluginRegistry.m */
,
);
);
path
=
Runner
;
path
=
Runner
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -239,6 +244,7 @@
...
@@ -239,6 +244,7 @@
files
=
(
files
=
(
978B8F6F1D3862AE00F588F7
/* AppDelegate.m in Sources */
,
978B8F6F1D3862AE00F588F7
/* AppDelegate.m in Sources */
,
97C146F31CF9000F007C117D
/* main.m in Sources */
,
97C146F31CF9000F007C117D
/* main.m in Sources */
,
1498D2341E8E89220040F4C2
/* PluginRegistry.m in Sources */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
...
examples/flutter_gallery/ios/Runner/AppDelegate.m
View file @
28feba04
#include "AppDelegate.h"
#include "AppDelegate.h"
#include "PluginRegistry.h"
@implementation
AppDelegate
@implementation
AppDelegate
{
PluginRegistry
*
plugins
;
}
-
(
BOOL
)
application
:
(
UIApplication
*
)
application
didFinishLaunchingWithOptions
:
(
NSDictionary
*
)
launchOptions
{
-
(
BOOL
)
application
:
(
UIApplication
*
)
application
didFinishLaunchingWithOptions
:
(
NSDictionary
*
)
launchOptions
{
// Override point for customization after application launch.
// Override point for customization after application launch.
FlutterViewController
*
flutterController
=
(
FlutterViewController
*
)
self
.
window
.
rootViewController
;
plugins
=
[[
PluginRegistry
alloc
]
initWithController
:
flutterController
];
return
YES
;
return
YES
;
}
}
...
...
examples/flutter_gallery/ios/Runner/PluginRegistry.h
0 → 100644
View file @
28feba04
//
// Generated file. Do not edit.
//
#ifndef PluginRegistry_h
#define PluginRegistry_h
#import <Flutter/Flutter.h>
@interface
PluginRegistry
:
NSObject
-
(
instancetype
)
initWithController
:(
FlutterViewController
*
)
controller
;
@end
#endif
/* PluginRegistry_h */
examples/flutter_gallery/ios/Runner/PluginRegistry.m
0 → 100644
View file @
28feba04
//
// Generated file. Do not edit.
//
#import "PluginRegistry.h"
@implementation
PluginRegistry
-
(
instancetype
)
initWithController
:(
FlutterViewController
*
)
controller
{
if
(
self
=
[
super
init
])
{
}
return
self
;
}
@end
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