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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b25bb9aad3d751131146290ee0d0069411cc4ea4
4
- data.tar.gz: fede843cbfae8a8631f2a6f01b330c0d4d09f3c2
3
+ metadata.gz: 63aa57b152824a80a083cdc06d0a755d7d52687d
4
+ data.tar.gz: 604829b968669639ad5f72573b66264a9b13646b
5
5
  SHA512:
6
- metadata.gz: 71b214b0bfaacc387e7766de7074bda21df73d3df48d9757e06fcfb6c772a70a5e1dc7e1481c43a62c3de65326dba673875c3a685b8785344b2e9f67b4b83d4b
7
- data.tar.gz: fc0bf8bc51fde5fc0a73102b108665d16dccfc77e9f2187354c691cf37cc2a8640ba2faf67c2821fae4fbecfdf7bf6c88a896f48470d899743182b948a35c00b
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
- if File.exists?(gradle_file)
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 File.exists?(gradle_file)
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
@@ -1,3 +1,3 @@
1
1
  module HighFive
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
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.8
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-20 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json