gonative-cli 0.4.0 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/gonative-cli.gemspec +1 -1
- data/lib/gonative/plugins/ios/publish/release.rb +3 -7
- data/lib/gonative/plugins/ios/publish.rb +7 -0
- data/lib/gonative/version.rb +1 -1
- data/templates/plugins/ios/PLUGIN_NAME.podspec.tpl +1 -1
- data/templates/plugins/ios/js/polyfill.js.tpl +0 -0
- metadata +7 -7
- data/FacebookPlugin.podspec +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a3f67b63e9189478cf5bd99333dabcab2270becfa5c2b2c050f5438bb578ec
|
4
|
+
data.tar.gz: 5ab36119c477700139465acf59921e7e02dcd76d666519cdf0cd497a6bc6d986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a47ee13b9b0a57f794ad4d173b7807b8122b203d4e69acc032ec88d3167fb37736b7f3f5a37b6610c1e71f0cdd9553d86a3a24b8af0ceff0956a2f2647f091f
|
7
|
+
data.tar.gz: 8dd92365b9d69285846ab9ecb28bbbb14b7c2a37c3ef8e2ca9c36db10314994d4a0183dc00f75bcc56be2025d18dce41c2df27b505f23e0facb58ade50430364
|
data/Gemfile.lock
CHANGED
data/gonative-cli.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency 'zeitwerk', '~> 2.4'
|
32
32
|
spec.add_dependency 'cocoapods', '~> 1.10'
|
33
33
|
spec.add_dependency 'xcodeproj', '~> 1.20'
|
34
|
-
spec.add_dependency 'colorize'
|
34
|
+
spec.add_dependency 'colorize', '~> 0.8.0'
|
35
35
|
|
36
36
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
37
37
|
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
@@ -14,7 +14,6 @@ module GoNative
|
|
14
14
|
assert_spec_exists!
|
15
15
|
sources_manager.update(GONATIVE_SOURCE_NAME)
|
16
16
|
assert_not_pushed!
|
17
|
-
verify_lib!
|
18
17
|
create_and_push_tag!
|
19
18
|
push_to_pod_repo!
|
20
19
|
end
|
@@ -31,17 +30,14 @@ module GoNative
|
|
31
30
|
version = spec.version
|
32
31
|
name = spec.name
|
33
32
|
|
34
|
-
pushed_versions = source.versions(name)
|
33
|
+
pushed_versions = source.versions(name)&.collect(&:to_s)
|
35
34
|
|
36
|
-
raise Error, "#{name} (#{version}) has already been pushed to #{source.name}" if pushed_versions
|
37
|
-
end
|
38
|
-
|
39
|
-
def verify_lib!
|
40
|
-
raise Error, "pod lib lint failed" unless system("pod lib lint #{spec_name} --private")
|
35
|
+
raise Error, "#{name} (#{version}) has already been pushed to #{source.name}" if pushed_versions&.include? version.to_s
|
41
36
|
end
|
42
37
|
|
43
38
|
def create_and_push_tag!
|
44
39
|
unless system("git tag | grep #{spec.version} > /dev/null")
|
40
|
+
system "git add -A && git commit -m \"Releases #{spec.version}.\""
|
45
41
|
system "git tag #{spec.version}"
|
46
42
|
system "git push && git push --tags"
|
47
43
|
end
|
@@ -9,6 +9,7 @@ module GoNative
|
|
9
9
|
|
10
10
|
def call
|
11
11
|
assert_valid_plugin!
|
12
|
+
assert_staging_clear!
|
12
13
|
build_framework!
|
13
14
|
release_pod!
|
14
15
|
end
|
@@ -19,6 +20,12 @@ module GoNative
|
|
19
20
|
raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory"
|
20
21
|
end
|
21
22
|
|
23
|
+
def assert_staging_clear!
|
24
|
+
return if `git status --porcelain`.empty?
|
25
|
+
|
26
|
+
raise Error, "There are uncommitted changes in the repository"
|
27
|
+
end
|
28
|
+
|
22
29
|
def build_framework!
|
23
30
|
Utils::UI.info 'Building framework'
|
24
31
|
return if system('sh create-framework.sh >/dev/null 2>/dev/null')
|
data/lib/gonative/version.rb
CHANGED
@@ -10,7 +10,7 @@ TODO: Add long description of the pod here.
|
|
10
10
|
s.homepage = 'https://github.com/gonativeio/{{PLUGIN_NAME}}'
|
11
11
|
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
12
12
|
s.author = { 'hhunaid' => 'hhunaid@gmail.com' }
|
13
|
-
s.source = { :git => '
|
13
|
+
s.source = { :git => 'git@github.com:gonativeio/{{PLUGIN_NAME}}.git', :tag => s.version.to_s }
|
14
14
|
|
15
15
|
s.ios.deployment_target = '10.0'
|
16
16
|
s.swift_versions = '5.0'
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gonative-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hunaid Hassan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: colorize
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.8.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.8.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +162,6 @@ files:
|
|
162
162
|
- ".rspec"
|
163
163
|
- ".rubocop.yml"
|
164
164
|
- CODE_OF_CONDUCT.md
|
165
|
-
- FacebookPlugin.podspec
|
166
165
|
- Gemfile
|
167
166
|
- Gemfile.lock
|
168
167
|
- LICENSE.txt
|
@@ -195,6 +194,7 @@ files:
|
|
195
194
|
- templates/plugins/ios/PLUGIN_NAME/Info.plist
|
196
195
|
- templates/plugins/ios/Podfile.tpl
|
197
196
|
- templates/plugins/ios/create-framework.sh.tpl
|
197
|
+
- templates/plugins/ios/js/polyfill.js.tpl
|
198
198
|
homepage: https://www.github.com/gonativeio/gonative-cli
|
199
199
|
licenses:
|
200
200
|
- MIT
|
data/FacebookPlugin.podspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
Pod::Spec.new do |s|
|
2
|
-
s.name = 'FacebookPlugin'
|
3
|
-
s.version = '1.0.0'
|
4
|
-
s.summary = 'Facebook plugin for GoNative.'
|
5
|
-
|
6
|
-
s.description = <<-DESC
|
7
|
-
TODO: Add long description of the pod here.
|
8
|
-
DESC
|
9
|
-
|
10
|
-
s.homepage = 'https://github.com/gonativeio/FacebookPlugin'
|
11
|
-
s.license = { :type => 'MIT', :file => 'LICENSE' }
|
12
|
-
s.author = { 'hhunaid' => 'hhunaid@gmail.com' }
|
13
|
-
s.source = { :git => 'https://github.com/gonativeio/FacebookPlugin.git', :tag => s.version.to_s }
|
14
|
-
|
15
|
-
s.ios.deployment_target = '10.0'
|
16
|
-
s.swift_versions = '5.0'
|
17
|
-
|
18
|
-
s.subspec 'Source' do |cs|
|
19
|
-
cs.source_files = 'FacebookPlugin/Classes/**/*'
|
20
|
-
end
|
21
|
-
|
22
|
-
s.subspec 'Binary' do |cs|
|
23
|
-
cs.ios.vendored_frameworks = 'XCFramework/FacebookPlugin.xcframework'
|
24
|
-
end
|
25
|
-
|
26
|
-
s.default_subspec = 'Source'
|
27
|
-
s.dependency 'FBSDKCoreKit', '~> 9.1.0'
|
28
|
-
s.dependency 'GoNativeCore'
|
29
|
-
end
|