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.
pain/Application/build.gradle@0:832122ce6748, 2021-04-07 (annotated)
- Committer:
- darienf
- Date:
- Wed Apr 07 22:37:59 2021 +0000
- Revision:
- 0:832122ce6748
painnie
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| darienf | 0:832122ce6748 | 1 | |
| darienf | 0:832122ce6748 | 2 | buildscript { |
| darienf | 0:832122ce6748 | 3 | repositories { |
| darienf | 0:832122ce6748 | 4 | jcenter() |
| darienf | 0:832122ce6748 | 5 | } |
| darienf | 0:832122ce6748 | 6 | |
| darienf | 0:832122ce6748 | 7 | dependencies { |
| darienf | 0:832122ce6748 | 8 | classpath 'com.android.tools.build:gradle:2.2.3' |
| darienf | 0:832122ce6748 | 9 | } |
| darienf | 0:832122ce6748 | 10 | } |
| darienf | 0:832122ce6748 | 11 | |
| darienf | 0:832122ce6748 | 12 | apply plugin: 'com.android.application' |
| darienf | 0:832122ce6748 | 13 | |
| darienf | 0:832122ce6748 | 14 | repositories { |
| darienf | 0:832122ce6748 | 15 | jcenter() |
| darienf | 0:832122ce6748 | 16 | } |
| darienf | 0:832122ce6748 | 17 | |
| darienf | 0:832122ce6748 | 18 | dependencies { |
| darienf | 0:832122ce6748 | 19 | compile "com.android.support:support-v4:24.1.1" |
| darienf | 0:832122ce6748 | 20 | compile "com.android.support:support-v13:24.1.1" |
| darienf | 0:832122ce6748 | 21 | compile "com.android.support:cardview-v7:24.1.1" |
| darienf | 0:832122ce6748 | 22 | compile "com.android.support:appcompat-v7:24.1.1" |
| darienf | 0:832122ce6748 | 23 | } |
| darienf | 0:832122ce6748 | 24 | |
| darienf | 0:832122ce6748 | 25 | // The sample build uses multiple directories to |
| darienf | 0:832122ce6748 | 26 | // keep boilerplate and common code separate from |
| darienf | 0:832122ce6748 | 27 | // the main sample code. |
| darienf | 0:832122ce6748 | 28 | List<String> dirs = [ |
| darienf | 0:832122ce6748 | 29 | 'main', // main sample code; look here for the interesting stuff. |
| darienf | 0:832122ce6748 | 30 | 'common', // components that are reused by multiple samples |
| darienf | 0:832122ce6748 | 31 | 'template'] // boilerplate code that is generated by the sample template process |
| darienf | 0:832122ce6748 | 32 | |
| darienf | 0:832122ce6748 | 33 | android { |
| darienf | 0:832122ce6748 | 34 | compileSdkVersion 24 |
| darienf | 0:832122ce6748 | 35 | buildToolsVersion "24.0.1" |
| darienf | 0:832122ce6748 | 36 | |
| darienf | 0:832122ce6748 | 37 | defaultConfig { |
| darienf | 0:832122ce6748 | 38 | minSdkVersion 18 |
| darienf | 0:832122ce6748 | 39 | targetSdkVersion 24 |
| darienf | 0:832122ce6748 | 40 | } |
| darienf | 0:832122ce6748 | 41 | |
| darienf | 0:832122ce6748 | 42 | compileOptions { |
| darienf | 0:832122ce6748 | 43 | sourceCompatibility JavaVersion.VERSION_1_7 |
| darienf | 0:832122ce6748 | 44 | targetCompatibility JavaVersion.VERSION_1_7 |
| darienf | 0:832122ce6748 | 45 | } |
| darienf | 0:832122ce6748 | 46 | |
| darienf | 0:832122ce6748 | 47 | sourceSets { |
| darienf | 0:832122ce6748 | 48 | main { |
| darienf | 0:832122ce6748 | 49 | dirs.each { dir -> |
| darienf | 0:832122ce6748 | 50 | java.srcDirs "src/${dir}/java" |
| darienf | 0:832122ce6748 | 51 | res.srcDirs "src/${dir}/res" |
| darienf | 0:832122ce6748 | 52 | } |
| darienf | 0:832122ce6748 | 53 | } |
| darienf | 0:832122ce6748 | 54 | androidTest.setRoot('tests') |
| darienf | 0:832122ce6748 | 55 | androidTest.java.srcDirs = ['tests/src'] |
| darienf | 0:832122ce6748 | 56 | |
| darienf | 0:832122ce6748 | 57 | } |
| darienf | 0:832122ce6748 | 58 | |
| darienf | 0:832122ce6748 | 59 | } |
| darienf | 0:832122ce6748 | 60 |