mirror of
https://gitee.com/replugin/RePlugin.git
synced 2024-12-04 20:57:54 +08:00
57 lines
1.5 KiB
Groovy
57 lines
1.5 KiB
Groovy
/*
|
||
* Copyright (C) 2005-2017 Qihoo 360 Inc.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||
* use this file except in compliance with the License. You may obtain a copy of
|
||
* the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed To in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||
* License for the specific language governing permissions and limitations under
|
||
* the License.
|
||
*/
|
||
|
||
/**
|
||
* @author RePlugin Team
|
||
*/
|
||
apply plugin: 'com.android.library'
|
||
|
||
version = "2.1.4"
|
||
group = 'com.qihoo360.replugin' // 组名
|
||
|
||
android {
|
||
compileSdkVersion 25
|
||
buildToolsVersion '25.0.2'
|
||
|
||
defaultConfig {
|
||
minSdkVersion 9
|
||
targetSdkVersion 25
|
||
|
||
testVariants.all {
|
||
it.mergedFlavor.manifestPlaceholders = [persistentName: ":GuardService"]
|
||
}
|
||
|
||
consumerProguardFiles 'replugin-rules.pro'
|
||
}
|
||
|
||
lintOptions {
|
||
abortOnError false
|
||
}
|
||
|
||
// 务必要加上此段话,这样默认会出Debug版AAR,会带上日志方便定位
|
||
defaultPublishConfig "debug"
|
||
}
|
||
|
||
dependencies {
|
||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||
|
||
// 以“占位符”(Provided)的方式来引用support-v4,不会编入AAR
|
||
// 但宿主需要支持Support-v4(至少应支持LocalBroadcastManager)
|
||
provided 'com.android.support:support-v4:25.2.0'
|
||
}
|
||
|
||
apply from: 'bintray.gradle'
|