nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | apply plugin: 'com.android.application' |
2 | |||
3 | def getVersionCode = { -> |
||
4 | try { |
||
5 | def stdout = new ByteArrayOutputStream() |
||
6 | exec { |
||
7 | commandLine 'git', 'rev-list', '--first-parent', '--count', 'master' |
||
8 | standardOutput = stdout |
||
9 | } |
||
10 | return Integer.parseInt(stdout.toString().trim()) |
||
11 | } |
||
12 | catch (ignored) { |
||
13 | return -1; |
||
14 | } |
||
15 | } |
||
16 | |||
17 | def getVersionName = { -> |
||
18 | try { |
||
19 | def stdout = new ByteArrayOutputStream() |
||
20 | exec { |
||
21 | // commandLine 'git', 'describe', '--abbrev=4', '--always', '--tags' |
||
22 | commandLine 'git', 'describe', '--abbrev=4', '--dirty', '--always', '--tags' |
||
23 | |||
24 | standardOutput = stdout |
||
25 | } |
||
26 | return stdout.toString().trim() |
||
27 | } |
||
28 | catch (ignored) { |
||
29 | return null; |
||
30 | } |
||
31 | } |
||
32 | |||
33 | android { |
||
34 | compileSdkVersion 23 |
||
35 | buildToolsVersion '25.0.1' |
||
36 | |||
37 | sourceSets.main { |
||
38 | jniLibs.srcDir 'src/main/libs' //set libs as .so's location instead of jniLibs |
||
39 | jni.srcDirs = [] //disable automatic ndk-build call with auto-generated Android.mk |
||
40 | } |
||
41 | |||
42 | defaultConfig { |
||
43 | applicationId "de.tu_darmstadt.seemoo.nexmon" |
||
44 | minSdkVersion 23 |
||
45 | targetSdkVersion 23 |
||
46 | compileOptions { |
||
47 | sourceCompatibility JavaVersion.VERSION_1_7 |
||
48 | targetCompatibility JavaVersion.VERSION_1_7 |
||
49 | } |
||
50 | |||
51 | ndk { |
||
52 | moduleName "nexpenlib" |
||
53 | } |
||
54 | |||
55 | versionCode getVersionCode() |
||
56 | versionName getVersionName() |
||
57 | } |
||
58 | |||
59 | buildTypes { |
||
60 | release { |
||
61 | minifyEnabled false |
||
62 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' |
||
63 | } |
||
64 | } |
||
65 | lintOptions { |
||
66 | checkReleaseBuilds false |
||
67 | // Or, if you prefer, you can continue to check for errors in release builds, |
||
68 | // but continue the build even when errors are found: |
||
69 | abortOnError false |
||
70 | } |
||
71 | |||
72 | } |
||
73 | |||
74 | dependencies { |
||
75 | compile files('libs/RootTools.jar') |
||
76 | compile 'com.android.support:support-v4:23.4.0' |
||
77 | compile 'com.google.code.gson:gson:2.7' |
||
78 | compile 'eu.chainfire:libsuperuser:1.0.0.+' |
||
79 | compile 'com.github.johnkil.print:print:1.3.1' |
||
80 | compile 'com.nononsenseapps:filepicker:3.1.0' |
||
81 | compile 'com.android.support:recyclerview-v7:23.4.0' |
||
82 | compile 'com.google.android.gms:play-services-analytics:9.2.0' |
||
83 | } |
||
84 | |||
85 | apply plugin: 'com.google.gms.google-services' |