Skip to content

Commit e285872

Browse files
committed
readme
1 parent 1b08772 commit e285872

8 files changed

Lines changed: 70 additions & 2 deletions

File tree

‎1.jpg‎

431 KB
Loading

‎2.jpg‎

389 KB
Loading

‎3.jpg‎

263 KB
Loading

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## 一款跨平台的开源Github客户端App,提供更丰富的功能,更好体验,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验~~Σ( ̄。 ̄ノ)ノ。
44

5-
### 同款Weex版本开发中 ( https://github.com/CarGuo/GSYGithubAppFlutterWeex )
5+
### 同款Weex版 ( https://github.com/CarGuo/GSYGithubAppFlutterWeex )
6+
### 同款ReactNative版 ( https://github.com/CarGuo/GSYGithubApp )
67

78
```
89
基于React Native开发,适配Android与IOS。

‎RECORD.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ https://github.com/flutter/flutter/issues/19030 没有webview,残念
3131

3232
https://github.com/flutter/flutter/issues/19030#issuecomment-406656714
3333

34-
https://github.com/flutter/flutter/issues/11895#issuecomment-406832395 tab live
34+
https://github.com/flutter/flutter/issues/11895#issuecomment-406832395 tab alive
35+
36+
https://github.com/flutter/flutter/issues/19030 没有webview,残念

‎ios/Podfile‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
def parse_KV_file(file, separator='=')
8+
file_abs_path = File.expand_path(file)
9+
if !File.exists? file_abs_path
10+
return [];
11+
end
12+
pods_ary = []
13+
skip_line_start_symbols = ["#", "/"]
14+
File.foreach(file_abs_path) { |line|
15+
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
16+
plugin = line.split(pattern=separator)
17+
if plugin.length == 2
18+
podname = plugin[0].strip()
19+
path = plugin[1].strip()
20+
podpath = File.expand_path("#{path}", file_abs_path)
21+
pods_ary.push({:name => podname, :path => podpath});
22+
else
23+
puts "Invalid plugin specification: #{line}"
24+
end
25+
}
26+
return pods_ary
27+
end
28+
29+
target 'Runner' do
30+
use_frameworks!
31+
32+
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
33+
# referring to absolute paths on developers' machines.
34+
system('rm -rf .symlinks')
35+
system('mkdir -p .symlinks/plugins')
36+
37+
# Flutter Pods
38+
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
39+
if generated_xcode_build_settings.empty?
40+
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
41+
end
42+
generated_xcode_build_settings.map { |p|
43+
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
44+
symlink = File.join('.symlinks', 'flutter')
45+
File.symlink(File.dirname(p[:path]), symlink)
46+
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
47+
end
48+
}
49+
50+
# Plugin Pods
51+
plugin_pods = parse_KV_file('../.flutter-plugins')
52+
plugin_pods.map { |p|
53+
symlink = File.join('.symlinks', 'plugins', p[:name])
54+
File.symlink(p[:path], symlink)
55+
pod p[:name], :path => File.join(symlink, 'ios')
56+
}
57+
end
58+
59+
post_install do |installer|
60+
installer.pods_project.targets.each do |target|
61+
target.build_configurations.each do |config|
62+
config.build_settings['ENABLE_BITCODE'] = 'NO'
63+
end
64+
end
65+
end

‎logo.png‎

103 KB
Loading

‎thanks.jpg‎

91.7 KB
Loading

0 commit comments

Comments
 (0)