-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: setup compose * fix: remove deprecated tests
- Loading branch information
1 parent
bf0d4d4
commit 3ee0cea
Showing
38 changed files
with
169 additions
and
1,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
app/src/androidTest/java/com/jcaique/dialetus/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
...ntation/src/androidTest/java/com/jcaique/dialetus/presentation/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
presentation/src/main/java/com/jcaique/dialetus/presentation/DialetusActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.jcaique.dialetus.presentation | ||
|
||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import androidx.compose.foundation.Text | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material.Surface | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.platform.setContent | ||
import androidx.ui.tooling.preview.Preview | ||
import com.jcaique.dialetus.presentation.ui.DialetusTheme | ||
|
||
class DialetusActivity : AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContent { | ||
DialetusTheme { | ||
// A surface container using the 'background' color from the theme | ||
Surface(color = MaterialTheme.colors.background) { | ||
Greeting("Android") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@Composable | ||
fun Greeting(name: String) { | ||
Text(text = "Hello $name!") | ||
} | ||
|
||
@Preview(showBackground = true) | ||
@Composable | ||
fun DefaultPreview() { | ||
DialetusTheme { | ||
Greeting("Android") | ||
} | ||
} |
7 changes: 0 additions & 7 deletions
7
...ntation/src/main/java/com/jcaique/dialetus/presentation/contributing/ContributingConst.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...n/src/main/java/com/jcaique/dialetus/presentation/contributing/ContributingInteraction.kt
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
...on/src/main/java/com/jcaique/dialetus/presentation/contributing/ContributingNavigation.kt
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
presentation/src/main/java/com/jcaique/dialetus/presentation/di/injection.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
package com.jcaique.dialetus.presentation.di | ||
|
||
import com.jcaique.dialetus.presentation.dialects.DialectsViewModel | ||
import com.jcaique.dialetus.presentation.regions.RegionsViewModel | ||
import org.kodein.di.DI | ||
import org.kodein.di.bind | ||
import org.kodein.di.instance | ||
import org.kodein.di.provider | ||
|
||
val presentationModule = DI.Module(name = "presentation") { | ||
|
||
bind() from provider { | ||
RegionsViewModel( | ||
service = instance() | ||
) | ||
} | ||
|
||
bind() from provider { | ||
DialectsViewModel( | ||
service = instance() | ||
) | ||
} | ||
} |
38 changes: 0 additions & 38 deletions
38
presentation/src/main/java/com/jcaique/dialetus/presentation/dialects/DialectAdapter.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.