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
649cf820
Unverified
Commit
649cf820
authored
Oct 15, 2019
by
Jenn Magder
Committed by
GitHub
Oct 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use_modular_headers (#42204)
parent
13a054f7
Changes
39
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
96 additions
and
42 deletions
+96
-42
AppDelegate.m
dev/benchmarks/macrobenchmarks/ios/Runner/AppDelegate.m
+2
-2
Podfile
dev/integration_tests/android_views/ios/Podfile
+2
-0
AppDelegate.m
dev/integration_tests/android_views/ios/Runner/AppDelegate.m
+2
-2
IDEWorkspaceChecks.plist
.../Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8
-0
AppDelegate.m
dev/integration_tests/channels/ios/Runner/AppDelegate.m
+2
-2
AppDelegate.m
dev/integration_tests/codegen/ios/Runner/AppDelegate.m
+2
-2
AppDelegate.m
dev/integration_tests/external_ui/ios/Runner/AppDelegate.m
+1
-1
AppDelegate.m
dev/integration_tests/flavors/ios/Runner/AppDelegate.m
+2
-2
Podfile
dev/integration_tests/ios_add2app/Podfile
+1
-0
ViewController.m
dev/integration_tests/ios_host_app/Host/ViewController.m
+7
-2
Podfile
dev/integration_tests/ios_host_app/Podfile
+1
-0
AppDelegate.swift
...tegration_tests/ios_host_app_swift/Host/AppDelegate.swift
+4
-0
Podfile
dev/integration_tests/ios_host_app_swift/Podfile
+1
-0
AppDelegate.m
...ation_tests/platform_interaction/ios/Runner/AppDelegate.m
+2
-2
Podfile
dev/integration_tests/release_smoke_test/ios/Podfile
+2
-0
AppDelegate.m
...gration_tests/release_smoke_test/ios/Runner/AppDelegate.m
+2
-2
AppDelegate.m
dev/integration_tests/ui/ios/Runner/AppDelegate.m
+2
-2
IDEWorkspaceChecks.plist
.../Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8
-0
AppDelegate.m
dev/manual_tests/ios/Runner/AppDelegate.m
+2
-2
AppDelegate.m
examples/catalog/ios/Runner/AppDelegate.m
+2
-2
Podfile
examples/flutter_gallery/ios/Podfile
+2
-0
AppDelegate.m
examples/flutter_gallery/ios/Runner/AppDelegate.m
+2
-2
Podfile
examples/flutter_view/ios/Podfile
+1
-0
AppDelegate.m
examples/flutter_view/ios/Runner/AppDelegate.m
+1
-1
AppDelegate.m
examples/hello_world/ios/Runner/AppDelegate.m
+2
-2
GeneratedPluginRegistrant.h
examples/hello_world/ios/Runner/GeneratedPluginRegistrant.h
+3
-0
AppDelegate.m
examples/image_list/ios/Runner/AppDelegate.m
+2
-2
AppDelegate.m
examples/layers/ios/Runner/AppDelegate.m
+2
-2
Podfile
examples/platform_view/ios/Podfile
+2
-0
AppDelegate.m
examples/platform_view/ios/Runner/AppDelegate.m
+3
-3
AppDelegate.m
examples/stocks/ios/Runner/AppDelegate.m
+2
-2
plugins.dart
packages/flutter_tools/lib/src/plugins.dart
+9
-1
AppDelegate.m
...er_tools/templates/app/ios-objc.tmpl/Runner/AppDelegate.m
+2
-2
Podfile-ios-objc
packages/flutter_tools/templates/cocoapods/Podfile-ios-objc
+2
-0
Podfile-ios-swift
packages/flutter_tools/templates/cocoapods/Podfile-ios-swift
+1
-0
Podfile-macos
packages/flutter_tools/templates/cocoapods/Podfile-macos
+1
-0
AppDelegate.m
...s/module/ios/host_app_ephemeral/Runner.tmpl/AppDelegate.m
+1
-1
Podfile.copy.tmpl
...module/ios/host_app_ephemeral_cocoapods/Podfile.copy.tmpl
+2
-0
AppDelegate.m
...os/host_app_ephemeral_cocoapods/Runner.tmpl/AppDelegate.m
+1
-1
No files found.
dev/benchmarks/macrobenchmarks/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/android_views/ios/Podfile
View file @
649cf820
...
...
@@ -33,6 +33,8 @@ def parse_KV_file(file, separator='=')
end
target
'Runner'
do
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system
(
'rm -rf .symlinks'
)
...
...
dev/integration_tests/android_views/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/channels/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
0 → 100644
View file @
649cf820
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
IDEDidComputeMac32BitWarning
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/plist
>
dev/integration_tests/channels/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@interface
Pair
:
NSObject
@property
(
atomic
,
readonly
,
strong
,
nullable
)
NSObject
*
left
;
...
...
dev/integration_tests/codegen/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/external_ui/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
mport
"AppDelegate.h"
@interface
AppDelegate
()
@property
(
atomic
)
uint64_t
textureId
;
...
...
dev/integration_tests/flavors/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/ios_add2app/Podfile
View file @
649cf820
...
...
@@ -5,6 +5,7 @@ flutter_application_path = 'flutterapp/'
load
File
.
join
(
flutter_application_path
,
'.ios'
,
'Flutter'
,
'podhelper.rb'
)
target
'ios_add2app'
do
use_modular_headers!
install_all_flutter_pods
(
flutter_application_path
)
end
...
...
dev/integration_tests/ios_host_app/Host/ViewController.m
View file @
649cf820
#import "ViewController.h"
#import <Flutter/Flutter.h>
#import <FlutterPluginRegistrant/GeneratedPluginRegistrant.h>
@import
Flutter
;
@import
FlutterPluginRegistrant
;
// Prove plugins can be module-imported from the host app.
@import
device_info
;
@import
google_maps_flutter
;
@implementation
ViewController
...
...
dev/integration_tests/ios_host_app/Podfile
View file @
649cf820
...
...
@@ -4,5 +4,6 @@ flutter_application_path = '../hello'
load
File
.
join
(
flutter_application_path
,
'.ios'
,
'Flutter'
,
'podhelper.rb'
)
target
'Host'
do
use_modular_headers!
install_all_flutter_pods
flutter_application_path
end
dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift
View file @
649cf820
import
UIKit
// Prove plugins can be module-imported from the host app.
import
device_info
import
google_maps_flutter
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
func
application
(
_
application
:
UIApplication
,
configurationForConnecting
connectingSceneSession
:
UISceneSession
,
options
:
UIScene
.
ConnectionOptions
)
->
UISceneConfiguration
{
...
...
dev/integration_tests/ios_host_app_swift/Podfile
View file @
649cf820
...
...
@@ -4,5 +4,6 @@ flutter_application_path = '../hello'
load
File
.
join
(
flutter_application_path
,
'.ios'
,
'Flutter'
,
'podhelper.rb'
)
target
'Host'
do
use_modular_headers!
install_all_flutter_pods
flutter_application_path
end
dev/integration_tests/platform_interaction/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/release_smoke_test/ios/Podfile
View file @
649cf820
...
...
@@ -33,6 +33,8 @@ def parse_KV_file(file, separator='=')
end
target
'Runner'
do
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system
(
'rm -rf .symlinks'
)
...
...
dev/integration_tests/release_smoke_test/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/integration_tests/ui/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
dev/manual_tests/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
0 → 100644
View file @
649cf820
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
IDEDidComputeMac32BitWarning
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/plist
>
dev/manual_tests/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/catalog/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/flutter_gallery/ios/Podfile
View file @
649cf820
...
...
@@ -27,6 +27,8 @@ def parse_KV_file(file,separator='=')
end
target
'Runner'
do
use_modular_headers!
# Flutter Pods
pod
'Flutter'
,
:path
=>
ENV
[
'FLUTTER_FRAMEWORK_DIR'
]
...
...
examples/flutter_gallery/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/flutter_view/ios/Podfile
View file @
649cf820
...
...
@@ -7,6 +7,7 @@ install! 'cocoapods', :disable_input_output_paths => true
target
'Runner'
do
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
use_modular_headers!
# Pods for Runner
pod
'MaterialControls'
,
'~> 1.2.2'
...
...
examples/flutter_view/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
mport
"AppDelegate.h"
#import <Flutter/Flutter.h>
@implementation
AppDelegate
...
...
examples/hello_world/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/hello_world/ios/Runner/GeneratedPluginRegistrant.h
View file @
649cf820
...
...
@@ -7,8 +7,11 @@
#import <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
@interface
GeneratedPluginRegistrant
:
NSObject
+
(
void
)
registerWithRegistry
:(
NSObject
<
FlutterPluginRegistry
>*
)
registry
;
@end
NS_ASSUME_NONNULL_END
#endif
/* GeneratedPluginRegistrant_h */
examples/image_list/ios/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/layers/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
examples/platform_view/ios/Podfile
View file @
649cf820
...
...
@@ -27,6 +27,8 @@ def parse_KV_file(file, separator='=')
end
target
'Runner'
do
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system
(
'rm -rf .symlinks'
)
...
...
examples/platform_view/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
nclude
"PlatformViewController.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
#i
mport
"PlatformViewController.h"
@implementation
AppDelegate
{
FlutterResult
_flutterResult
;
...
...
examples/stocks/ios/Runner/AppDelegate.m
View file @
649cf820
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
packages/flutter_tools/lib/src/plugins.dart
View file @
649cf820
...
...
@@ -454,10 +454,13 @@ const String _objcPluginRegistryHeaderTemplate = '''//
#import <{{framework}}/{{framework}}.h>
NS_ASSUME_NONNULL_BEGIN
@interface GeneratedPluginRegistrant : NSObject
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry;
@end
NS_ASSUME_NONNULL_END
#endif /* GeneratedPluginRegistrant_h */
'''
;
...
...
@@ -466,10 +469,15 @@ const String _objcPluginRegistryImplementationTemplate = '''//
//
#import "GeneratedPluginRegistrant.h"
{{#plugins}}
#if __has_include(<{{name}}/{{class}}.h>)
#import <{{name}}/{{class}}.h>
{{/plugins}}
#else
@import {{name}};
#endif
{{/plugins}}
@implementation GeneratedPluginRegistrant
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
...
...
packages/flutter_tools/templates/app/ios-objc.tmpl/Runner/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
nclude
"GeneratedPluginRegistrant.h"
#i
mport
"AppDelegate.h"
#i
mport
"GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
packages/flutter_tools/templates/cocoapods/Podfile-ios-objc
View file @
649cf820
...
...
@@ -33,6 +33,8 @@ def parse_KV_file(file, separator='=')
end
target 'Runner' do
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
...
...
packages/flutter_tools/templates/cocoapods/Podfile-ios-swift
View file @
649cf820
...
...
@@ -34,6 +34,7 @@ end
target 'Runner' do
use_frameworks!
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
...
...
packages/flutter_tools/templates/cocoapods/Podfile-macos
View file @
649cf820
...
...
@@ -44,6 +44,7 @@ end
target 'Runner' do
use_frameworks!
use_modular_headers!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
mport
"AppDelegate.h"
@implementation
AppDelegate
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral_cocoapods/Podfile.copy.tmpl
View file @
649cf820
...
...
@@ -6,6 +6,8 @@ load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
use_frameworks!
target 'Runner' do
use_modular_headers!
install_flutter_engine_pod
install_flutter_plugin_pods flutter_application_path
end
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral_cocoapods/Runner.tmpl/AppDelegate.m
View file @
649cf820
#i
nclude
"AppDelegate.h"
#i
mport
"AppDelegate.h"
#import "FlutterPluginRegistrant/GeneratedPluginRegistrant.h"
@implementation
AppDelegate
...
...
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