Forwarded from Airsaid
想请问一下大家,我现在正在开发一个 SDK 提供给对方使用。这个 SDK 是一个 library module,然后它也依赖了其他的 module。
现在问题是,打包 AAR 只会包含当前项目的代码和资源,这就会导致使用方在使用时会无法找到 SDK 所依赖 module 中的类或资源。
我现在的解决方式是,将这些 module 通过 maven-publish plugin 都上传到 maven 仓库,这块通过 https://developer.android.com/studio/build/maven-publish-plugin 来做的,发现不用手动配置 pom 文件这些还挺方便的,但是默认都是 runtime,还需要改为 compile 才行。
上传到 maven 后,使用方直接通过远程依赖使用 SDK。不知道这种方式有没有什么坑或不妥的?第一次开发 SDK,希望知道这样做对不对。
现在问题是,打包 AAR 只会包含当前项目的代码和资源,这就会导致使用方在使用时会无法找到 SDK 所依赖 module 中的类或资源。
我现在的解决方式是,将这些 module 通过 maven-publish plugin 都上传到 maven 仓库,这块通过 https://developer.android.com/studio/build/maven-publish-plugin 来做的,发现不用手动配置 pom 文件这些还挺方便的,但是默认都是 runtime,还需要改为 compile 才行。
上传到 maven 后,使用方直接通过远程依赖使用 SDK。不知道这种方式有没有什么坑或不妥的?第一次开发 SDK,希望知道这样做对不对。
Android Developers
Publish your library | Android Studio | Android Developers
Publishing an Android library involves preparing it for release, configuring publication variants and test fixtures, and distributing it.
Forwarded from Mario
This media is not supported in your browser
VIEW IN TELEGRAM
我想让 DialogFragment 弹起来的时候和 BottomsheetDialogFragment 那样,状态栏图标也被蒙层覆盖,请问该去动哪个属性呢?
Forwarded from Rikka
有看到里面有
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);Forwarded from Mario
看来这个
OnApplyWindowInsetListener的回调的调用时机,还要深入研究下
Forwarded from Deleted Account
JNI DETECTED ERROR IN APPLICATION: the return type of CallVoidMethodV does not match void xxx