android依赖项管理器,用于没有打包为.jar或.aar-paladin的库,它像老板一样处理你的依赖项。
paladin的Python项目详细描述
圣骑士-v0.6.1
android依赖关系管理器,用于未打包为.jar或 .aar-圣骑士像老板一样对待你的属地。
如果你有任何反馈,请不要犹豫在Twitter上联系我 [@jonathonstaff](https://twitter.com/jonathonstaff)。我仍然很积极 开发这个,我知道有一些限制。
概述
paladin旨在帮助android开发人员在 他们的项目在Maven Central上没有打包为.jar或.aar。这是严格为开发人员设计的 使用android工作室和gradle。在使用圣骑士添加库之前, 我强烈建议您搜索maven中央存储库(查看 Gradle, please),因为这将 通常提供合并外部库的最佳方法。
也就是说,上传一个图书馆到Maven Central是不可能的 因此,开发商常常完全放弃这个过程 托管一个带有源代码的公共repo。的Facebook SDK for Android 举个例子,(你在facebook上很丢脸,你比别人更有能力!)不是 在Maven Central上可用,它强制开发人员克隆 手动导入库。
圣骑士为你工作,非常类似于 CocoaPods用于objective-c开发。一个 /armory文件夹是在项目的根目录中创建的,并且 所有的圣骑士图书馆都存放在那里。
安装
运行:
$ pip install paladin
或者下载源代码并运行:
$ python setup.py install
用法
圣骑士需要命令才能执行。可以运行命令 使用-v,--verbose标志或-q,--quiet标志进行更改 在命令行中打印的输出级别。
创建orders
在项目的根目录中创建一个名为orders
的json文件$ vim orders
格式如下:
{ "dependencies": [ { "name": "Android-SmoothSeekBar", "url": "https://github.com/Indatus/Android-SmoothSeekBar.git" }, { "name": "Android-SwipeControl", "url": "https://github.com/Indatus/Android-SwipeControl.git" } ] }
必需属性:
- "url"(包含依赖项的git repo的url)
未来属性:
- "commit"
- "tag"
- "branch"
如果你在命令中没有指定"name",圣骑士会这样做 你。
安装依赖项
$ paladin install
您应该可以看到shell窗口中显示的进程。一旦这个有了 完成后,打开android studio并sync你的毕业设计。
删除库
只需从 orders并重新运行:
$ paladin install
如果要删除圣骑士安装的所有依赖项,请运行:
$ paladin removeall
许可证
Copyright 2014 Jonathon Staff Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.