Git Product home page Git Product logo

androidspi's Introduction

基于java SPI机制字节码组件化实现组件间通信

gradle依赖更新:

  1.项目依赖的相同版本远程包如果有更新,gradle是不会自动更新下载依赖的,
  在执行build任务时会解析项目配置的依赖并按照配置的仓库去搜寻下载这些依赖。
  默认情况下,Gradle会依照Gradle缓存(默认缓存位置:.../.gradle/caches目录下)
  ->你配置的仓库的顺序依次搜寻这些依赖,并且一旦找到就会停止搜索。
  如果想要忽略本地缓存每次都进行远程检索可以通过在执行命令时执行
  ./gradlew build --refresh-dependencies命令强制刷新依赖。
  
  2.另外也可以通过下面的方法为缓存指定一个时效去检查远程仓库的依赖版本,只对SNAPSHOT(changing)和+号(dynamic)版本,
  默认是24小时自动更新。
configurations.all {
  //每隔1分钟检查远程依赖是否存在更新
  resolutionStrategy.cacheChangingModulesFor 1, 'minutes'
  // 采用动态版本声明的依赖缓存1分钟
  resolutionStrategy.cacheDynamicVersionsFor 1, 'minutes'
}
  3.gradle/pushAarToMaven.gradle 文件用来上传aar到maven仓库中,在控制台执行:./gradlew uploadArchives即可完成上传。
  
  4.jcenter网址:https://bintray.com/stormzslwly/OpenRepository,登陆注册的账户即可。
  pushAarToJCenter.gradle是上传到JCenter仓库的脚本. 在要上传的module中引入即可,
  在控制套执行:./gradlew :testuploadaartojcenter:bintrayUpload
  
  5.maven仓库托管地址:https://bintray.com/stormzslwly,
  JCenter仓库地址:https://bintray.com/fastenorg,
  该项目相关的地址:https://bintray.com/beta/#/fastenorg/androidSPI?tab=packages
android基于spi实现方式用法:
1.在根工程中添加:classpath 'com.fasten.component.spi:plugin:1.0.0'

2.在app主工程中引入插件:apply plugin :'com.fasten.component.spi'

1.新建一个密钥: gpg --generate-key

2.查看已生成的密钥:gpg -k

3.导出私钥文件:gpg --export-secret-keys [密钥指纹] > secret.gpg

[gpg博客参考](https://segmentfault.com/a/1190000018026290)

androidspi's People

Contributors

stormzsl avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.