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
46105468
Commit
46105468
authored
May 03, 2017
by
Chris Bracken
Committed by
GitHub
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move platform_channel example to latest template (#9777)
parent
3b5b46b0
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
198 additions
and
57 deletions
+198
-57
android.iml
examples/platform_channel/android.iml
+12
-0
.gitignore
examples/platform_channel/android/app/.gitignore
+0
-1
build.gradle
examples/platform_channel/android/app/build.gradle
+1
-0
AndroidManifest.xml
...platform_channel/android/app/src/main/AndroidManifest.xml
+14
-11
Debug.xcconfig
examples/platform_channel/ios/Flutter/Debug.xcconfig
+0
-0
Release.xcconfig
examples/platform_channel/ios/Flutter/Release.xcconfig
+1
-0
project.pbxproj
...les/platform_channel/ios/Runner.xcodeproj/project.pbxproj
+55
-27
contents.xcworkspacedata
...er.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+1
-1
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+91
-0
contents.xcworkspacedata
...m_channel/ios/Runner.xcworkspace/contents.xcworkspacedata
+7
-0
AppDelegate.h
examples/platform_channel/ios/Runner/AppDelegate.h
+1
-1
LaunchScreen.storyboard
...orm_channel/ios/Runner/Base.lproj/LaunchScreen.storyboard
+4
-5
Main.storyboard
...es/platform_channel/ios/Runner/Base.lproj/Main.storyboard
+4
-5
Info.plist
examples/platform_channel/ios/Runner/Info.plist
+3
-1
main.m
examples/platform_channel/ios/Runner/main.m
+3
-3
platform_channel.iml
examples/platform_channel/platform_channel.iml
+1
-2
No files found.
examples/platform_channel/android.iml
0 → 100644
View file @
46105468
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$/android"
>
<sourceFolder
url=
"file://$MODULE_DIR$/android/app/src/main/java"
isTestSource=
"false"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"Android API 25 Platform"
jdkType=
"Android SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Flutter for Android"
level=
"project"
/>
</component>
</module>
examples/platform_channel/android/app/.gitignore
deleted
100644 → 0
View file @
3b5b46b0
/build
examples/platform_channel/android/app/build.gradle
View file @
46105468
...
...
@@ -24,6 +24,7 @@ android {
defaultConfig
{
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
applicationId
"com.example.platformchannel"
}
buildTypes
{
...
...
examples/platform_channel/android/app/src/main/AndroidManifest.xml
View file @
46105468
...
...
@@ -5,22 +5,25 @@
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.ACCESS_FINE_LOCATION"
/>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"@string/app_name"
>
<activity
android:name=
".MainActivity"
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"@string/app_name"
>
<activity
android:name=
".MainActivity"
android:launchMode=
"singleTop"
android:theme=
"@android:style/Theme.Black.NoTitleBar"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated=
"true"
android:windowSoftInputMode=
"adjustResize"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</application>
</manifest>
examples/platform_channel/ios/Flutter/
Flutter
.xcconfig
→
examples/platform_channel/ios/Flutter/
Debug
.xcconfig
View file @
46105468
File moved
examples/platform_channel/ios/Flutter/Release.xcconfig
0 → 100644
View file @
46105468
#include "Generated.xcconfig"
examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj
View file @
46105468
This diff is collapsed.
Click to expand it.
examples/platform_channel/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
View file @
46105468
...
...
@@ -2,6 +2,6 @@
<Workspace
version =
"1.0"
>
<FileRef
location =
"
self:PlatformChannel
.xcodeproj"
>
location =
"
group:Runner
.xcodeproj"
>
</FileRef>
</Workspace>
examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
0 → 100644
View file @
46105468
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0830"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
buildImplicitDependencies =
"YES"
>
<BuildActionEntries>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"YES"
buildForArchiving =
"YES"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"97C146ED1CF9000F007C117D"
BuildableName =
"Runner.app"
BlueprintName =
"Runner"
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"97C146ED1CF9000F007C117D"
BuildableName =
"Runner.app"
BlueprintName =
"Runner"
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"97C146ED1CF9000F007C117D"
BuildableName =
"Runner.app"
BlueprintName =
"Runner"
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
debugDocumentVersioning =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"97C146ED1CF9000F007C117D"
BuildableName =
"Runner.app"
BlueprintName =
"Runner"
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration =
"Debug"
>
</AnalyzeAction>
<ArchiveAction
buildConfiguration =
"Release"
revealArchiveInOrganizer =
"YES"
>
</ArchiveAction>
</Scheme>
examples/platform_channel/ios/Runner.xcworkspace/contents.xcworkspacedata
0 → 100644
View file @
46105468
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version =
"1.0"
>
<FileRef
location =
"group:Runner.xcodeproj"
>
</FileRef>
</Workspace>
examples/platform_channel/ios/Runner/AppDelegate.h
View file @
46105468
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
@interface
AppDelegate
:
FlutterAppDelegate
<
FlutterStreamHandler
>
...
...
examples/platform_channel/ios/Runner/Base.lproj/LaunchScreen.storyboard
View file @
46105468
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
1762"
systemVersion=
"16D32"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
colorMatched=
"NO
"
initialViewController=
"01J-lp-oVM"
>
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
0117"
systemVersion=
"15F34"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES
"
initialViewController=
"01J-lp-oVM"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<development
version=
"7000"
identifier=
"xcode"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11757"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"10085"
/>
</dependencies>
<scenes>
<!--View Controller-->
...
...
@@ -17,7 +16,7 @@
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"600"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite
"
/>
</view>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
...
...
examples/platform_channel/ios/Runner/Base.lproj/Main.storyboard
View file @
46105468
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
1762"
systemVersion=
"16D32"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"NO
"
initialViewController=
"BYZ-38-t0r"
>
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"1
0117"
systemVersion=
"15F34"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES
"
initialViewController=
"BYZ-38-t0r"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<development
version=
"7000"
identifier=
"xcode"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11757"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"10085"
/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
...
...
@@ -17,7 +16,7 @@
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"8bC-Xf-vdC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"600"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite
"
/>
</view>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"dkx-z0-nzr"
sceneMemberID=
"firstResponder"
/>
...
...
examples/platform_channel/ios/Runner/Info.plist
View file @
46105468
...
...
@@ -28,7 +28,7 @@
<
string
>
Main
<
/string
>
<
k
e
y
>
UIRequiredDeviceCapabilities
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
arm
v7
<
/string
>
<
string
>
arm
64
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UISupportedInterfaceOrientations
<
/k
e
y
>
<
a
rr
a
y
>
...
...
@@ -43,5 +43,7 @@
<
string
>
UIInterfaceOrientationLandscapeLeft
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeRight
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIViewControllerBasedStatusBarAppearance
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/plist
>
examples/platform_channel/ios/Runner/main.m
View file @
46105468
...
...
@@ -2,11 +2,11 @@
//
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
that
can
be
//
found
in
the
LICENSE
file
.
#import
"AppDelegate.h"
#import
<
Flutter
/
Flutter
.
h
>
#import
<
UIKit
/
UIKit
.
h
>
#import
<
Flutter
/
Flutter
.
h
>
#import
"AppDelegate.h"
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
@
autoreleasepool
{
return
UIApplicationMain
(
argc
,
argv
,
nil
,
NSStringFromClass
([
AppDelegate
class
]))
;
...
...
examples/platform_channel/platform_channel.iml
View file @
46105468
...
...
@@ -9,8 +9,7 @@
<excludeFolder
url=
"file://$MODULE_DIR$/packages"
/>
</content>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Dart SDK"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Dart Packages"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Dart SDK"
level=
"
application
"
/>
<orderEntry
type=
"library"
name=
"Dart SDK"
level=
"
project
"
/>
</component>
</module>
\ No newline at end of file
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