Skip to content

Commit

Permalink
Transfer package to Flutter Community under new name
Browse files Browse the repository at this point in the history
  • Loading branch information
mhadaily committed Aug 22, 2020
1 parent 538c758 commit 514e8e7
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 24 deletions.
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Auto detect text files and perform LF normalization
* text=auto

# Always perform LF normalization on these files
*.dart text
*.gradle text
*.html text
*.java text
*.json text
*.md text
*.py text
*.sh text
*.txt text
*.xml text
*.yaml text

# Make sure that these Windows files always have CRLF line endings in checkout
*.bat text eol=crlf
*.ps1 text eol=crlf

# Never perform LF normalization on these files
*.ico binary
*.jar binary
*.png binary
*.zip binary
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.DS_Store
.atom/
.idea/
.vscode/

.packages
.pub/
.dart_tool/
pubspec.lock
flutter_export_environment.sh

examples/all_plugins/pubspec.yaml

Podfile
Podfile.lock
Pods/
.symlinks/
**/Flutter/App.framework/
**/Flutter/ephemeral/
**/Flutter/Flutter.framework/
**/Flutter/Generated.xcconfig
**/Flutter/flutter_assets/

ServiceDefinitions.json
xcuserdata/
**/DerivedData/

local.properties
keystore.properties
.gradle/
gradlew
gradlew.bat
gradle-wrapper.jar
.flutter-plugins-dependencies
*.iml

GeneratedPluginRegistrant.h
GeneratedPluginRegistrant.m
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.swift
build/
.flutter-plugins

.project
.classpath
.settings
src
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.4

* Transfer package to Flutter Community under new name `package_info_plus`.

## 0.4.3

* Update package:e2e -> package:integration_test
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# PackageInfo
# PackageInfoPlus

[![Flutter Community: package_info_plus](https://fluttercommunity.dev/_github/header/package_info_plus)](https://github.com/fluttercommunity/community)

[![pub package](https://img.shields.io/pub/v/package_info_plus.svg)](https://pub.dev/packages/package_info_plus)

This Flutter plugin provides an API for querying information about an
application package.
Expand All @@ -16,7 +20,7 @@ You can use the PackageInfo to query information about the
application package. This works both on iOS and Android.

```dart
import 'package:package_info/package_info.dart';
import 'package:package_info_plus/package_info.dart';
PackageInfo packageInfo = await PackageInfo.fromPlatform();
Expand Down
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# package_info_example
# package_info_plus_example

Demonstrates how to use the package_info plugin.
Demonstrates how to use the package_info_plus plugin.

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:package_info/package_info.dart';
import 'package:package_info_plus/package_info.dart';

void main() {
runApp(MyApp());
Expand Down
7 changes: 3 additions & 4 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: package_info_example
description: Demonstrates how to use the package_info plugin.
description: Demonstrates how to use the package_info_plus plugin.

dependencies:
flutter:
sdk: flutter
package_info:
package_info_plus:
path: ../
integration_test:
path: ../../integration_test
integration_test: ^0.8.0

dev_dependencies:
flutter_driver:
Expand Down
11 changes: 4 additions & 7 deletions example/test_driver/package_info_e2e.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:package_info/package_info.dart';
import 'package:package_info_plus/package_info.dart';
import 'package:package_info_example/main.dart';

void main() {
Expand Down Expand Up @@ -40,20 +40,17 @@ void main() {
if (Platform.isAndroid) {
expect(find.text('package_info_example'), findsOneWidget);
expect(find.text('1'), findsOneWidget);
expect(
find.text('io.flutter.plugins.packageinfoexample'), findsOneWidget);
expect(find.text('io.flutter.plugins.packageinfoexample'), findsOneWidget);
expect(find.text('1.0'), findsOneWidget);
} else if (Platform.isIOS) {
expect(find.text('Package Info Example'), findsOneWidget);
expect(find.text('1'), findsOneWidget);
expect(
find.text('io.flutter.plugins.packageInfoExample'), findsOneWidget);
expect(find.text('io.flutter.plugins.packageInfoExample'), findsOneWidget);
expect(find.text('1.0'), findsOneWidget);
} else if (Platform.isMacOS) {
expect(find.text('Package Info Example'), findsOneWidget);
expect(find.text('1'), findsOneWidget);
expect(
find.text('io.flutter.plugins.packageInfoExample'), findsOneWidget);
expect(find.text('io.flutter.plugins.packageInfoExample'), findsOneWidget);
expect(find.text('1.0.0'), findsOneWidget);
} else {
throw (UnsupportedError('platform not supported'));
Expand Down
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: package_info
name: package_info_plus
description: Flutter plugin for querying information about the application
package, such as CFBundleVersion on iOS or versionCode on Android.
homepage: https://github.com/flutter/plugins/tree/master/packages/package_info
homepage: https://github.com/fluttercommunity/package_info_plus
# 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
version: 0.4.3
version: 0.4.4

flutter:
plugin:
Expand All @@ -28,8 +28,7 @@ dev_dependencies:
flutter_driver:
sdk: flutter
test: any
integration_test:
path: ../integration_test
integration_test: ^0.8.0
pedantic: ^1.8.0

environment:
Expand Down
5 changes: 2 additions & 3 deletions test/package_info_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:package_info/package_info.dart';
import 'package:package_info_plus/package_info.dart';

void main() {
TestWidgetsFlutterBinding.ensureInitialized();

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

channel.setMockMethodCallHandler((MethodCall methodCall) async {
Expand Down

0 comments on commit 514e8e7

Please sign in to comment.