fastlane-plugin-match_keystore 0.1.11 → 0.1.12

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: cac1a24c49a6233b5fdd03dd8990957f72d394fadbeee931e88a58d0da45db3e
4
- data.tar.gz: 69b75bd951e729c83b16410381553046983438d9bc3d4501598c74b9bdf78370
3
+ metadata.gz: 91d65c828bc6bc3ddd54e953955b1c01545fbd62481cc9aec4322f55aa9e44f8
4
+ data.tar.gz: d60ed3f2b4f0df42f3b09fd2c0bad9990732f1ea609fe88fca0f448dc1740fd8
5
5
  SHA512:
6
- metadata.gz: 0f1f4143bd748ca19d6e48ef5fdbe38ba2f3069731abe810849cf0704ed999d66bc01846ad8cb919d6c6758460b7e54d51286471d43d9e53a6319b25559b93fa
7
- data.tar.gz: ba9f612f57265b7724f88674ee6d187b5b3ddb87758a513b02b172b4372626f7989e5acedde6a288a6d59b9f68596af66c8684cc8b53151260b0a17f5fa5f260
6
+ metadata.gz: 6796ac4aed31fa6d4dee60fb649a21c0c185b6f19734b01256181c4949627f1ec4fe331c27683262f128ab243ed820e8a728d04166dda21390fd212227b6941e
7
+ data.tar.gz: 7ea032e3fdaac9da9281acff0f409ab2f5abf0b1e87e58f5765b853308ddfafcbe3f2efd8530a29245db38e8fa18b740736d7c2311fdb6e4a28142f93fec8416
data/README.md CHANGED
@@ -24,13 +24,18 @@ The keystore properties are encrypted with AES in order to secure sensitive data
24
24
 
25
25
  ```ruby
26
26
  lane :release_and_sign do |options|
27
- gradle(task: "clean")
27
+ gradle(task: "clean")
28
28
  gradle(task: 'assemble', build_type: 'Release')
29
29
 
30
30
  signed_apk_path = match_keystore(
31
31
  git_url: "https://github.com/<GITHUB_USERNAME>/keystores.git", # Please use a private Git repository !
32
32
  package_name: "com.your.package.name",
33
33
  apk_path: "/app/build/outputs/apk/app-release.apk" # Or path without APK: /app/build/outputs/apk/
34
+ # Optional:
35
+ match_secret: "A-very-str0ng-password!", # The secret use to encrypt/decrypt Keystore passwords on Git repo (for CI)
36
+ existing_keystore: "assets/existing-keystore.jks", # Optional, if needed to import an existing keystore
37
+ override_keystore: true, # Optional, override an existing Keystore on Git repo
38
+ keystore_data: "assets/keystore.json" # Optional, all data required to create a new Keystore (use to bypass prompt)
34
39
  )
35
40
 
36
41
  # Return the path of signed APK (useful for other lanes such as `publish_to_firebase`, `upload_to_play_store`)
@@ -97,8 +97,10 @@ module Fastlane
97
97
  if zip_align == true
98
98
  apk_path_aligned = apk_path.gsub(".apk", "-aligned.apk")
99
99
  `rm -f '#{apk_path_aligned}'`
100
+ UI.message("Aligning APK (zipalign): #{apk_path_aligned}")
100
101
  `#{build_tools_path}zipalign 4 '#{apk_path}' '#{apk_path_aligned}'`
101
102
  else
103
+ UI.message("No zip align!")
102
104
  apk_path_aligned = apk_path
103
105
  end
104
106
  apk_path_signed = apk_path.gsub(".apk", "-signed.apk")
@@ -227,13 +229,18 @@ module Fastlane
227
229
  FileUtils.mkdir_p(repo_dir)
228
230
  end
229
231
 
230
- # Cloning GIT remote repository:
232
+ # Cloning/pulling GIT remote repository:
231
233
  gitDir = File.join(repo_dir, '/.git')
232
- unless File.directory?(gitDir)
234
+ if !File.directory?(gitDir)
233
235
  UI.message("Cloning remote Keystores repository...")
234
236
  puts ''
235
237
  `git clone #{git_url} #{repo_dir}`
236
238
  puts ''
239
+ else
240
+ UI.message("Pulling remote Keystores repository...")
241
+ puts ''
242
+ `cd #{repo_dir} && git pull`
243
+ puts ''
237
244
  end
238
245
 
239
246
  # Create sub-directory for Android app:
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module MatchKeystore
3
- VERSION = "0.1.11"
3
+ VERSION = "0.1.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-match_keystore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher NEY
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.6
170
+ rubygems_version: 3.0.3
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Easily sync your Android keystores across your team