RePlugin/replugin-host-library/replugin-host-lib/build.gradle
2017-07-10 22:10:15 +08:00

57 lines
1.5 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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'