[android] Gradle Tutorial #2 Dependency, Android Libraries and Multi-project setup -external library jar 를 사용하려면 compile configuration 을 사용하면 된다. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) // api 와 implementation 으로 바뀌었다.} android { ...} -compile 은 main app 을 compile 한다.compile 되는 모든 것은 compile classpath 로 잡히고, final APK 에 포함이 된다. 다음과 같은 compile configuration 을 추가할 수 있고,buildType 을 추가하면 자동으로 compile 이 .. 2018. 10. 5. [android] library 를 dependency 에 명시할 수 있게 배포하기 [android] library 를 dependency 에 명시할 수 있게 배포하기 https://medium.com/dualcores-studio/make-an-android-custom-view-publish-and-open-source-99a3d86df228#.5v8a0pl9i1. JFrog Bintary 에 가입하고 로그인하라 https://bintray.com/ 2. Profile page 에 가서 Repository, Package, 그리고 Version 을 만들라. Package 는 Github 와 연동되어 땡겨오는 UI 가 제공된다. 3. aar 파일을 생성해서 upload 하라. https://github.com/blundell/release-android-library 를 사용하여 이를.. 2018. 3. 11. 반응형 이전 1 다음