代码拉取完成,页面将自动刷新
同步操作将从 ly54561501/Bluetooth 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
//task clean(type: Delete) {
// delete rootProject.buildDir
//}
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
defaultConfig {
applicationId "com.actions.bluetoothbox2"
minSdkVersion 14
targetSdkVersion 22
versionName "1.0.0"
// setProperty("archivesBaseName", "BluetoothBox_v${versionName}_${releaseTime()}")
versionCode 1
}
signingConfigs {
release
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
if (useLocalSource == '1') {
println 'Using local source code'
// debugCompile project(path: ':ibluz', configuration: 'ibluzDebug') //
// releaseCompile project(path: ':ibluz', configuration: 'ibluzRelease') //
} else {
compile 'com.actions:ibluz:1.0.4'
}
// compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:25.0.1'
testCompile 'junit:junit:4.12'
compile files('libs/ibluz 1.1.4.jar')
implementation project(':sm')
}
def File propFile = file('signing.properties');
if (propFile.exists()) {
def Properties props = new Properties()
props.load(new FileInputStream(propFile))
if (props != null
&& props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
def keystoreFile = file(props["STORE_FILE"])
if (keystoreFile.canRead()) {
android.signingConfigs.release.storeFile = keystoreFile
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
println("keystore file not found: " + props["KEYSTORE_FILE"])
android.buildTypes.release.signingConfig = null
}
} else {
println("signing.properties found but some entries missing")
android.buildTypes.release.signingConfig = null
}
} else {
println("signing.properties not found ")
android.buildTypes.release.signingConfig = null
}
//def gitSha() {
// return 'git rev-parse --short HEAD'.execute().text.trim().substring(0,4)
//}
def releaseTime() {
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
}
def gitCommitCount() {
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-list', '--count', 'HEAD'
standardOutput = stdout
}
def commitCount = stdout.toString().trim().toInteger()
return commitCount
}
catch (ignored) {
return 0
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。