Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
[wip] migrate plugins to the new schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Hardon committed Dec 9, 2019
1 parent 2c583e3 commit e7b9827
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/android_alarm_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.4.5+2

* Remove the deprecated `author:` field from pubspec.yaml
* Migrate the plugin to the pubspec platforms manifest.

## 0.4.5+1

Expand Down
2 changes: 1 addition & 1 deletion packages/android_alarm_manager/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ flutter:

environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.9.1 <2.0.0"
flutter: ">=1.10.0 <2.0.0"
1 change: 1 addition & 0 deletions packages/android_intent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.3.4+8

* Remove the deprecated `author:` field from pubspec.yaml
* Migrate the plugin to the pubspec platforms manifest.

## 0.3.4+7

Expand Down
9 changes: 5 additions & 4 deletions packages/android_intent/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ version: 0.3.4+8

flutter:
plugin:
androidPackage: io.flutter.plugins.androidintent
iosPrefix: FLT
pluginClass: AndroidIntentPlugin
platforms:
android:
package: io.flutter.plugins.androidintent
pluginClass: AndroidIntentPlugin

dependencies:
flutter:
Expand All @@ -21,4 +22,4 @@ dev_dependencies:
sdk: flutter
environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.6.7 <2.0.0"
flutter: ">=1.10.0 <2.0.0"
1 change: 1 addition & 0 deletions packages/battery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.3.1+6

* Remove the deprecated `author:` field from pubspec.yaml
* Migrate the plugin to the pubspec platforms manifest.

## 0.3.1+5

Expand Down
18 changes: 18 additions & 0 deletions packages/battery/example/ios/Flutter/Flutter.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# NOTE: This podspec is NOT to be published. It is only used as a local source!
#

Pod::Spec.new do |s|
s.name = 'Flutter'
s.version = '1.0.0'
s.summary = 'High-performance, high-fidelity mobile apps.'
s.description = <<-DESC
Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS.
DESC
s.homepage = 'https://flutter.io'
s.license = { :type => 'MIT' }
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.vendored_frameworks = 'Flutter.framework'
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "BatteryPlugin.h"
#import "FLTBatteryPlugin.h"

@interface FLTBatteryPlugin () <FlutterStreamHandler>
@end
Expand Down
9 changes: 6 additions & 3 deletions packages/battery/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ version: 0.3.1+6

flutter:
plugin:
androidPackage: io.flutter.plugins.battery
iosPrefix: FLT
pluginClass: BatteryPlugin
platforms:
android:
package: io.flutter.plugins.battery
pluginClass: BatteryPlugin
ios:
pluginClass: FLTBatteryPlugin

dependencies:
flutter:
Expand Down

0 comments on commit e7b9827

Please sign in to comment.