mirror of
https://github.com/leanote/leanote-android.git
synced 2026-01-13 07:03:54 +08:00
Corrected the title of the permission requesting dialog in LaunchActivity Add a widget from Android Studio widget template add the layout of widget , add the support Android Studio 3.0 fix the support Android Studio 3.0 Completed the development of app widget to show the recent blogs. chance the previewImage of app widget fixed the bug that occurred when there were less than 30 notes update build tools
111 lines
3.8 KiB
Groovy
111 lines
3.8 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
|
|
}
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
maven { url "https://www.jitpack.io" }
|
|
maven { url "http://dl.bintray.com/piasy/maven" }
|
|
}
|
|
apply plugin: 'com.android.application'
|
|
|
|
def dbflow_version = "4.0.0-beta2"
|
|
def ciName = isEmpty(System.getenv("TRAVIS_TAG")) ? "Staging" : System.getenv("TRAVIS_TAG")
|
|
def ciCode = isEmpty(System.getenv("TRAVIS_BUILD_NUMBER")) ? 1000 : Integer.valueOf(System.getenv("TRAVIS_BUILD_NUMBER"))
|
|
def buglyPrdKey = isEmpty(System.getenv('BUGLY_PRD')) ? "" : System.getenv('BUGLY_PRD')
|
|
def isEmpty(String str) {
|
|
return str == null || "".equals(str);
|
|
}
|
|
|
|
android {
|
|
signingConfigs {
|
|
config {
|
|
keyAlias System.getenv('KEY_ALIAS')
|
|
keyPassword System.getenv('KEY_PWD')
|
|
storeFile file(projectDir.parentFile.absolutePath + '/leanote-android-new.jks')
|
|
storePassword System.getenv('KEYSTORE_PWD')
|
|
}
|
|
}
|
|
compileSdkVersion 25
|
|
buildToolsVersion '26.0.2'
|
|
defaultConfig {
|
|
applicationId "com.leanote.android"
|
|
minSdkVersion 19
|
|
targetSdkVersion 23
|
|
versionCode ciCode
|
|
versionName ciName
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
buildConfigField "String", "BUGLY_KEY", String.format("\"%s\"", buglyPrdKey)
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE.txt'
|
|
exclude 'META-INF/NOTICE.txt'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.config
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
testCompile 'junit:junit:4.12'
|
|
compile 'com.android.support:appcompat-v7:25.3.0'
|
|
compile 'com.android.support:support-v4:25.3.0'
|
|
compile 'com.android.support:design:25.3.0'
|
|
compile 'com.android.support:recyclerview-v7:25.3.0'
|
|
compile 'com.android.support:cardview-v7:25.3.0'
|
|
|
|
compile 'com.jakewharton:butterknife:8.4.0'
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
|
|
|
|
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.4.1'
|
|
compile group: 'com.squareup.retrofit2', name: 'adapter-rxjava', version: '2.1.0'
|
|
|
|
annotationProcessor "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
|
|
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
|
|
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
|
|
|
|
compile 'org.greenrobot:eventbus:3.0.0'
|
|
|
|
compile 'io.reactivex:rxandroid:1.2.1'
|
|
compile 'io.reactivex:rxjava:1.1.9'
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
|
|
compile 'org.mongodb:mongo-java-driver:2.12.4'
|
|
|
|
compile 'com.github.bumptech.glide:glide:3.7.0'
|
|
compile 'jp.wasabeef:glide-transformations:2.0.1'
|
|
compile 'com.android.support:support-v13:25.3.0'
|
|
compile 'com.yuyh.imgsel:library:1.3.2'
|
|
compile 'com.facebook.stetho:stetho:1.4.2'
|
|
compile 'com.facebook.stetho:stetho-okhttp3:1.4.2'
|
|
compile 'com.github.houxg:FlexLayout:1.2'
|
|
|
|
compile 'net.danlew:android.joda:2.9.5'
|
|
compile group: 'com.tencent.bugly', name: 'crashreport_upgrade', version: '1.2.1'
|
|
compile 'com.elvishew:xlog:1.3.0'
|
|
compile 'com.github.piasy:BigImageViewer:1.2.5'
|
|
compile 'com.github.piasy:GlideImageLoader:1.2.5'
|
|
compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
}
|