omt-cli 1.6.8 → 1.6.9

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
  SHA1:
3
- metadata.gz: bc5c18aba848042d2c7c5f287b27c4547ed340ef
4
- data.tar.gz: a41646ff1df2d214e97014c6e3a3324b7a4550d0
3
+ metadata.gz: 90ca0d3326cb146423a45cddc89b5871cd244273
4
+ data.tar.gz: 131a679c2c0db9832ba0aadd1ce4b803e5fa15d0
5
5
  SHA512:
6
- metadata.gz: e37e2201bfbcb3446c0d61c7b1be8f7a1d9c694f9e2beafa2cdd1b2f1a3147d1e32a2f7ca82f0c83b69d603002ea98a07b2ddf1ef67caf1d076497f6f20f63dd
7
- data.tar.gz: 277d220c813c7cd1d3fdcf1ad017df109dfe8dc367c35df8751d995469620588d608f54ac5fe424799528ea38f85bd8ec7f7888d77604583cb1f495e22ddd2da
6
+ metadata.gz: b9ebe9e2bd30e469aed7614d2ae6e29073515ff457596386287d2850420b453640688e9ad245a5f1adee9e6db1bdf295b1857d250d6eb3561f6523cc354be827
7
+ data.tar.gz: f6dd681cffb8715434dcfa9014c4d8e19d51b81e7f589c5b26627a18bc045659f61bfb20f06a3f85ebc71a3e4fa575b77d8cf4943658ed9044e1a31d792e83df
@@ -6,7 +6,7 @@ module FIR
6
6
  APP_INFO_PATH = "#{ENV['HOME']}/.omt-cli-app"
7
7
  API_YML_PATH = File.expand_path('../../', __FILE__) + '/api.yml'
8
8
  XCODE_WRAPPER_PATH = File.expand_path('../../', __FILE__) + '/xcode_wrapper.sh'
9
- APP_FILE_TYPE = %w(.ipa .apk .obb).freeze
9
+ APP_FILE_TYPE = %w(.ipa .apk .aab .zip).freeze
10
10
 
11
11
  def fir_api
12
12
  @fir_api ||= YAML.load_file(API_YML_PATH).deep_symbolize_keys[:fir]
data/lib/fir/util/info.rb CHANGED
@@ -36,21 +36,32 @@ module FIR
36
36
  info
37
37
  end
38
38
 
39
- def obb_info(apk_path, options = {})
39
+ def aab_info(apk_path, options = {})
40
40
  path = apk_path.split("/")
41
41
  filename = path[-1]
42
- version = filename.gsub(/\D/, "")
42
+ fileinfo = filename.split("_")
43
43
 
44
- identifier = filename.sub!(/main./, "")
45
- identifier = filename.sub!(/#{version}./, "")
46
- identifier = filename.sub!(/.obb/, "")
47
44
  @info ||= {
48
45
  type: 'android',
49
- identifier: identifier,
50
- name: 'OBB',
51
- build: version,
52
- version: version
46
+ identifier: fileinfo[0],
47
+ name: 'AAB',
48
+ build: fileinfo[2],
49
+ version: fileinfo[1]
50
+ }
51
+ end
52
+
53
+ def zip_info(apk_path, options = {})
54
+ path = apk_path.split("/")
55
+ filename = path[-1]
56
+ fileinfo = filename.split("_")
57
+
58
+ @info ||= {
59
+ type: 'android',
60
+ identifier: fileinfo[0],
61
+ name: 'APKS',
62
+ build: fileinfo[2],
63
+ version: fileinfo[1]
53
64
  }
54
65
  end
55
66
  end
56
- end
67
+ end
@@ -46,6 +46,7 @@ module FIR
46
46
 
47
47
  def upload_app_binary
48
48
  logger.info 'Uploading app binary......'
49
+ print uploading_binary_info
49
50
  uploaded_info = post(fir_api[:app_my_url], uploading_binary_info)
50
51
  return if uploaded_info[:is_completed]
51
52
  logger.error 'Upload app binary failed'
@@ -87,7 +88,7 @@ module FIR
87
88
  end
88
89
 
89
90
  def fetch_uploading_info
90
- logger.info "Fetching #{@app_info[:identifier]}@fir.im uploading info......"
91
+ logger.info "Fetching #{@app_info[:identifier]}@onemt uploading info......"
91
92
  logger.info "Uploading app: #{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
92
93
 
93
94
  post fir_api[:app_my_version], type: @app_info[:type],
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.6.8'
4
+ VERSION = '1.6.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omt-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.8
4
+ version: 1.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler