mirror of
https://github.com/imcarlost/Acronyms.git
synced 2026-04-10 02:46:53 -04:00
Add: data and domain layers
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
|
||||
<application
|
||||
android:name=".MainApplication"
|
||||
android:name="dev.carlos.acronyms.MainApplication"
|
||||
android:allowBackup="true"
|
||||
android:fullBackupContent="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
@@ -14,11 +14,12 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="false"
|
||||
android:theme="@style/Theme.Acronyms"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:hardwareAccelerated="true"
|
||||
>
|
||||
|
||||
<activity
|
||||
android:name=".views.MainActivity"
|
||||
android:name="dev.carlos.acronyms.views.MainActivity"
|
||||
android:launchMode="singleTask"
|
||||
>
|
||||
<intent-filter>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package dev.carlos.acronyms
|
||||
|
||||
import android.app.Application
|
||||
import dev.carlos.shortform.di.acronymsModule
|
||||
import dev.carlos.acronyms.di.appModules
|
||||
import org.koin.android.ext.koin.androidContext
|
||||
import org.koin.core.context.startKoin
|
||||
@@ -24,7 +25,8 @@ class MainApplication : Application() {
|
||||
|
||||
modules(
|
||||
listOf(
|
||||
appModules
|
||||
appModules,
|
||||
acronymsModule
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -5,15 +5,11 @@ import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.navigation.findNavController
|
||||
import androidx.navigation.ui.NavigationUI
|
||||
import dev.carlos.acronyms.R
|
||||
import dev.carlos.acronyms.di.appModules
|
||||
import dev.carlos.acronyms.viewmodel.NavigationViewmodel
|
||||
import dev.carlos.core.extensions.findNavHostFragment
|
||||
import dev.carlos.core.extensions.observeNonNull
|
||||
import dev.carlos.core.navigation.NavigationRouter
|
||||
import org.koin.android.ext.android.inject
|
||||
import org.koin.android.ext.koin.androidContext
|
||||
import org.koin.androidx.viewmodel.ext.android.viewModel
|
||||
import org.koin.core.context.startKoin
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
<!-- Still usign fragment because of this [https://issuetracker.google.com/issues/142847973] -->
|
||||
<fragment
|
||||
android:id="@+id/main_fragment_container"
|
||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
6
app/src/main/res/xml/network_security_config.xml
Normal file
6
app/src/main/res/xml/network_security_config.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">www.nactem.ac.uk</domain>
|
||||
</domain-config>
|
||||
</network-security-config>
|
||||
Reference in New Issue
Block a user