Skip to content

Commit 4de3c06

Browse files
committed
Flutter fimber plugin published to 0.6.0
1 parent a102a54 commit 4de3c06

File tree

11 files changed

+40
-104
lines changed

11 files changed

+40
-104
lines changed

flutter_fimber/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## [0.6.0] - Update to null-safety channel
2+
13
## [0.5.0-nullsafety.1] - Updated to Dart nullsafety.
24

35
## [0.4.4] - Fix for printing color when with level output

flutter_fimber/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This plug-in will make the logging via Fimber into native OS logging output.
66

77
### Dependency setup
88
```yaml
9-
flutter_fimber: ^0.4.4
9+
flutter_fimber: ^0.6.0
1010
```
1111
### Import setup
1212
```dart

flutter_fimber/example/.flutter-plugins-dependencies

Lines changed: 0 additions & 1 deletion
This file was deleted.

flutter_fimber/example/ios/Flutter/flutter_export_environment.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

flutter_fimber/example/ios/Podfile

Lines changed: 17 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,32 @@ project 'Runner', {
1010
'Release' => :release,
1111
}
1212

13-
def parse_KV_file(file, separator='=')
14-
file_abs_path = File.expand_path(file)
15-
if !File.exists? file_abs_path
16-
return [];
13+
def flutter_root
14+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15+
unless File.exist?(generated_xcode_build_settings_path)
16+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
1717
end
18-
pods_ary = []
19-
skip_line_start_symbols = ["#", "/"]
20-
File.foreach(file_abs_path) { |line|
21-
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22-
plugin = line.split(pattern=separator)
23-
if plugin.length == 2
24-
podname = plugin[0].strip()
25-
path = plugin[1].strip()
26-
podpath = File.expand_path("#{path}", file_abs_path)
27-
pods_ary.push({:name => podname, :path => podpath});
28-
else
29-
puts "Invalid plugin specification: #{line}"
30-
end
31-
}
32-
return pods_ary
18+
19+
File.foreach(generated_xcode_build_settings_path) do |line|
20+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
21+
return matches[1].strip if matches
22+
end
23+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
3324
end
3425

35-
target 'Runner' do
36-
use_frameworks!
26+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
3727

38-
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
39-
# referring to absolute paths on developers' machines.
40-
system('rm -rf .symlinks')
41-
system('mkdir -p .symlinks/plugins')
28+
flutter_ios_podfile_setup
4229

43-
# Flutter Pods
44-
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
45-
if generated_xcode_build_settings.empty?
46-
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
47-
end
48-
generated_xcode_build_settings.map { |p|
49-
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
50-
symlink = File.join('.symlinks', 'flutter')
51-
File.symlink(File.dirname(p[:path]), symlink)
52-
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
53-
end
54-
}
30+
target 'Runner' do
31+
use_frameworks!
32+
use_modular_headers!
5533

56-
# Plugin Pods
57-
plugin_pods = parse_KV_file('../.flutter-plugins')
58-
plugin_pods.map { |p|
59-
symlink = File.join('.symlinks', 'plugins', p[:name])
60-
File.symlink(p[:path], symlink)
61-
pod p[:name], :path => File.join(symlink, 'ios')
62-
}
34+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
6335
end
6436

6537
post_install do |installer|
6638
installer.pods_project.targets.each do |target|
67-
target.build_configurations.each do |config|
68-
config.build_settings['ENABLE_BITCODE'] = 'NO'
69-
end
39+
flutter_additional_ios_build_settings(target)
7040
end
7141
end

flutter_fimber/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1412
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
1513
959CEEE376614162015ED051 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F70388600FB33BC91D1FC581 /* Pods_Runner.framework */; };
16-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
17-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1814
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
1915
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
2016
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
@@ -28,8 +24,6 @@
2824
dstPath = "";
2925
dstSubfolderSpec = 10;
3026
files = (
31-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
32-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
3327
);
3428
name = "Embed Frameworks";
3529
runOnlyForDeploymentPostprocessing = 0;
@@ -39,19 +33,19 @@
3933
/* Begin PBXFileReference section */
4034
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4135
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36+
1F509684C2459EBBE419915F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4237
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
43-
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
4438
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
4539
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4640
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4741
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4842
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
49-
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
5043
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
5144
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5245
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5346
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
5447
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
48+
A1C7BD69354F79AE7B30D5E4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
5549
F70388600FB33BC91D1FC581 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5650
/* End PBXFileReference section */
5751

@@ -60,8 +54,6 @@
6054
isa = PBXFrameworksBuildPhase;
6155
buildActionMask = 2147483647;
6256
files = (
63-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
64-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
6557
959CEEE376614162015ED051 /* Pods_Runner.framework in Frameworks */,
6658
);
6759
runOnlyForDeploymentPostprocessing = 0;
@@ -72,16 +64,16 @@
7264
88DBA1F5EAD4C25CAAD07B75 /* Pods */ = {
7365
isa = PBXGroup;
7466
children = (
67+
1F509684C2459EBBE419915F /* Pods-Runner.debug.xcconfig */,
68+
A1C7BD69354F79AE7B30D5E4 /* Pods-Runner.release.xcconfig */,
7569
);
7670
name = Pods;
7771
sourceTree = "<group>";
7872
};
7973
9740EEB11CF90186004384FC /* Flutter */ = {
8074
isa = PBXGroup;
8175
children = (
82-
3B80C3931E831B6300D905FE /* App.framework */,
8376
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
84-
9740EEBA1CF902C7004384FC /* Flutter.framework */,
8577
9740EEB21CF90195004384FC /* Debug.xcconfig */,
8678
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
8779
9740EEB31CF90195004384FC /* Generated.xcconfig */,
@@ -226,7 +218,7 @@
226218
);
227219
runOnlyForDeploymentPostprocessing = 0;
228220
shellPath = /bin/sh;
229-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
221+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
230222
};
231223
68A3216F7ACB0D51F8C1F6B0 /* [CP] Check Pods Manifest.lock */ = {
232224
isa = PBXShellScriptBuildPhase;
@@ -266,18 +258,16 @@
266258
files = (
267259
);
268260
inputPaths = (
269-
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
270-
"${PODS_ROOT}/../.symlinks/flutter/ios-release/Flutter.framework",
261+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
271262
"${BUILT_PRODUCTS_DIR}/flutter_fimber/flutter_fimber.framework",
272263
);
273264
name = "[CP] Embed Pods Frameworks";
274265
outputPaths = (
275-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
276266
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_fimber.framework",
277267
);
278268
runOnlyForDeploymentPostprocessing = 0;
279269
shellPath = /bin/sh;
280-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
270+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
281271
showEnvVarsInLog = 0;
282272
};
283273
/* End PBXShellScriptBuildPhase section */
@@ -316,7 +306,6 @@
316306
/* Begin XCBuildConfiguration section */
317307
97C147031CF9000F007C117D /* Debug */ = {
318308
isa = XCBuildConfiguration;
319-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
320309
buildSettings = {
321310
ALWAYS_SEARCH_USER_PATHS = NO;
322311
CLANG_ANALYZER_NONNULL = YES;
@@ -370,7 +359,6 @@
370359
};
371360
97C147041CF9000F007C117D /* Release */ = {
372361
isa = XCBuildConfiguration;
373-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
374362
buildSettings = {
375363
ALWAYS_SEARCH_USER_PATHS = NO;
376364
CLANG_ANALYZER_NONNULL = YES;

flutter_fimber/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flutter_fimber/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

Lines changed: 0 additions & 8 deletions
This file was deleted.

flutter_fimber/example/lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import 'package:flutter_fimber/flutter_fimber.dart';
77
void main() {
88
Fimber.plantTree(FimberTree(useColors: true));
99
Fimber.plantTree(DebugBufferTree.elapsed());
10-
Fimber.plantTree(SizeRollingFileTree(DataSize.mega(3),
11-
filenamePrefix:
12-
"/data/user/0/com.perlak.flutterfimberexample/app_flutter/log_"));
10+
// Fimber.plantTree(SizeRollingFileTree(DataSize.mega(3),
11+
// filenamePrefix:
12+
// "/data/user/0/com.perlak.flutterfimberexample/app_flutter/log_"));
1313

1414
runApp(MyApp());
1515
}

flutter_fimber/example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Demonstrates how to use the flutter_fimber plugin.
33
publish_to: 'none'
44

55
environment:
6-
sdk: '>=2.7.0 <3.0.0'
6+
sdk: '>=2.12.0 <3.0.0'
77

88
dependencies:
99
flutter:
@@ -15,10 +15,10 @@ dependencies:
1515

1616
# The following adds the Cupertino Icons font to your application.
1717
# Use with the CupertinoIcons class for iOS style icons.
18-
cupertino_icons: ^0.1.2
18+
cupertino_icons: ^1.0.2
1919

2020
dev_dependencies:
21-
test: '^1.5.1'
21+
test: '^1.16.5'
2222
flutter_test:
2323
sdk: flutter
2424

0 commit comments

Comments
 (0)