Skip to content

Commit 89beffe

Browse files
committed
initial commit
0 parents  commit 89beffe

File tree

99 files changed

+2704
-0
lines changed

Some content is hidden

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

99 files changed

+2704
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
/apikey.properties

.idea/.gitignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

+138
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-kapt'
4+
5+
def apikeyPropertiesFile = rootProject.file("apikey.properties");
6+
def apikeyProperties = new Properties()
7+
apikeyProperties.load(new FileInputStream(apikeyPropertiesFile))
8+
9+
android {
10+
compileSdkVersion 29
11+
12+
defaultConfig {
13+
applicationId "com.msalikhov.dictionarysample"
14+
minSdkVersion 21
15+
targetSdkVersion 29
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
21+
buildConfigField("String", "YANDEX_OAUTH_TOKEN", apikeyProperties['yandex_oauth_token'])
22+
buildConfigField("String", "YANDEX_FOLDER_ID", apikeyProperties['yandex_folder_id'])
23+
}
24+
25+
buildTypes {
26+
release {
27+
minifyEnabled false
28+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
29+
}
30+
}
31+
compileOptions {
32+
sourceCompatibility 1.8
33+
targetCompatibility 1.8
34+
}
35+
kotlinOptions {
36+
jvmTarget = JavaVersion.VERSION_1_8
37+
}
38+
buildFeatures {
39+
viewBinding true
40+
}
41+
}
42+
43+
dependencies {
44+
def dagger_version = "2.27"
45+
def moxy_version = "2.2.0"
46+
def okhttp_version = "4.9.0"
47+
def retrofit_version = "2.9.0"
48+
def room_version = "2.2.5"
49+
50+
implementation fileTree(dir: "libs", include: ["*.jar"])
51+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
52+
53+
implementation "androidx.core:core-ktx:1.3.2"
54+
implementation "androidx.appcompat:appcompat:1.2.0"
55+
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
56+
implementation "androidx.recyclerview:recyclerview:1.1.0"
57+
implementation "androidx.fragment:fragment-ktx:1.2.5"
58+
59+
implementation "com.kirich1409.viewbindingpropertydelegate:vbpd-noreflection:1.2.2"
60+
61+
kapt "com.google.dagger:dagger-compiler:$dagger_version"
62+
implementation "com.google.dagger:dagger:$dagger_version"
63+
64+
implementation "io.reactivex.rxjava2:rxjava:2.2.20"
65+
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
66+
67+
kapt "com.github.moxy-community:moxy-compiler:$moxy_version"
68+
implementation "com.github.moxy-community:moxy:$moxy_version"
69+
implementation "com.github.moxy-community:moxy-androidx:$moxy_version"
70+
implementation "com.github.moxy-community:moxy-ktx:$moxy_version"
71+
72+
implementation "ru.terrakok.cicerone:cicerone:5.1.1"
73+
74+
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
75+
implementation "com.squareup.retrofit2:adapter-rxjava2:2.6.4"
76+
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
77+
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
78+
implementation "com.google.code.gson:gson:2.8.6"
79+
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
80+
81+
kapt "androidx.room:room-compiler:$room_version"
82+
implementation "androidx.room:room-runtime:$room_version"
83+
implementation "androidx.room:room-rxjava2:$room_version"
84+
85+
testImplementation "junit:junit:4.13"
86+
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
87+
androidTestImplementation "androidx.test.ext:junit:1.1.2"
88+
androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
89+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.msalikhov.dictionarysample
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.msalikhov.dictionarysample", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)