Skip to content

Commit

Permalink
chore: publish packages, add topics to package metadata, remove defau…
Browse files Browse the repository at this point in the history
…lt method channel impl from quill_native_bridge_platform_interface
  • Loading branch information
EchoEllet committed Nov 24, 2024
1 parent 51f94ac commit 4f0e089
Show file tree
Hide file tree
Showing 30 changed files with 108 additions and 383 deletions.
6 changes: 6 additions & 0 deletions quill_native_bridge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## 10.7.11

- Adds pub topics to package metadata.
- Updates minimum versions of platform implementation dependencies.
- Removes redundant `platforms` in package metadata.

## 10.7.10

- Support Swift package manager.
Expand Down
16 changes: 8 additions & 8 deletions quill_native_bridge/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -237,56 +237,56 @@ packages:
path: ".."
relative: true
source: path
version: "10.7.10"
version: "10.7.11"
quill_native_bridge_android:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_android"
relative: true
source: path
version: "0.0.1-dev.4"
version: "0.0.1-dev.5"
quill_native_bridge_ios:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_ios"
relative: true
source: path
version: "0.0.1-dev.5"
version: "0.0.1-dev.6"
quill_native_bridge_linux:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_linux"
relative: true
source: path
version: "0.0.1-dev.3"
version: "0.0.1-dev.4"
quill_native_bridge_macos:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_macos"
relative: true
source: path
version: "0.0.1-dev.4"
version: "0.0.1-dev.5"
quill_native_bridge_platform_interface:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_platform_interface"
relative: true
source: path
version: "0.0.1-dev.4"
version: "0.0.1-dev.5"
quill_native_bridge_web:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_web"
relative: true
source: path
version: "0.0.1-dev.5"
version: "0.0.1-dev.6"
quill_native_bridge_windows:
dependency: "direct overridden"
description:
path: "../../quill_native_bridge_windows"
relative: true
source: path
version: "0.0.1-dev.3"
version: "0.0.1-dev.4"
sky_engine:
dependency: transitive
description: flutter
Expand Down
4 changes: 1 addition & 3 deletions quill_native_bridge/lib/quill_native_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export 'package:quill_native_bridge_platform_interface/src/platform_feature.dart
/// package to access platform-specific APIs.
///
/// Use [QuillNativeBridge.isSupported] to check whether a feature is supported.
class QuillNativeBridge {
QuillNativeBridge._();

abstract final class QuillNativeBridge {
static QuillNativeBridgePlatform get _platform =>
QuillNativeBridgePlatform.instance;

Expand Down
25 changes: 9 additions & 16 deletions quill_native_bridge/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
name: quill_native_bridge
description: "An internal plugin for flutter_quill package to access platform-specific APIs"
version: 10.7.10
version: 10.7.11
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues
documentation: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge

platforms:
android:
ios:
macos:
web:
linux:
windows:
topics: [clipboard, os-integration, quill-native-bridge, quill, flutter-quill]

environment:
sdk: '>=3.0.0 <4.0.0'
Expand All @@ -21,13 +14,13 @@ environment:
dependencies:
flutter:
sdk: flutter
quill_native_bridge_android: ^0.0.1-dev.4
quill_native_bridge_platform_interface: ^0.0.1-dev.4
quill_native_bridge_web: ^0.0.1-dev.5
quill_native_bridge_windows: ^0.0.1-dev.3
quill_native_bridge_linux: ^0.0.1-dev.3
quill_native_bridge_ios: ^0.0.1-dev.5
quill_native_bridge_macos: ^0.0.1-dev.4
quill_native_bridge_android: ^0.0.1-dev.5
quill_native_bridge_platform_interface: ^0.0.1-dev.5
quill_native_bridge_web: ^0.0.1-dev.6
quill_native_bridge_windows: ^0.0.1-dev.4
quill_native_bridge_linux: ^0.0.1-dev.4
quill_native_bridge_ios: ^0.0.1-dev.6
quill_native_bridge_macos: ^0.0.1-dev.5

dev_dependencies:
flutter_test:
Expand Down
7 changes: 6 additions & 1 deletion quill_native_bridge_android/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.5

- Adds pub topics to package metadata.
- Minor changes in doc comments.

## 0.0.1-dev.4

- Fixes [build failure](https://github.com/singerdmx/flutter-quill/issues/2340) by avoiding `androidx.core.graphics.decodeBitmap` (causing compatibility issues).

## 0.0.1-dev.3

- Require `quill_native_bridge_platform_interface` minimum version `0.0.1-dev.4`.
- Requires `quill_native_bridge_platform_interface` minimum version `0.0.1-dev.4`.

## 0.0.1-dev.2

Expand Down
23 changes: 2 additions & 21 deletions quill_native_bridge_android/lib/quill_native_bridge_android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,12 @@ import 'package:quill_native_bridge_platform_interface/quill_native_bridge_platf
import 'src/messages.g.dart';

/// An implementation of [QuillNativeBridgePlatform] for Android.
///
/// **Experimental** and might be changed.
///
/// Should extends [QuillNativeBridgePlatform] and not implements it as error will arise:
///
/// ```console
/// Assertion failed: "Platform interfaces must not be implemented with `implements`"
/// ```
///
/// See [Flutter #127396](https://github.com/flutter/flutter/issues/127396)
/// and [QuillNativeBridgePlatform] for more details.
class QuillNativeBridgeAndroid extends QuillNativeBridgePlatform {
QuillNativeBridgeAndroid._({
@visibleForTesting QuillNativeBridgeApi? api,
}) : _hostApi = api ?? QuillNativeBridgeApi();

final QuillNativeBridgeApi _hostApi;
final QuillNativeBridgeApi _hostApi = QuillNativeBridgeApi();

/// Registers this class as the default instance of [QuillNativeBridgePlatform].
static void registerWith() {
assert(
defaultTargetPlatform == TargetPlatform.android && !kIsWeb,
'$QuillNativeBridgeAndroid should be only used for Android.',
);
QuillNativeBridgePlatform.instance = QuillNativeBridgeAndroid._();
QuillNativeBridgePlatform.instance = QuillNativeBridgeAndroid();
}

@override
Expand Down
3 changes: 2 additions & 1 deletion quill_native_bridge_android/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: quill_native_bridge_android
description: "Android implementation of the quill_native_bridge plugin."
version: 0.0.1-dev.4
version: 0.0.1-dev.5
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_android
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_android
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues?q=is%3Aissue+is%3Aopen+label%3A%22platform-android%22
documentation: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_android
topics: [clipboard, os-integration, quill-native-bridge, quill, flutter-quill]

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
5 changes: 5 additions & 0 deletions quill_native_bridge_ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.6

- Adds pub topics to package metadata.
- Minor changes in doc comments.

## 0.0.1-dev.5

- Support Swift Package Manager.
Expand Down
23 changes: 2 additions & 21 deletions quill_native_bridge_ios/lib/quill_native_bridge_ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,12 @@ import 'package:quill_native_bridge_platform_interface/quill_native_bridge_platf
import 'src/messages.g.dart';

/// An implementation of [QuillNativeBridgePlatform] for iOS.
///
/// **Highly Experimental** and can be removed.
///
/// Should extends [QuillNativeBridgePlatform] and not implements it as error will arise:
///
/// ```console
/// Assertion failed: "Platform interfaces must not be implemented with `implements`"
/// ```
///
/// See [Flutter #127396](https://github.com/flutter/flutter/issues/127396)
/// and [QuillNativeBridgePlatform] for more details.
class QuillNativeBridgeIos extends QuillNativeBridgePlatform {
QuillNativeBridgeIos._({
@visibleForTesting QuillNativeBridgeApi? api,
}) : _hostApi = api ?? QuillNativeBridgeApi();

final QuillNativeBridgeApi _hostApi;
final QuillNativeBridgeApi _hostApi = QuillNativeBridgeApi();

/// Registers this class as the default instance of [QuillNativeBridgePlatform].
static void registerWith() {
assert(
defaultTargetPlatform == TargetPlatform.iOS && !kIsWeb,
'$QuillNativeBridgeIos should be only used for iOS.',
);
QuillNativeBridgePlatform.instance = QuillNativeBridgeIos._();
QuillNativeBridgePlatform.instance = QuillNativeBridgeIos();
}

@override
Expand Down
3 changes: 2 additions & 1 deletion quill_native_bridge_ios/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: quill_native_bridge_ios
description: "iOS implementation of the quill_native_bridge plugin."
version: 0.0.1-dev.5
version: 0.0.1-dev.6
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_ios
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_ios
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues?q=is%3Aissue+is%3Aopen+label%3A%22platform-ios%22
documentation: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_ios
topics: [clipboard, os-integration, quill-native-bridge, quill, flutter-quill]

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
5 changes: 5 additions & 0 deletions quill_native_bridge_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.4

- Adds pub topics to package metadata.
- Minor changes in doc comments.

## 0.0.1-dev.3

- Require `quill_native_bridge_platform_interface` minimum version `0.0.1-dev.4`.
Expand Down
16 changes: 1 addition & 15 deletions quill_native_bridge_linux/lib/quill_native_bridge_linux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,9 @@ import 'src/mime_types_constants.dart';
import 'src/temp_file_utils.dart';

/// A Linux implementation of the [QuillNativeBridgePlatform].
///
/// **Highly Experimental** and can be removed.
///
/// Should extends [QuillNativeBridgePlatform] and not implements it as error will arise:
///
/// ```console
/// Assertion failed: "Platform interfaces must not be implemented with `implements`"
/// ```
///
/// See [Flutter #127396](https://github.com/flutter/flutter/issues/127396)
/// and [QuillNativeBridgePlatform] for more details.
/// ```
class QuillNativeBridgeLinux extends QuillNativeBridgePlatform {
QuillNativeBridgeLinux._();

static void registerWith() {
QuillNativeBridgePlatform.instance = QuillNativeBridgeLinux._();
QuillNativeBridgePlatform.instance = QuillNativeBridgeLinux();
}

@override
Expand Down
3 changes: 2 additions & 1 deletion quill_native_bridge_linux/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: quill_native_bridge_linux
description: "Linux implementation of the quill_native_bridge plugin."
version: 0.0.1-dev.3
version: 0.0.1-dev.4
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_linux
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_linux
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues?q=is%3Aissue+is%3Aopen+label%3A%22platform-linux%22
documentation: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_linux
topics: [clipboard, os-integration, quill-native-bridge, quill, flutter-quill]

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
7 changes: 6 additions & 1 deletion quill_native_bridge_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.5

- Adds pub topics to package metadata.
- Minor changes in doc comments.

## 0.0.1-dev.4

- Support Swift Package Manager.
- Supports Swift Package Manager.

## 0.0.1-dev.3

Expand Down
23 changes: 2 additions & 21 deletions quill_native_bridge_macos/lib/quill_native_bridge_macos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,12 @@ import 'package:quill_native_bridge_platform_interface/quill_native_bridge_platf
import 'src/messages.g.dart';

/// An implementation of [QuillNativeBridgePlatform] for macOS.
///
/// **Highly Experimental** and can be removed.
///
/// Should extends [QuillNativeBridgePlatform] and not implements it as error will arise:
///
/// ```console
/// Assertion failed: "Platform interfaces must not be implemented with `implements`"
/// ```
///
/// See [Flutter #127396](https://github.com/flutter/flutter/issues/127396)
/// and [QuillNativeBridgePlatform] for more details.
class QuillNativeBridgeMacOS extends QuillNativeBridgePlatform {
QuillNativeBridgeMacOS._({
@visibleForTesting QuillNativeBridgeApi? api,
}) : _hostApi = api ?? QuillNativeBridgeApi();

final QuillNativeBridgeApi _hostApi;
final QuillNativeBridgeApi _hostApi = QuillNativeBridgeApi();

/// Registers this class as the default instance of [QuillNativeBridgePlatform].
static void registerWith() {
assert(
defaultTargetPlatform == TargetPlatform.macOS && !kIsWeb,
'$QuillNativeBridgeMacOS should be only used for macOS.',
);
QuillNativeBridgePlatform.instance = QuillNativeBridgeMacOS._();
QuillNativeBridgePlatform.instance = QuillNativeBridgeMacOS();
}

@override
Expand Down
3 changes: 2 additions & 1 deletion quill_native_bridge_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: quill_native_bridge_macos
description: "macOS implementation of the quill_native_bridge plugin."
version: 0.0.1-dev.4
version: 0.0.1-dev.5
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_macos
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_macos
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues?q=is%3Aissue+is%3Aopen+label%3A%22platform-macos%22
documentation: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_macos
topics: [clipboard, os-integration, quill-native-bridge, quill, flutter-quill]

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
8 changes: 7 additions & 1 deletion quill_native_bridge_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.5

- Removes the default method channel implementation (`MethodChannelQuillNativeBridge`) since it's no longer needed; platform packages have different implementations.
- Adds pub topics to package metadata.
- Minor changes in doc comments.

## 0.0.1-dev.4

- Fix the bug [singerdmx/flutter-quill #2316](https://github.com/singerdmx/flutter-quill/issues/2316) by removing the invalid usage of implementing the iOS plugin in the platform interface.
- Fix the bug [singerdmx/flutter-quill#2316](https://github.com/singerdmx/flutter-quill/issues/2316) by removing the invalid usage of implementing the iOS plugin in the platform interface.

## 0.0.1-dev.3

Expand Down
Loading

0 comments on commit 4f0e089

Please sign in to comment.