2016-07-30 113 views
1

使用的Android在我的应用程序要使用的github库Github上库: - https://github.com/greenfrvr/hashtag-view安卓:工作室

我知道使用它的一种方式是通过增加gradle这个文件的依赖性为: -

dependencies { 
compile 'com.github.greenfrvr:hashtag-view:1.2.1' 
} 

这种方式我可以使用库,但我想对库代码进行一些更改并根据我的使用进行修改。

所以我的问题是: -

  1. 是合法的,根据我的使用修改的GitHub库代码;
  2. 如果是,那么在机器人工作室

这GitHub的库授权文件说,如何修改库代码---

The MIT License (MIT) 

Copyright (c) 2015 greenfrvr 

Permission is hereby granted, free of charge, to any person obtaining a copy 
of this software and associated documentation files (the "Software"), to deal 
in the Software without restriction, including without limitation the rights 
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies of the Software, and to permit persons to whom the Software is 
furnished to do so, subject to the following conditions: 

The above copyright notice and this permission notice shall be included in all 
copies or substantial portions of the Software. 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE. 

回答

3

是否合法根据修改的GitHub代码库我的用途;

是的,只要您与许可证内联,并为原作者提供适当的归属。

如果是,那么在Android Studio中

如果添加它作为一个依赖你不能修改原始库如何修改库代码。要修改就可以执行下列操作之一:

  • 叉出库并根据需要修改代码,并在你的应用程序
  • 使用从原来的资源库下载代码,在本地修改和使用码。
+0

@AndroidMachine谢谢你的回答。 –

+0

@AndroidMachine分叉库并对java文件进行更改后,它会直接向主分支请求提交更改或为此提交创建一个新分支并启动一个请求。我该怎么办。我怎么能够使用我编辑的代码在android studio –

+0

需要下载使用。分叉只是让你有一个你的变化的远程副本。否则直接从原始存储库下载。 – AndroidMechanic