fastlane-plugin-secrets 0.0.2 → 0.0.3

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: 71871f7f7069edee098828c8c7766f9b788c33a5da773b3ef5afac7c04539257
4
- data.tar.gz: 93b56b990a315b54421c6ee081fc49a12265e5b4de4a75a17d8d59012ba3796d
3
+ metadata.gz: 1952c89329b1108e7ecd812bddb25a9b039b030f3dc8e49ab5ac57bf4ee6f899
4
+ data.tar.gz: 46ab9387e2830cc420dd234b502633d5d27afeaee6bf8cb5be78e26a5201d79f
5
5
  SHA512:
6
- metadata.gz: cf7e636a0ff13dbeb7e853859c8bdade9cb96238f7d77cf5e6a168f96c718b6e3195e97201304ca369f60bb66e6e34385948767866e322d639b8d57a2970f14e
7
- data.tar.gz: 180057515b63dda145c3b61629dd15f09e81e6276877abde5dacf73e82e20f50c805bf93b3b04ae6287b1d0f672e0fde4038543e8fb4e4cfe9d049f99d2947f1
6
+ metadata.gz: 868cef63f20765b9ac8cd1ce1fbd74a4abc86d7c760109909db1256ed461d5ad627fc0d895a4ca36465d6613194d274767a31ae33776bd0938dff7a228234ba3
7
+ data.tar.gz: ccc1c623e80e0d58cf678729943d69c5c78e30dcff792abc8f715833cc82f87a8319a2e5996e1aae28d30be2511dd9b955bd2650cc169d7b26f134df0d55a262
@@ -10,7 +10,8 @@ module Fastlane
10
10
  language = params[:language]
11
11
  secrets_dir_path = params[:secrets_dir_path]
12
12
  secrets_dict = params[:secrets]
13
- config_yml = {"MobileSecrets" => {"hashKey"=>hash_key,"language"=>language, "secrets"=>secrets_dict}}.to_yaml
13
+ files = params[:files]
14
+ config_yml = {"MobileSecrets" => {"hashKey"=>hash_key,"language"=>language, "secrets"=>secrets_dict, "files"=>files}}.to_yaml
14
15
 
15
16
  MobileSecrets::SecretsHandler.new.encrypt "#{secrets_dir_path}/secrets.gpg", config_yml, secrets_dir_path
16
17
  end
@@ -35,7 +36,7 @@ module Fastlane
35
36
  def self.available_options
36
37
  [
37
38
  FastlaneCore::ConfigItem.new(key: :hash_key,
38
- description: "Key that will be used to hash the secrets using XOR technique",
39
+ description: "Key that will be used to hash the secrets using XOR technique and encrypt files with AES. If files are encrypted the password must have 32 characters as an AES standard.",
39
40
  is_string: true),
40
41
  FastlaneCore::ConfigItem.new(key: :language,
41
42
  description: "Source code language, currently supported - [swift]",
@@ -46,6 +47,10 @@ module Fastlane
46
47
  FastlaneCore::ConfigItem.new(key: :secrets,
47
48
  description: "Key-value dictionary of secrets",
48
49
  type: Hash,
50
+ optional: true),
51
+ FastlaneCore::ConfigItem.new(key: :files,
52
+ description: "Array of files that will be encrypted",
53
+ type: Array,
49
54
  optional: true)
50
55
  ]
51
56
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Secrets
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-secrets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Cermak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-05 00:00:00.000000000 Z
12
+ date: 2019-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mobile-secrets
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.0.5
20
+ version: 0.0.8
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.0.5
27
+ version: 0.0.8
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement