fastlane-plugin-android_versioning 0.4.0 → 0.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c15697ef9a7304587fb5cbdbf519012d6cceb0d
|
4
|
+
data.tar.gz: f7ac71706010a1df57618e567bf7899b10b938ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce8936e9d2c2db095bc2a1986de3e73c3973800e63d64453220cd03e59e48b5276668ffb12bbc763a5dd52ef994b3ef97733bb89364a07e719a8df9603ff745a
|
7
|
+
data.tar.gz: 2006d4219e8775f5010fcf642a0ece4787965569283439bfe6c3c5050aa5fda263ceb4db13f3d7dfcbd34c8da397c0d1ca96926381ac849af42dd06b86c6195d
|
@@ -9,7 +9,16 @@ module Fastlane
|
|
9
9
|
class IncrementVersionCodeAction < Action
|
10
10
|
def self.run(params)
|
11
11
|
current_version_code = GetVersionCodeAction.run(params)
|
12
|
-
|
12
|
+
|
13
|
+
new_version_code =
|
14
|
+
if params[:version_code].nil?
|
15
|
+
current_version_code.to_i + 1
|
16
|
+
elsif params[:version_code] == -1
|
17
|
+
((Time.now.to_f * 1000).to_i / (60 * 1000)).to_i
|
18
|
+
else
|
19
|
+
params[:version_code].to_i
|
20
|
+
end
|
21
|
+
|
13
22
|
SetValueInBuildAction.run(
|
14
23
|
app_project_dir: params[:app_project_dir],
|
15
24
|
key: "versionCode",
|
@@ -24,17 +33,17 @@ module Fastlane
|
|
24
33
|
#####################################################
|
25
34
|
def self.available_options
|
26
35
|
[
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
FastlaneCore::ConfigItem.new(key: :app_project_dir,
|
37
|
+
env_name: "ANDROID_VERSIONING_APP_PROJECT_DIR",
|
38
|
+
description: "The path to the application source folder in the Android project (default: android/app)",
|
39
|
+
optional: true,
|
40
|
+
type: String,
|
41
|
+
default_value: "android/app"),
|
42
|
+
FastlaneCore::ConfigItem.new(key: :version_code,
|
43
|
+
env_name: "ANDROID_VERSIONING_VERSION_CODE",
|
44
|
+
description: "Change to a specific version (optional)",
|
45
|
+
optional: true,
|
46
|
+
type: Integer)
|
38
47
|
]
|
39
48
|
end
|
40
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-android_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu OHTAKE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|