Skip to content

Commit

Permalink
flutter: publish 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
s1rius committed Jul 6, 2024
1 parent 74c090c commit ecad111
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish_flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on: [push, workflow_dispatch]

jobs:
publish:
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
with:
working-directory: ./ezlog_flutter
14 changes: 7 additions & 7 deletions ezlog_flutter/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- EZLog (0.2.0-alpha.2)
- ezlog_flutter (0.0.1):
- EZLog (> 0.2.0-alpha)
- EZLog (0.2.0)
- ezlog_flutter (0.2.0):
- EZLog (>= 0.2.0)
- Flutter
- Flutter (1.0.0)
- path_provider_foundation (0.0.1):
Expand All @@ -26,11 +26,11 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/path_provider_foundation/darwin"

SPEC CHECKSUMS:
EZLog: 73e75c62b598027af95bdac502c51311ba0174b4
ezlog_flutter: 3ecbd6658ff9145d725abe33da65e6e4717eda51
EZLog: 842e5b9304e72faef324e33412467fa3c001074a
ezlog_flutter: a2e88fe49b52e794d9c884612163cfa4998913ed
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943

PODFILE CHECKSUM: 8b0dd513666eaf3741dd960dfac96db902517c4f
PODFILE CHECKSUM: b13414d87395f00cffa4410db337c2a57c089154

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2
2 changes: 1 addition & 1 deletion ezlog_flutter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.7"
version: "0.2.0"
fake_async:
dependency: transitive
description:
Expand Down
8 changes: 4 additions & 4 deletions ezlog_flutter/ios/ezlog_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
#
Pod::Spec.new do |s|
s.name = 'ezlog_flutter'
s.version = '0.0.1'
s.version = '0.2.0'
s.summary = 'EZLog Flutter plugin project. A cross-platform file logging library.'
s.description = <<-DESC
EZLog Flutter plugin project. A cross-platform file logging library.
DESC
s.homepage = 'http://example.com'
s.homepage = 'http://s1rius.github.io/ezlog'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '[email protected]' }
s.author = { 's1rius' => "" }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'EZLog', '> 0.2.0-alpha'
s.dependency 'EZLog', '>= 0.2.0'
s.platform = :ios, '13.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
3 changes: 1 addition & 2 deletions ezlog_flutter/lib/ezlog_flutter_method_channel.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:typed_data';

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

Expand Down Expand Up @@ -73,6 +71,7 @@ class MethodChannelEzlogFlutter extends EZLogFlutterPlatform {
});
}

@override
void trim() {
methodChannel.invokeMapMethod("trim");
}
Expand Down
4 changes: 2 additions & 2 deletions ezlog_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: ezlog_flutter
description: EZLog Flutter plugin project. A cross-platform file logging library.
version: 0.1.7
version: 0.2.0
homepage: https://github.com/s1rius/ezlog/ezlog_flutter

environment:
sdk: ">=2.17.1 <3.0.0"
sdk: ">=2.17.1 <4.0.0"
flutter: ">=2.5.0"

dependencies:
Expand Down
13 changes: 10 additions & 3 deletions ezlog_flutter/test/ezlog_flutter_method_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ void main() {

TestWidgetsFlutterBinding.ensureInitialized();

Future<void> onMethodCall(MethodCall call) {
switch (call.method) {
default:
throw UnimplementedError(
"${call.method} was invoked but isn't implemented by PlatformViewsService");
}
}

setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
channel.setMethodCallHandler(onMethodCall);
});

tearDown(() {
// ignore: deprecated_member_use
channel.setMockMethodCallHandler(null);
});
}
2 changes: 1 addition & 1 deletion ezlog_flutter/test/ezlog_flutter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MockEZLogFlutterPlatform
}

@override
Future<List<Object?>?> requestLogFilesForDate(String name, String date) {
Future<List<Object?>?> requestLogFilesForDate(String name, DateTime date) {
throw UnimplementedError();
}

Expand Down

0 comments on commit ecad111

Please sign in to comment.