Skip to content

Commit 261102c

Browse files
committed
Added Kotlin integration
1 parent ed9288e commit 261102c

File tree

103 files changed

+2340
-367
lines changed

Some content is hidden

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

103 files changed

+2340
-367
lines changed

app/build.gradle

-46
This file was deleted.

app/src/androidTest/java/com/gaston/macbook/simplemvp/ExampleInstrumentedTest.java

-26
This file was deleted.

app/src/main/java/com/gaston/macbook/simplemvp/Interface/ApodDetailView.java

-24
This file was deleted.

app/src/main/java/com/gaston/macbook/simplemvp/presenter/ApodDetailPresenter.java

-43
This file was deleted.

app/src/main/java/com/gaston/macbook/simplemvp/view/ApodDetail.java

-121
This file was deleted.

app/src/main/res/layout/activity_isslive.xml

-14
This file was deleted.

app/src/test/java/com/gaston/macbook/simplemvp/ExampleUnitTest.java

-17
This file was deleted.

app/.gitignore java/.gitignore

File renamed without changes.

java/app-debug.apk

2.97 MB
Binary file not shown.

java/build.gradle

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apply plugin: 'com.android.application'
2+
3+
def YOUTUBE_APIKEY = '"' + SIMPLEMVP_YOUTUBE_API_KEY + '"' ?: '"Error"'
4+
def APOD_APIKEY = '"' + SIMPLEMVP_NASA_API_KEY + '"' ?: '"Error"'
5+
def STRING = 'String'
6+
7+
android {
8+
compileSdkVersion rootProject.ext.compileSdkVersion
9+
defaultConfig {
10+
applicationId "com.gaston.macbook.simplemvp"
11+
minSdkVersion rootProject.ext.minSdkVersion
12+
targetSdkVersion rootProject.ext.targetSdkVersion
13+
versionCode 1
14+
versionName "1.0"
15+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16+
17+
each {
18+
type ->
19+
type.buildConfigField STRING, 'APODApiKey', APOD_APIKEY
20+
type.buildConfigField STRING, 'YoutubeApiKey', YOUTUBE_APIKEY
21+
}
22+
23+
compileOptions {
24+
sourceCompatibility JavaVersion.VERSION_1_8
25+
targetCompatibility JavaVersion.VERSION_1_8
26+
}
27+
}
28+
29+
buildTypes {
30+
31+
release {
32+
minifyEnabled false
33+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34+
}
35+
}
36+
}
37+
38+
dependencies {
39+
implementation fileTree(include: ['*.jar'], dir: 'libs')
40+
implementation "androidx.appcompat:appcompat:$rootProject.ext.appcompat"
41+
implementation "androidx.constraintlayout:constraintlayout:$rootProject.ext.constraintlayout"
42+
implementation "com.google.android.material:material:$rootProject.ext.material"
43+
implementation "com.github.bumptech.glide:glide:$rootProject.ext.glide"
44+
implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit"
45+
implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit"
46+
implementation files('libs/YouTubeAndroidPlayerApi.jar')
47+
implementation "com.jakewharton:butterknife:$rootProject.ext.butterknife"
48+
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.butterknife"
49+
implementation "com.github.chrisbanes:PhotoView:$rootProject.ext.photoview"
50+
51+
// Dependencies for local unit tests
52+
testImplementation "junit:junit:$rootProject.ext.junitVersion"
53+
testImplementation "org.mockito:mockito-all:$rootProject.ext.mockitoVersion"
54+
testImplementation "org.hamcrest:hamcrest-all:$rootProject.ext.hamcrestVersion"
55+
testImplementation "org.powermock:powermock-module-junit4:$rootProject.ext.powerMockito"
56+
testImplementation "org.powermock:powermock-api-mockito:$rootProject.ext.powerMockito"
57+
58+
// Android Testing Support Library's runner and rules
59+
androidTestImplementation "androidx.test:runner:$rootProject.ext.runnerVersion"
60+
androidTestImplementation "androidx.test:rules:$rootProject.ext.rulesVersion"
61+
62+
// Espresso UI Testing dependencies.
63+
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
64+
androidTestImplementation "androidx.test.espresso:espresso-contrib:$rootProject.ext.espressoVersion"
65+
androidTestImplementation "androidx.test.espresso:espresso-intents:$rootProject.ext.espressoVersion"
66+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)