Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/package_info_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.6.0

- Changed method channel name
- Moved Java files to different java package to avoid issues with package_info

## 0.5.0

- Transfer to plus-plugins monorepo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.packageinfo">
package="dev.fluttercommunity.plus.packageinfo">
</manifest>
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.

package io.flutter.plugins.packageinfo;
package dev.fluttercommunity.plus.packageinfo;

import android.content.Context;
import android.content.pm.PackageInfo;
Expand Down Expand Up @@ -36,7 +36,7 @@ public void onAttachedToEngine(FlutterPluginBinding binding) {

private void onAttachedToEngine(Context applicationContext, BinaryMessenger messenger) {
this.applicationContext = applicationContext;
methodChannel = new MethodChannel(messenger, "plugins.flutter.io/package_info");
methodChannel = new MethodChannel(messenger, "dev.fluttercommunity.plus/package_info");
methodChannel.setMethodCallHandler(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
package io.flutter.plugins.packageinfoexample;

import android.os.Bundle;
import dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.packageinfo.PackageInfoPlugin;

public class EmbedderV1Activity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
PackageInfoPlugin.registerWith(
registrarFor("io.flutter.plugins.packageinfo.PackageInfoPlugin"));
registrarFor("dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin"));
}
}
4 changes: 4 additions & 0 deletions packages/package_info_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: package_info_example
description: Demonstrates how to use the package_info_plus plugin.

environment:
sdk: '>=2.10.0 <3.0.0'

dependencies:
flutter:
sdk: flutter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@implementation FLTPackageInfoPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
FlutterMethodChannel* channel =
[FlutterMethodChannel methodChannelWithName:@"plugins.flutter.io/package_info"
[FlutterMethodChannel methodChannelWithName:@"dev.fluttercommunity.plus/package_info"
binaryMessenger:[registrar messenger]];
FLTPackageInfoPlugin* instance = [[FLTPackageInfoPlugin alloc] init];
[registrar addMethodCallDelegate:instance channel:channel];
Expand Down
8 changes: 4 additions & 4 deletions packages/package_info_plus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: package_info_plus
description: Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android.
version: 0.5.0
version: 0.6.0
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

flutter:
plugin:
platforms:
android:
package: io.flutter.plugins.packageinfo
package: dev.fluttercommunity.plus.packageinfo
pluginClass: PackageInfoPlugin
ios:
pluginClass: FLTPackageInfoPlugin
Expand All @@ -22,9 +22,9 @@ flutter:
dependencies:
flutter:
sdk: flutter
package_info_plus_platform_interface: ^0.1.0
package_info_plus_platform_interface: ^0.3.0
package_info_plus_web: ^0.1.0
package_info_plus_macos: ^0.1.0
package_info_plus_macos: ^0.2.0
package_info_plus_windows: ^0.1.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/package_info_plus/test/package_info_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void main() {
TestWidgetsFlutterBinding.ensureInitialized();

const MethodChannel channel =
MethodChannel('plugins.flutter.io/package_info');
MethodChannel('dev.fluttercommunity.plus/package_info');
List<MethodCall> log;

channel.setMockMethodCallHandler((MethodCall methodCall) async {
Expand Down
4 changes: 4 additions & 0 deletions packages/package_info_plus_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.0

- Changed method channel name

## 0.1.0

- Transfer to plus-plugins monorepo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@implementation FLTPackageInfoPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
FlutterMethodChannel* channel =
[FlutterMethodChannel methodChannelWithName:@"plugins.flutter.io/package_info"
[FlutterMethodChannel methodChannelWithName:@"dev.fluttercommunity.plus/package_info"
binaryMessenger:[registrar messenger]];
FLTPackageInfoPlugin* instance = [[FLTPackageInfoPlugin alloc] init];
[registrar addMethodCallDelegate:instance channel:channel];
Expand Down
2 changes: 1 addition & 1 deletion packages/package_info_plus_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: package_info_plus_macos
description: macOS implementation of the package_info_plus plugin.
version: 0.1.0
version: 0.2.0
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

Expand Down
4 changes: 4 additions & 0 deletions packages/package_info_plus_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0

- Changed method channel name

## 0.2.0

- Transfer to plus-plugins monorepo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'package:package_info_plus_platform_interface/package_info_data.dart';

import 'package_info_platform_interface.dart';

const MethodChannel _channel = MethodChannel('plugins.flutter.io/package_info');
const MethodChannel _channel =
MethodChannel('dev.fluttercommunity.plus/package_info');

/// An implementation of [PackageInfoPlatform] that uses method channels.
class MethodChannelPackageInfo extends PackageInfoPlatform {
Expand Down
2 changes: 1 addition & 1 deletion packages/package_info_plus_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: package_info_plus_platform_interface
description: A common platform interface for the package_info_plus plugin.
version: 0.1.0
version: 0.3.0
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void main() {

group('$MethodChannelPackageInfo()', () {
const MethodChannel channel =
MethodChannel('plugins.flutter.io/package_info');
MethodChannel('dev.fluttercommunity.plus/package_info');
final List<MethodCall> log = <MethodCall>[];
channel.setMockMethodCallHandler((MethodCall methodCall) async {
log.add(methodCall);
Expand Down