在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):HipByte/motion-gradle开源软件地址(OpenSource Url):https://github.com/HipByte/motion-gradle开源编程语言(OpenSource Language):Ruby 80.0%开源软件介绍(OpenSource Introduction):motion-gradlemotion-gradle allows RubyMotion projects to integrate with Gradle to manage your dependencies. InstallationYou need to have gradle installed:
And the gem installed:
Or if you use Bundler: gem 'motion-gradle' You also need to install Then, add the following lines to your ~/.profile file
( SetupEdit the require 'rubygems'
require 'motion-gradle' DependenciesFrom version 1.1.0 you can use the same gradle dependency string that Java users use. Motion::Project::App.setup do |app|
# ...
app.gradle do
dependency 'net.sf.ehcache:ehcache:2.9.0'
dependency 'com.joanzapata.pdfview:android-pdfview:1.0.+@aar'
dependency 'com.danikula:videocache:2.3.1' do
exclude module: 'android', group: 'com.google.android'
end
end
end ConfigurationIf the Motion::Project::App.setup do |app|
# ...
app.gradle.path = '/some/path/gradle'
end Repositories :Motion::Project::App.setup do |app|
# ...
app.gradle do
repository 'https://bintray.com/bintray/jcenter'
repository 'http://dl.bintray.com/austintaylor/gradle'
end
end Java librariesMotion::Project::App.setup do |app|
# ...
app.gradle do
library 'mylib', path: '/Users/joffreyjaffeux/Projects/mylib'
end
end If relative path is used it's relative to your Rakefile, if you don't specify a path it will search in your_app/my_lib. PluginsMotion::Project::App.setup do |app|
# ...
app.gradle do
plugin 'com.google.gms.google-services'
end
end ClasspathsMotion::Project::App.setup do |app|
# ...
app.gradle do
classpath 'com.google.gms:google-services:1.3.0-beta1'
end
end AidlMotion::Project::App.setup do |app|
# ...
app.gradle do
aidl 'com.android.vending.billing', './vendor/IInAppBillingService.aidl'
end
end TasksTo tell motion-gradle to download your dependencies, run the following rake task:
After a That’s all. Known issues
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论