gonative-cli 0.9.3 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60d5a81cb59b20b9fe0b83a7bc367ba04f2f68b200d12e4039022dcf3f803ac8
4
- data.tar.gz: a57d10494beb2c2048721d428f50da4e9bc54676c55e1d15237a48689e98d359
3
+ metadata.gz: 1175d98308d5e73c597c0040992a2709b6d166f31b35d5572352137bc96ea676
4
+ data.tar.gz: cb80b1dfade0a4552002221dab305ab015862d10d9dcd562b83bb1c369d17116
5
5
  SHA512:
6
- metadata.gz: 640fb9f0703d5749abecd5be57e5b532141d37ee096046c08ae388c91d68cc5d1cce51cacfef470a1a1525347f964cbf46a94fad4bf91dbcc6b99ea5e7a7f1b5
7
- data.tar.gz: 0c5f6aeed1bedea560aa0f198a71909bc6731a78feac2f81884495bbf3566accebd5c5574756c069daf44617a41fb4248bd43117afd33dd3ef5507719962d865
6
+ metadata.gz: d542f21f7caa384edbcb4026ed122cfe11c2dc4b823a0b794e9916dd01fb32b796a8031a9524f5853930bbd6e7ed770e48198103263f86a9b2c1f3634d83c19e
7
+ data.tar.gz: 17e6fc4acfa10fd569c7f3dd970f346bfeee2c28419c0faf7f45c86405719b2244d9ebc7c4c45f587912ec0f021b80e1b59b8003083b0d1d45e4370381d78d01
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.9.2)
4
+ gonative-cli (0.9.3)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -68,7 +68,7 @@ GEM
68
68
  coderay (1.1.3)
69
69
  colored2 (3.1.2)
70
70
  colorize (0.8.1)
71
- concurrent-ruby (1.1.9)
71
+ concurrent-ruby (1.1.10)
72
72
  diff-lcs (1.4.4)
73
73
  dry-cli (0.7.0)
74
74
  escape (0.0.4)
data/LICENSE.txt CHANGED
@@ -1,21 +1 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Hunaid Hassan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ Licensing information available at https://gonative.io/
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GoNative
4
+ module Commands
5
+ module Android
6
+ class Publish < Base
7
+ desc 'Used to update one of the android internal dependencies'
8
+
9
+ def call
10
+ assert_build_file_exists!
11
+ create_and_push_tag!
12
+ end
13
+
14
+ def assert_build_file_exists!
15
+ return if gradle_files.empty?
16
+
17
+ raise Error, "No build.gradle file exists"
18
+ end
19
+
20
+ private
21
+
22
+ def gradle_files
23
+ @gradle_files ||= `find . -iname build.gradle`
24
+ end
25
+
26
+ def version
27
+ @version if @version
28
+
29
+ gradle_files.each do |gradle_file|
30
+ str = IO.read(gradle_file)
31
+ @version = str.match(/versionName\s+"(?<version>.+)"/)[:version]
32
+
33
+ break if @version
34
+ end
35
+ end
36
+
37
+ def create_and_push_tag!
38
+ unless system("git tag | grep #{version} > /dev/null")
39
+ system "git add -A && git commit -m \"Releases #{version}.\""
40
+ system "git tag #{version}"
41
+ system "git push && git push --tags"
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -11,5 +11,6 @@ module GoNative
11
11
  register 'ios embed-extensions', IOS::EmbedExtensions
12
12
  register 'ios set-bundle-id', IOS::SetBundleId
13
13
  register 'android create', Android::Create
14
+ register 'android publish', Android::Publish
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.9.3"
4
+ VERSION = "1.0.2"
5
5
  end
@@ -28,6 +28,6 @@ android {
28
28
  }
29
29
 
30
30
  dependencies {
31
- implementation "io.gonative.android:library:+"
32
- api project(':gonative-core')
31
+ implementation 'com.github.gonativeio:gonative-android-library:+'
32
+ implementation 'com.github.gonativeio:gonative-android-core:+'
33
33
  }
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.9.3
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -188,6 +188,7 @@ files:
188
188
  - lib/gonative.rb
189
189
  - lib/gonative/commands.rb
190
190
  - lib/gonative/commands/android/create.rb
191
+ - lib/gonative/commands/android/publish.rb
191
192
  - lib/gonative/commands/base.rb
192
193
  - lib/gonative/commands/ios/create.rb
193
194
  - lib/gonative/commands/ios/embed_extensions.rb
@@ -254,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
255
  - !ruby/object:Gem::Version
255
256
  version: '0'
256
257
  requirements: []
257
- rubygems_version: 3.2.3
258
+ rubygems_version: 3.2.22
258
259
  signing_key:
259
260
  specification_version: 4
260
261
  summary: CLI to create gonative plugins.