Skip to content

Commit f8d7a1c

Browse files
[android_intent_plus] rename method channel and java package. See #56 (#58)
* renamed Android package and method channel * version bump * java format
1 parent 83cd8fb commit f8d7a1c

File tree

9 files changed

+17
-10
lines changed

9 files changed

+17
-10
lines changed

packages/android_intent_plus/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.1
2+
3+
- Renamed Method Channel and changed Java package to avoid collision with android_intent
4+
15
## 0.4.0
26

37
- Transfer to plus-plugins monorepo
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="io.flutter.plugins.androidintent">
2+
package="dev.fluttercommunity.plus.androidintent">
33
</manifest>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.flutter.plugins.androidintent;
1+
package dev.fluttercommunity.plus.androidintent;
22

33
import androidx.annotation.NonNull;
44
import io.flutter.embedding.engine.plugins.FlutterPlugin;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.flutter.plugins.androidintent;
1+
package dev.fluttercommunity.plus.androidintent;
22

33
import android.app.Activity;
44
import android.content.ComponentName;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.flutter.plugins.androidintent;
1+
package dev.fluttercommunity.plus.androidintent;
22

33
import android.content.ComponentName;
44
import android.content.Intent;
@@ -46,7 +46,7 @@ void startListening(BinaryMessenger messenger) {
4646
stopListening();
4747
}
4848

49-
methodChannel = new MethodChannel(messenger, "plugins.flutter.io/android_intent");
49+
methodChannel = new MethodChannel(messenger, "dev.fluttercommunity.plus/android_intent");
5050
methodChannel.setMethodCallHandler(this);
5151
}
5252

packages/android_intent_plus/example/android/app/src/main/java/io/flutter/plugins/androidintentexample/EmbeddingV1Activity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
package io.flutter.plugins.androidintentexample;
66

77
import android.os.Bundle;
8+
import dev.fluttercommunity.plus.androidintent.AndroidIntentPlugin;
89
import io.flutter.app.FlutterActivity;
9-
import io.flutter.plugins.androidintent.AndroidIntentPlugin;
1010

1111
public class EmbeddingV1Activity extends FlutterActivity {
1212
@Override
1313
protected void onCreate(Bundle savedInstanceState) {
1414
super.onCreate(savedInstanceState);
1515
AndroidIntentPlugin.registerWith(
16-
registrarFor("io.flutter.plugins.androidintent.AndroidIntentPlugin"));
16+
registrarFor("dev.fluttercommunity.plus.androidintent.AndroidIntentPlugin"));
1717
}
1818
}

packages/android_intent_plus/example/pubspec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: android_intent_example
22
description: Demonstrates how to use the android_intent plugin.
33

4+
environment:
5+
sdk: '>=2.10.0 <3.0.0'
6+
47
dependencies:
58
flutter:
69
sdk: flutter

packages/android_intent_plus/lib/android_intent.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:flutter/services.dart';
88
import 'package:meta/meta.dart';
99
import 'package:platform/platform.dart';
1010

11-
const String _kChannelName = 'plugins.flutter.io/android_intent';
11+
const String _kChannelName = 'dev.fluttercommunity.plus/android_intent';
1212

1313
/// Flutter plugin for launching arbitrary Android Intents.
1414
///

packages/android_intent_plus/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: android_intent_plus
22
description: Flutter plugin for launching Android Intents. Not supported on iOS.
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://plus.fluttercommunity.dev/
55
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/
66

77
flutter:
88
plugin:
99
platforms:
1010
android:
11-
package: io.flutter.plugins.androidintent
11+
package: dev.fluttercommunity.plus.androidintent
1212
pluginClass: AndroidIntentPlugin
1313

1414
dependencies:

0 commit comments

Comments
 (0)