Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
dcs-sdk-java-master/app/build.gradle@45:2aa9f933c8d2, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:34:48 2017 +0800
- Revision:
- 45:2aa9f933c8d2
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TMBOY | 45:2aa9f933c8d2 | 1 | apply plugin: 'com.android.application' |
| TMBOY | 45:2aa9f933c8d2 | 2 | |
| TMBOY | 45:2aa9f933c8d2 | 3 | android { |
| TMBOY | 45:2aa9f933c8d2 | 4 | compileSdkVersion 25 |
| TMBOY | 45:2aa9f933c8d2 | 5 | buildToolsVersion "25.0.2" |
| TMBOY | 45:2aa9f933c8d2 | 6 | defaultConfig { |
| TMBOY | 45:2aa9f933c8d2 | 7 | applicationId "com.baidu.duer.dcs" |
| TMBOY | 45:2aa9f933c8d2 | 8 | minSdkVersion 21 |
| TMBOY | 45:2aa9f933c8d2 | 9 | targetSdkVersion 22 |
| TMBOY | 45:2aa9f933c8d2 | 10 | versionCode 1 |
| TMBOY | 45:2aa9f933c8d2 | 11 | versionName "1.0" |
| TMBOY | 45:2aa9f933c8d2 | 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| TMBOY | 45:2aa9f933c8d2 | 13 | externalNativeBuild { |
| TMBOY | 45:2aa9f933c8d2 | 14 | cmake { |
| TMBOY | 45:2aa9f933c8d2 | 15 | cppFlags "-std=c++11 -frtti -fexceptions -I/src/main/cpp" |
| TMBOY | 45:2aa9f933c8d2 | 16 | } |
| TMBOY | 45:2aa9f933c8d2 | 17 | } |
| TMBOY | 45:2aa9f933c8d2 | 18 | ndk { |
| TMBOY | 45:2aa9f933c8d2 | 19 | // 平台 |
| TMBOY | 45:2aa9f933c8d2 | 20 | abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a' |
| TMBOY | 45:2aa9f933c8d2 | 21 | } |
| TMBOY | 45:2aa9f933c8d2 | 22 | } |
| TMBOY | 45:2aa9f933c8d2 | 23 | externalNativeBuild { |
| TMBOY | 45:2aa9f933c8d2 | 24 | cmake { |
| TMBOY | 45:2aa9f933c8d2 | 25 | path "CMakeLists.txt" |
| TMBOY | 45:2aa9f933c8d2 | 26 | } |
| TMBOY | 45:2aa9f933c8d2 | 27 | } |
| TMBOY | 45:2aa9f933c8d2 | 28 | sourceSets { |
| TMBOY | 45:2aa9f933c8d2 | 29 | main { |
| TMBOY | 45:2aa9f933c8d2 | 30 | jniLibs.srcDirs = ['src/main/jniLibs'] |
| TMBOY | 45:2aa9f933c8d2 | 31 | } |
| TMBOY | 45:2aa9f933c8d2 | 32 | } |
| TMBOY | 45:2aa9f933c8d2 | 33 | buildTypes { |
| TMBOY | 45:2aa9f933c8d2 | 34 | release { |
| TMBOY | 45:2aa9f933c8d2 | 35 | minifyEnabled false |
| TMBOY | 45:2aa9f933c8d2 | 36 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| TMBOY | 45:2aa9f933c8d2 | 37 | } |
| TMBOY | 45:2aa9f933c8d2 | 38 | } |
| TMBOY | 45:2aa9f933c8d2 | 39 | |
| TMBOY | 45:2aa9f933c8d2 | 40 | packagingOptions { |
| TMBOY | 45:2aa9f933c8d2 | 41 | exclude 'META-INF/DEPENDENCIES.txt' |
| TMBOY | 45:2aa9f933c8d2 | 42 | exclude 'META-INF/LICENSE.txt' |
| TMBOY | 45:2aa9f933c8d2 | 43 | exclude 'META-INF/NOTICE.txt' |
| TMBOY | 45:2aa9f933c8d2 | 44 | exclude 'META-INF/NOTICE' |
| TMBOY | 45:2aa9f933c8d2 | 45 | exclude 'META-INF/LICENSE' |
| TMBOY | 45:2aa9f933c8d2 | 46 | exclude 'META-INF/DEPENDENCIES' |
| TMBOY | 45:2aa9f933c8d2 | 47 | exclude 'META-INF/notice.txt' |
| TMBOY | 45:2aa9f933c8d2 | 48 | exclude 'META-INF/license.txt' |
| TMBOY | 45:2aa9f933c8d2 | 49 | exclude 'META-INF/dependencies.txt' |
| TMBOY | 45:2aa9f933c8d2 | 50 | exclude 'META-INF/LGPL2.1' |
| TMBOY | 45:2aa9f933c8d2 | 51 | exclude 'META-INF/ASL2.0' |
| TMBOY | 45:2aa9f933c8d2 | 52 | } |
| TMBOY | 45:2aa9f933c8d2 | 53 | } |
| TMBOY | 45:2aa9f933c8d2 | 54 | |
| TMBOY | 45:2aa9f933c8d2 | 55 | dependencies { |
| TMBOY | 45:2aa9f933c8d2 | 56 | compile fileTree(include: ['*.jar'], dir: 'libs') |
| TMBOY | 45:2aa9f933c8d2 | 57 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { |
| TMBOY | 45:2aa9f933c8d2 | 58 | exclude group: 'com.android.support', module: 'support-annotations' |
| TMBOY | 45:2aa9f933c8d2 | 59 | }) |
| TMBOY | 45:2aa9f933c8d2 | 60 | compile 'com.android.support:appcompat-v7:25.3.0' |
| TMBOY | 45:2aa9f933c8d2 | 61 | compile 'com.android.support:design:25.3.0' |
| TMBOY | 45:2aa9f933c8d2 | 62 | testCompile 'junit:junit:4.12' |
| TMBOY | 45:2aa9f933c8d2 | 63 | compile files('libs/jackson-core-asl-1.9.13.jar') |
| TMBOY | 45:2aa9f933c8d2 | 64 | compile files('libs/jackson-mapper-asl-1.9.13.jar') |
| TMBOY | 45:2aa9f933c8d2 | 65 | compile files('libs/commons-fileupload-1.3.2.jar') |
| TMBOY | 45:2aa9f933c8d2 | 66 | compile files('libs/commons-lang3-3.4.jar') |
| TMBOY | 45:2aa9f933c8d2 | 67 | compile files('libs/commons-io-2.5.jar') |
| TMBOY | 45:2aa9f933c8d2 | 68 | def okHttp3Version = '3.8.1' |
| TMBOY | 45:2aa9f933c8d2 | 69 | compile('com.squareup.okhttp3:okhttp:' + okHttp3Version) |
| TMBOY | 45:2aa9f933c8d2 | 70 | compile('com.squareup.okhttp3:logging-interceptor:' + okHttp3Version) |
| TMBOY | 45:2aa9f933c8d2 | 71 | |
| TMBOY | 45:2aa9f933c8d2 | 72 | // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3' |
| TMBOY | 45:2aa9f933c8d2 | 73 | } |
