【仅供内部供应商使用,不提供对外解答和培训】
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
compile fileTree(include: ['*.jar'], dir: 'libs') // 依赖部分jar包文件 compile ('com.fr.android:bi-sdk:+', {// BI功能对应模块. exclude group: 'com.fr.android', module: 'reportlib' exclude group: 'com.fr.android', module: 'platformlib' exclude group: 'com.fr.android', module: 'corelib' exclude group: 'com.fr.android', module: 'locationlib' exclude group: 'com.fr.android', module: 'gislib' exclude group: 'com.fr.android', module: 'vpnlib' exclude group: 'com.fr.android', module: 'xglib' // 可能的冲突版本 需要排除 // exclude group: 'com.google.zxing', module: 'core' // exclude group: 'com.jiechic.library', module: 'xUtils' // exclude group: 'com.android.support', module: 'appcompat-v7' // exclude group: 'com.android.support', module: 'recyclerview-v7' }) compile('com.fr.android:report-sdk:+', {// 报表对应模块. exclude// group: 'com.fr.android', module: 'reportlib' 可能的冲突版本 需要排除 // exclude group: 'com.frgoogle.androidzxing', module: 'platformlibcore' // exclude group: 'com.frjiechic.androidlibrary', module: 'corelibxUtils' // exclude group: 'com.frandroid.androidsupport', module: 'locationlibappcompat-v7' // exclude group: 'com.frandroid.androidsupport', module: 'gislibrecyclerview-v7' }) // 根据需要加载对应的插件模块 exclude group:compile 'com.fr.android:location:+', module: 'vpnlib' // 定位插件,获取经纬度 exclude group:compile 'com.fr.android:vpn:+', module: 'xglib' // VPN插件,登录Sangfor 可能的冲突版本VPN 需要排除服务器 // exclude group: compile 'com.google.zxing', module: 'core' // fr.android:gis:+' exclude group: 'com.jiechic.library', module: 'xUtils' // GIS插件,显示GIS地图图表 compile exclude group: 'com.fr.android.support', module: 'appcompat-v7' //:push-xg:+' exclude group: 'com.android.support', module: 'recyclerview-v7' })// 推送插件, 集成信鸽推送服务 |
添加后,build.gradle如下所示
4. 在该模块清单文件的application标签中添加属性
...
如上,工程配置完毕,FR SDK已经成功添加到您的项目中,之后可以直接引用FR相关的API,进行集成开发。您也可以参考OEM_demo和SDK_demo中的项目结构和build.gradle文件,进行工程配置。gradle文件,进行工程配置。各插件模块的使用,请参考相关插件文档。