high_five 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/high_five/thor/tasks/dist.rb +4 -2
- data/lib/high_five/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63aa57b152824a80a083cdc06d0a755d7d52687d
|
4
|
+
data.tar.gz: 604829b968669639ad5f72573b66264a9b13646b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319662d6e39d5b80198056d1a4a8002566f83118a6c9ed6415c0038ea98189428e2ad89c401fe3b6f9b32531760027f00067c3a7923b70a2c750abc96e773894
|
7
|
+
data.tar.gz: 9818ccafd9333cf3087d0c36f2458d4d0f9f4849de378372395091fbeb1e6a904e8e1ec6c37d17edbee4e69ae4f22fc81206e4f4bd648cebb26c0a52d723d357
|
@@ -19,6 +19,7 @@ module HighFive
|
|
19
19
|
method_option :environment, :aliases => "-e", :desc => "Environemnt [production|development]", :default => "development"
|
20
20
|
method_option :"ant-flags", :desc => "Additional flags to pass directly to ant (android only)"
|
21
21
|
method_option :platform_path, :desc => "Path to ios or android directory"
|
22
|
+
method_option :ant, type: :boolean, :desc => "Force using ant to build"
|
22
23
|
def dist(platform)
|
23
24
|
@environment = options[:environment]
|
24
25
|
@output_file_name = options[:output_file_name]
|
@@ -67,7 +68,8 @@ module HighFive
|
|
67
68
|
ant_flags = options[:"ant-flags"] || ""
|
68
69
|
system_or_die("android update project --path #{android_path} --subprojects")
|
69
70
|
gradle_file = File.join(android_path, "build.gradle")
|
70
|
-
|
71
|
+
gradle = File.exists?(gradle_file) && !options[:ant]
|
72
|
+
if gradle
|
71
73
|
system_or_die("gradle -b #{gradle_file} clean assembleRelease")
|
72
74
|
else
|
73
75
|
system_or_die("ant -file '#{android_path}/build.xml' clean release #{ant_flags}")
|
@@ -76,7 +78,7 @@ module HighFive
|
|
76
78
|
android_name = HighFive::AndroidHelper.project_name_from_build_xml("#{android_path}/build.xml")
|
77
79
|
|
78
80
|
if @output_file_name
|
79
|
-
if
|
81
|
+
if gradle
|
80
82
|
say "copying final build #{android_path}/build/outputs/apk/android-release.apk -> #{android_path}/build/outputs/apk/#{@output_file_name}.apk"
|
81
83
|
FileUtils.cp("#{android_path}/build/outputs/apk/android-release.apk", "#{android_path}/build/outputs/apk/#{@output_file_name}.apk")
|
82
84
|
else
|
data/lib/high_five/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: high_five
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|