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
51588ab8
Unverified
Commit
51588ab8
authored
Sep 10, 2021
by
Jenn Magder
Committed by
GitHub
Sep 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set plugin template minimum Flutter SDK to 2.5 (#89695)
parent
18f8b63e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
projectName.podspec.tmpl
...s/templates/plugin/ios-objc.tmpl/projectName.podspec.tmpl
+1
-1
projectName.podspec.tmpl
.../templates/plugin/ios-swift.tmpl/projectName.podspec.tmpl
+1
-1
pubspec.yaml.tmpl
packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl
+1
-1
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+3
-3
No files found.
packages/flutter_tools/templates/plugin/ios-objc.tmpl/projectName.podspec.tmpl
View file @
51588ab8
...
...
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.platform = :ios, '
8
.0'
s.platform = :ios, '
9
.0'
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
...
...
packages/flutter_tools/templates/plugin/ios-swift.tmpl/projectName.podspec.tmpl
View file @
51588ab8
...
...
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.platform = :ios, '
8
.0'
s.platform = :ios, '
9
.0'
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
...
...
packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl
View file @
51588ab8
...
...
@@ -5,7 +5,7 @@ homepage:
environment:
sdk: {{dartSdkVersionBounds}}
flutter: ">=
1.20
.0"
flutter: ">=
2.5
.0"
dependencies:
flutter:
...
...
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
51588ab8
...
...
@@ -2325,7 +2325,7 @@ void main() {
Logger:
()
=>
logger
,
});
testUsingContext
(
'newly created plugin has min flutter sdk version as
1.20
.0'
,
()
async
{
testUsingContext
(
'newly created plugin has min flutter sdk version as
2.5
.0'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
final
CreateCommand
command
=
CreateCommand
();
...
...
@@ -2334,8 +2334,8 @@ void main() {
final
String
rawPubspec
=
await
projectDir
.
childFile
(
'pubspec.yaml'
).
readAsString
();
final
Pubspec
pubspec
=
Pubspec
.
parse
(
rawPubspec
);
final
Map
<
String
,
VersionConstraint
>
env
=
pubspec
.
environment
;
expect
(
env
[
'flutter'
].
allows
(
Version
(
1
,
20
,
0
)),
true
);
expect
(
env
[
'flutter'
].
allows
(
Version
(
1
,
19
,
0
)),
false
);
expect
(
env
[
'flutter'
].
allows
(
Version
(
2
,
5
,
0
)),
true
);
expect
(
env
[
'flutter'
].
allows
(
Version
(
2
,
4
,
9
)),
false
);
});
testUsingContext
(
'default app uses Android SDK 30'
,
()
async
{
...
...
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