Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
ad2d80ea
Commit
ad2d80ea
authored
Sep 03, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve application
parent
809095ed
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
9 deletions
+53
-9
build.gradle
app/build.gradle
+10
-0
ExampleInstrumentedTest.kt
...va/com/biganto/visual/roompark/ExampleInstrumentedTest.kt
+2
-4
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-1
RoomParkApplication.kt
...a/com/biganto/visual/roompark/base/RoomParkApplication.kt
+2
-1
RoomParkMainActivity.kt
.../com/biganto/visual/roompark/base/RoomParkMainActivity.kt
+2
-1
AppModule.kt
...ain/java/com/biganto/visual/roompark/di/koin/AppModule.kt
+32
-0
dependencies.gradle
dependencies.gradle
+3
-2
No files found.
app/build.gradle
View file @
ad2d80ea
...
@@ -66,6 +66,12 @@ dependencies {
...
@@ -66,6 +66,12 @@ dependencies {
implementation
"org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation
"org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation
'androidx.core:core-ktx:1.0.2'
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
//Material
implementation
"com.google.android.material:material:$materialVersion"
implementation
"com.google.android.material:material:$materialVersion"
...
@@ -73,7 +79,11 @@ dependencies {
...
@@ -73,7 +79,11 @@ dependencies {
//Constraint Layout
//Constraint Layout
implementation
"androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
implementation
"androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
//Tests
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'androidx.test:runner:1.2.0'
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'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.2.0'
}
}
app/src/androidTest/java/com/biganto/visual/roompark/ExampleInstrumentedTest.kt
View file @
ad2d80ea
package
com.biganto.visual.roompark
package
com.biganto.visual.roompark
import
androidx.test.platform.app.InstrumentationRegistry
import
androidx.test.ext.junit.runners.AndroidJUnit4
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.Test
import
org.junit.runner.RunWith
import
org.junit.runner.RunWith
import
org.junit.Assert.*
/**
/**
* Instrumented test, which will execute on an Android device.
* Instrumented test, which will execute on an Android device.
*
*
...
...
app/src/main/AndroidManifest.xml
View file @
ad2d80ea
...
@@ -3,13 +3,14 @@
...
@@ -3,13 +3,14 @@
package=
"com.biganto.visual.roompark"
>
package=
"com.biganto.visual.roompark"
>
<application
<application
android:name=
".base.RoomParkApplication"
android:allowBackup=
"true"
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher"
android:label=
"@string/app_name"
android:label=
"@string/app_name"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
>
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".base.RoomParkMainAc
it
vity"
>
<activity
android:name=
".base.RoomParkMainAc
ti
vity"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
app/src/main/java/com/biganto/visual/roompark/base/RoomParkApplication.kt
View file @
ad2d80ea
package
com.biganto.visual.roompark.base
package
com.biganto.visual.roompark.base
import
android.app.Application
import
android.app.Application
import
com.biganto.visual.roompark.di.koin.initDI
/**
/**
* Created by Vladislav Bogdashkin on 03.09.2019.
* Created by Vladislav Bogdashkin on 03.09.2019.
...
@@ -9,7 +10,7 @@ class RoomParkApplication : Application() {
...
@@ -9,7 +10,7 @@ class RoomParkApplication : Application() {
override
fun
onCreate
()
{
override
fun
onCreate
()
{
super
.
onCreate
()
super
.
onCreate
()
initDI
()
}
}
}
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/base/RoomParkMainActivity.kt
View file @
ad2d80ea
...
@@ -4,10 +4,11 @@ import android.os.Bundle
...
@@ -4,10 +4,11 @@ import android.os.Bundle
import
androidx.appcompat.app.AppCompatActivity
import
androidx.appcompat.app.AppCompatActivity
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
class
RoomParkMainAc
it
vity
:
AppCompatActivity
()
{
class
RoomParkMainAc
ti
vity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_main
)
setContentView
(
R
.
layout
.
activity_main
)
}
}
}
}
app/src/main/java/com/biganto/visual/roompark/di/koin/AppModule.kt
0 → 100644
View file @
ad2d80ea
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
>()){
}
}
dependencies.gradle
View file @
ad2d80ea
...
@@ -8,11 +8,12 @@ ext {
...
@@ -8,11 +8,12 @@ ext {
VERSION_CODE
=
1
VERSION_CODE
=
1
VERSION_NAME
=
"0.0.1"
VERSION_NAME
=
"0.0.1"
supportLibraryVersion
=
'1.1.0-alpha05'
//
supportLibraryVersion = '1.1.0-alpha05'
constrainLayoutVersion
=
'1.1.3'
constrainLayoutVersion
=
'1.1.3'
// requeryVersion = '1.5.1'
// requeryVersion = '1.5.1'
// rxBindingVersion = '2.1.1'
// rxBindingVersion = '2.1.1'
conductorVersion
=
'3.0.0-rc1'
conductorVersion
=
'3.0.0-rc1'
materialVersion
=
'1.1.0-alpha0
7
'
materialVersion
=
'1.1.0-alpha0
9
'
gradleVersion
=
'3.5.0'
gradleVersion
=
'3.5.0'
koinVersion
=
'2.0.1'
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment