Commit ad2d80ea authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

resolve application

parent 809095ed
......@@ -66,6 +66,12 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'androidx.core:core-ktx:1.0.2'
//Koin
implementation "org.koin:koin-core:$koinVersion"
implementation "org.koin:koin-core-ext:$koinVersion"
implementation "org.koin:koin-android:$koinVersion"
implementation "org.koin:koin-android-scope:$koinVersion"
//Material
implementation "com.google.android.material:material:$materialVersion"
......@@ -73,7 +79,11 @@ dependencies {
//Constraint Layout
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
//Tests
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.ext:truth:1.2.0'
androidTestImplementation 'com.google.truth:truth:0.42'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
package com.biganto.visual.roompark
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
......
......@@ -3,13 +3,14 @@
package="com.biganto.visual.roompark">
<application
android:name=".base.RoomParkApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".base.RoomParkMainAcitvity">
<activity android:name=".base.RoomParkMainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
package com.biganto.visual.roompark.base
import android.app.Application
import com.biganto.visual.roompark.di.koin.initDI
/**
* Created by Vladislav Bogdashkin on 03.09.2019.
......@@ -9,7 +10,7 @@ class RoomParkApplication : Application() {
override fun onCreate() {
super.onCreate()
initDI()
}
}
\ No newline at end of file
......@@ -4,10 +4,11 @@ import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.biganto.visual.roompark.R
class RoomParkMainAcitvity : AppCompatActivity() {
class RoomParkMainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}
package com.biganto.visual.roompark.di.koin
import com.biganto.visual.roompark.base.RoomParkApplication
import com.biganto.visual.roompark.base.RoomParkMainActivity
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.qualifier.named
import org.koin.dsl.module
/**
* Created by Vladislav Bogdashkin on 03.09.2019.
*/
fun RoomParkApplication.initDI(){
startKoin {
androidLogger()
androidContext(this@initDI)
modules(listOf(appModule, scopesModule))
}
}
val appModule = module{
}
val scopesModule = module {
scope(named<RoomParkMainActivity>()){
}
}
......@@ -8,11 +8,12 @@ ext {
VERSION_CODE = 1
VERSION_NAME = "0.0.1"
supportLibraryVersion = '1.1.0-alpha05'
// supportLibraryVersion = '1.1.0-alpha05'
constrainLayoutVersion = '1.1.3'
// requeryVersion = '1.5.1'
// rxBindingVersion = '2.1.1'
conductorVersion = '3.0.0-rc1'
materialVersion = '1.1.0-alpha07'
materialVersion = '1.1.0-alpha09'
gradleVersion = '3.5.0'
koinVersion = '2.0.1'
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment