buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// need delete in gradle3.x version
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
Module build.gradle文件:
apply plugin: 'com.android.library'
apply plugin: 'android-apt'
android {
// ...
}
configurations {
provided
}
dependencies {
// ...
// Fyber Annotations
provided 'com.fyber:fyber-annotations:1.3.0'
apt 'com.fyber:fyber-annotations-compiler:1.4.0'
// ...
}
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
Module build.gradle文件:
apply plugin: 'com.android.library'
android {
// ...
// add this code to enable annotationProcessor
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
dependencies {
// ...
// Fyber Annotations
compileOnly 'com.fyber:fyber-annotations:1.3.0'
annotationProcessor 'com.fyber:fyber-annotations-compiler:1.4.0'
// ...
}
@FyberSDK
public class MainActivity extends BaseActivity<MainPresenter, MainModel> implements
IBannerDelegate, IMainView,
View.OnClickListener {
//....
}
| 新配置 | 对应的过时配置 | 描述 |
|---|---|---|
| implementation | compile | module编译时可用,module的使用者运行时可用,对于大量使用library的项目,可以显著提高编译时间,因为它可以减少构建系统重新编译一些module.大多数app/test因为使用这种配置 |
| api | compile | module编译时可用,module的使用者编译和运行时可用,这个和过时的compile一样的。一般是library模块会使用它,如果app模块一定要使用它,必须是在它想暴露api给test模块使用 |
| compileOnly | provided | module 编译时可用,但是module的使用者,在编译和运行时均不可用。跟过时的provided一样的。 |
| runtimeOnly | apk | module和它的使用者,运行时可用.它跟过时的apk是一样. |
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有