【仅供内部供应商使用,不提供对外解答和培训】

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
title添加该模块依赖包
linenumberstrue
tools:replace="android:allowBackup, android:label, android:icon, android:theme"   // 替换SDK清单文件中allowBackup, label, icon, theme等属性的值

5. 若您的项目本身已经依赖的某一版本的appcompat-v7, recyclerview-v7, zxing, 可以通过gradle的exclude方法排除FR SDK中相关依赖项目本身需要做的工程引用. 其中core. platform为核心模块,  bi report为顶层模块.  vpn location xg push为可选模块.

Code Block
languagegroovy
title添加该模块依赖包
linenumberstrue
compile 'com.androidgoogle.supportzxing:appcompat-v7core:25.3.1.0'// 内部使用
compile 'com.jiechic.library:xUtils:2.6.14'
compile 'com.android.support:recyclerviewappcompat-v7:2523.32.10'
compile 'com.googleandroid.zxingsupport:corerecyclerview-v7:323.14.0'

compile fileTree(include: ['*.jar'], dir: 'libs')

compile ('com.fr.android:report-sdk:+', {// 报表功能对应模块.
    transitive exclude group: 'com.android.support', module: 'appcompat-v7'
    exclude group: 'com.android.support', module: 'recyclerview'= false
})
compile ('com.fr.android:bi-sdk:+', {// BI功能对应模块.
    transitive = false
})
compile ('com.fr.android:platform:+', {// 核心功能 框架
    exclude group: transitive = false
})
compile ('com.google.zxing', module:'core'fr.android:core:+', { // 核心模块.
    transitive = false  // 去除对应lib内部引用
})

compile ('com.fr.android:bi-sdkgis:+', {// 可选插件 Gis地图功能.
    exclude group: transitive = false
})
compile ('com.android.supportfr.android:location:+', module: 'appcompat-v7'{// 可选插件 定位功能.
    exclude group: 'com.android.support', module: 'recyclerview'transitive = false
})
compile ('com.fr.android:vpn:+', {// 可选插件 vpn功能.
    exclude group: transitive = false
})
compile ('com.google.zxing', module:'core'fr.android:push-xg:+', {// 可选插件 信鸽推送功能.
    transitive = false
})


如上,工程配置完毕,FR SDK已经成功添加到您的项目中,之后可以直接引用FR相关的API,进行集成开发。您也可以参考OEM_demo和SDK_demo中的项目结构和build.gradle文件,进行工程配置。