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
2 changes: 1 addition & 1 deletion packages/device_info_plus/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group 'io.flutter.plugins.deviceinfo'
group 'dev.fluttercommunity.plus.device_info'
version '1.0-SNAPSHOT'

buildscript {
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.deviceinfo">
package="dev.fluttercommunity.plus.device_info">
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package io.flutter.plugins.deviceinfo;
package dev.fluttercommunity.plus.device_info;

import android.content.Context;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** DeviceInfoPlugin */
public class DeviceInfoPlugin implements FlutterPlugin {
/** DeviceInfoPlusPlugin */
public class DeviceInfoPlusPlugin implements FlutterPlugin {

MethodChannel channel;

/** Plugin registration. */
public static void registerWith(Registrar registrar) {
DeviceInfoPlugin plugin = new DeviceInfoPlugin();
DeviceInfoPlusPlugin plugin = new DeviceInfoPlusPlugin();
plugin.setupMethodChannel(registrar.messenger(), registrar.context());
}

Expand All @@ -32,7 +32,7 @@ public void onDetachedFromEngine(FlutterPlugin.FlutterPluginBinding binding) {
}

private void setupMethodChannel(BinaryMessenger messenger, Context context) {
channel = new MethodChannel(messenger, "plugins.flutter.io/device_info");
channel = new MethodChannel(messenger, "dev.fluttercommunity.plus/device_info");
final MethodCallHandlerImpl handler =
new MethodCallHandlerImpl(context.getContentResolver(), context.getPackageManager());
channel.setMethodCallHandler(handler);
Expand Down
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.deviceinfo;
package dev.fluttercommunity.plus.device_info;

import android.annotation.SuppressLint;
import android.content.ContentResolver;
Expand Down
3 changes: 3 additions & 0 deletions packages/device_info_plus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ dev_dependencies:

flutter:
uses-material-design: true

environment:
sdk: '>=2.10.0 <3.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

#import <Flutter/Flutter.h>

@interface FLTDeviceInfoPlugin : NSObject <FlutterPlugin>
@interface FLTDeviceInfoPlusPlugin : NSObject <FlutterPlugin>
@end
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "FLTDeviceInfoPlugin.h"
#import "FLTDeviceInfoPlusPlugin.h"
#import <sys/utsname.h>

@implementation FLTDeviceInfoPlugin
@implementation FLTDeviceInfoPlusPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
FlutterMethodChannel* channel =
[FlutterMethodChannel methodChannelWithName:@"plugins.flutter.io/device_info"
[FlutterMethodChannel methodChannelWithName:@"dev.fluttercommunity.plus/device_info"
binaryMessenger:[registrar messenger]];
FLTDeviceInfoPlugin* instance = [[FLTDeviceInfoPlugin alloc] init];
FLTDeviceInfoPlusPlugin* instance = [[FLTDeviceInfoPlusPlugin alloc] init];
[registrar addMethodCallDelegate:instance channel:channel];
}

Expand Down
6 changes: 3 additions & 3 deletions packages/device_info_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ flutter:
plugin:
platforms:
android:
package: io.flutter.plugins.deviceinfo
pluginClass: DeviceInfoPlugin
package: dev.fluttercommunity.plus.device_info
pluginClass: DeviceInfoPlusPlugin
ios:
pluginClass: FLTDeviceInfoPlugin
pluginClass: FLTDeviceInfoPlusPlugin
linux:
default_package: device_info_plus_linux
web:
Expand Down
4 changes: 4 additions & 0 deletions packages/device_info_plus_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.0

- Rename method channel to avoid conflicts.

## 0.1.0

- Intial release and transfer to plus-plugins monorepo
4 changes: 2 additions & 2 deletions packages/device_info_plus_linux/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: device_info_plus_linux
description: Linux implementation of the device_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 All @@ -9,7 +9,7 @@ environment:
flutter: ">=1.17.0 <2.0.0"

dependencies:
device_info_plus_platform_interface: ^0.2.0
device_info_plus_platform_interface: ^0.3.0
file: '>=5.2.1 <=6.0.0'
flutter:
sdk: flutter
Expand Down
4 changes: 4 additions & 0 deletions packages/device_info_plus_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0

- Rename method channel to avoid conflicts.

## 0.2.0

- Transfer to plus-plugins monorepo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import 'package:device_info_plus_platform_interface/device_info_plus_platform_in
class MethodChannelDeviceInfo extends DeviceInfoPlatform {
/// The method channel used to interact with the native platform.
@visibleForTesting
MethodChannel channel = MethodChannel('plugins.flutter.io/device_info');
MethodChannel channel =
MethodChannel('dev.fluttercommunity.plus/device_info');

// Method channel for Android devices
Future<AndroidDeviceInfo> androidInfo() async {
Expand Down
2 changes: 1 addition & 1 deletion packages/device_info_plus_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: device_info_plus_platform_interface
description: A common platform interface for the device_info_plis plugin.
version: 0.2.0
version: 0.3.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/device_info_plus_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0

- Rename method channel to avoid conflicts.

## 0.2.0

- Transfer to plus-plugins monorepo
Expand Down
8 changes: 4 additions & 4 deletions packages/device_info_plus_web/lib/device_info_plus_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import 'package:device_info_plus_platform_interface/device_info_plus_platform_in
import 'package:flutter_web_plugins/flutter_web_plugins.dart';

/// The web implementation of the BatteryPlusPlatform of the BatteryPlus plugin.
class DeviceInfoPlugin extends DeviceInfoPlatform {
/// Constructs a DeviceInfoPlugin.
DeviceInfoPlugin(navigator) : _navigator = navigator;
class DeviceInfoPlusPlugin extends DeviceInfoPlatform {
/// Constructs a DeviceInfoPlusPlugin.
DeviceInfoPlusPlugin(navigator) : _navigator = navigator;

final html.Navigator _navigator;

/// Factory method that initializes the DeviceInfoPlus plugin platform
/// with an instance of the plugin for the web.
static void registerWith(Registrar registrar) {
DeviceInfoPlatform.instance = DeviceInfoPlugin(html.window.navigator);
DeviceInfoPlatform.instance = DeviceInfoPlusPlugin(html.window.navigator);
}

@override
Expand Down
6 changes: 3 additions & 3 deletions packages/device_info_plus_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: device_info_plus_web
description: An implementation for the web platform of the Flutter `device_info_plus` plugin.
version: 0.2.0
version: 0.3.0
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

flutter:
plugin:
platforms:
web:
pluginClass: DeviceInfoPlugin
pluginClass: DeviceInfoPlusPlugin
fileName: device_info_plus_web.dart

dependencies:
device_info_plus_platform_interface: ^0.2.0
device_info_plus_platform_interface: ^0.3.0
flutter_web_plugins:
sdk: flutter
flutter:
Expand Down