在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AghilasMessara/android-native-dependencies开源软件地址(OpenSource Url):https://github.com/AghilasMessara/android-native-dependencies开源编程语言(OpenSource Language):Groovy 95.4%开源软件介绍(OpenSource Introduction):OverviewThis Gradle plugin allows you to automatically resolve and add your native dependencies to UsageApply the plugin in your buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.nabilhachicha:android-native-dependencies:0.1.2'
}
}
apply plugin: 'android'
apply plugin: 'android-native-dependencies'
native_dependencies {
artifact 'com.snappydb:snappydb-native:0.2.+:armeabi'
artifact 'com.snappydb:snappydb-native:0.2.+:x86'
}
dependencies {
//regular Jar dependencies ...
}
Convention
//adding x86 classifier will resolve only intel's (.so) lib
native_dependencies {
artifact 'com.snappydb:snappydb-native:0.2+:x86'
}
//omit the classifier will resolve all supported architectures
native_dependencies {
artifact 'com.snappydb:snappydb-native:0.2+'
}
//adding x86 classifier will resolve only intel's (.so) lib
native_dependencies {
artifact group: 'com.snappydb', name: 'snappydb-native', version: '0.2+', classifier: 'x86'
}
//omit the classifier will resolve all supported architectures
native_dependencies {
artifact group: 'com.snappydb', name: 'snappydb-native', version: '0.2+'
} In both notations, classifier is optional. this means that when omitted, the plugin try to resolve the artifact for all architectures:
You may want to disable the plugin from prefixing the resolved artifact with native_dependencies {
artifact ('com.snappydb:snappydb-native:0.2.+:armeabi') {
addLibPrefixToArtifact=false
}
} in this example the ARM dependency will have the name TasksThe plugin adds the Note:The plugin uses Gradle incremental task system to run faster if the configuration didn't change since the last build. License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论