Skip to content

Commit a12c405

Browse files
committed
kotlin version
1 parent b19cb78 commit a12c405

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+209
-902
lines changed

.classpath

Lines changed: 0 additions & 9 deletions
This file was deleted.

.gitignore

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/bin
2-
/gen
3-
/build
4-
/.gradle
5-
**.idea
1+
*.iml
2+
.gradle
63
/local.properties
7-
/app/build
8-
**.iml
4+
/.idea
5+
.DS_Store
6+
/build
7+
/captures
8+
.externalNativeBuild
9+
/support_res

.project

Lines changed: 0 additions & 33 deletions
This file was deleted.

.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/build.gradle

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,37 @@
11
apply plugin: 'com.android.application'
2+
23
apply plugin: 'kotlin-android'
4+
35
apply plugin: 'kotlin-android-extensions'
46

57
android {
68
compileSdkVersion 28
7-
89
defaultConfig {
9-
minSdkVersion 14
10+
applicationId "searchview.danbroid.searchviewdemo2"
11+
minSdkVersion 15
1012
targetSdkVersion 28
11-
versionCode 7
12-
versionName "v1.07"
13+
versionCode 1
14+
versionName "1.0"
1315
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1416
}
15-
16-
17-
compileOptions {
18-
sourceCompatibility JavaVersion.VERSION_1_8
19-
targetCompatibility JavaVersion.VERSION_1_8
20-
}
21-
22-
23-
lintOptions {
24-
abortOnError false
25-
}
26-
27-
2817
buildTypes {
2918
release {
3019
minifyEnabled false
3120
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3221
}
33-
3422
}
3523
}
3624

3725
dependencies {
38-
testImplementation 'junit:junit:4.12'
39-
androidTestImplementation 'junit:junit:4.12'
40-
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
41-
implementation 'com.github.danbrough.util:slf4j:1.0.7'
42-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
43-
44-
}
45-
46-
project.afterEvaluate {
47-
android.applicationVariants.all { variant ->
48-
task "installRun${variant.name.capitalize()}"(type: Exec, dependsOn: "install${variant.name.capitalize()}", group: "run") {
49-
commandLine = ["adb", "shell", "monkey", "-p", variant.applicationId + " 1"]
50-
doLast {
51-
println "Launching ${variant.applicationId}"
52-
}
53-
}
54-
}
55-
}
56-
repositories {
57-
mavenCentral()
58-
}
5926

6027

28+
implementation 'com.github.danbrough.util:slf4j:1.0.7'
6129

30+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
31+
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
32+
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
33+
implementation 'com.google.android.material:material:1.0.0-rc01'
34+
testImplementation 'junit:junit:4.12'
35+
androidTestImplementation 'androidx.test:runner:1.1.0-rc01'
36+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
37+
}

0 commit comments

Comments
 (0)