motion-gradle 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion/project/gradle.erb +1 -0
- data/lib/motion/project/gradle.rb +10 -10
- data/lib/motion/project/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: 2db29c4ac2fc229ad9899efe6569f68e21c72909
|
4
|
+
data.tar.gz: dc3a064653c9d84121243e0be0837fcb16796065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af50b4a67a3e044ea7695ef41f3071b03d11f9598b458b11512d0c7f257cd805ddb116ffa6b67a9a02aadd38d498415d84a8f52a9b34da0d596818982e1a4b6a
|
7
|
+
data.tar.gz: 6f6d99a0ee411099f6d50350cde8a79b1fb8f03e9be27092feb09a0ac3a89d4b784ed90ed311d8bc3e145b7db82903cc204c36fa51dd75be43bd3cc17bc2cbce
|
@@ -1,9 +1,9 @@
|
|
1
1
|
unless defined?(Motion::Project::Config)
|
2
|
-
raise
|
2
|
+
raise("This file must be required within a RubyMotion project Rakefile.")
|
3
3
|
end
|
4
4
|
|
5
5
|
if Motion::Project::App.template != :android
|
6
|
-
raise
|
6
|
+
raise("This file must be required within a RubyMotion Android project.")
|
7
7
|
end
|
8
8
|
|
9
9
|
module Motion::Project
|
@@ -53,10 +53,10 @@ module Motion::Project
|
|
53
53
|
unless File.exist?(support_repository)
|
54
54
|
gui_path = File.join(ENV['RUBYMOTION_ANDROID_SDK'], 'tools', 'android')
|
55
55
|
$stderr.puts("[!] To use motion-gradle you need to install `Extras/Android Support Repository`. Open the gui to install it : #{gui_path}")
|
56
|
-
exit
|
56
|
+
exit(1)
|
57
57
|
end
|
58
58
|
|
59
|
-
system
|
59
|
+
system("#{gradle_command} --build-file #{gradle_build_file} generateDependencies")
|
60
60
|
end
|
61
61
|
|
62
62
|
# Helpers
|
@@ -64,7 +64,7 @@ module Motion::Project
|
|
64
64
|
template_path = File.expand_path("../gradle.erb", __FILE__)
|
65
65
|
template = ERB.new(File.new(template_path).read, nil, "%")
|
66
66
|
File.open(gradle_build_file, 'w') do |io|
|
67
|
-
io.puts
|
67
|
+
io.puts(template.result(binding))
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -74,8 +74,8 @@ module Motion::Project
|
|
74
74
|
|
75
75
|
def gradle_command
|
76
76
|
unless system("command -v #{@gradle_path} >/dev/null")
|
77
|
-
$stderr.puts
|
78
|
-
exit
|
77
|
+
$stderr.puts("[!] #{@gradle_path} command doesn’t exist. Verify your gradle installation. Or set a different one with `app.gradle.path=(path)`")
|
78
|
+
exit(1)
|
79
79
|
end
|
80
80
|
|
81
81
|
if ENV['MOTION_GRADLE_DEBUG']
|
@@ -104,7 +104,7 @@ end
|
|
104
104
|
namespace :gradle do
|
105
105
|
desc "Download and build dependencies"
|
106
106
|
task :install do
|
107
|
-
FileUtils.mkdir_p
|
107
|
+
FileUtils.mkdir_p(Motion::Project::Gradle::GRADLE_ROOT)
|
108
108
|
dependencies = App.config.gradle
|
109
109
|
dependencies.install!(true)
|
110
110
|
end
|
@@ -114,8 +114,8 @@ namespace :clean do
|
|
114
114
|
task :all do
|
115
115
|
dir = Motion::Project::Gradle::GRADLE_ROOT
|
116
116
|
if File.exist?(dir)
|
117
|
-
App.info
|
118
|
-
rm_rf
|
117
|
+
App.info('Delete', dir)
|
118
|
+
rm_rf(dir)
|
119
119
|
end
|
120
120
|
end
|
121
121
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-gradle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joffrey Jaffeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: motion-gradle allows RubyMotion Android projects to have access to the
|
14
14
|
Gradle dependency manager.
|