Skip to content

Commit

Permalink
feat: implement DI
Browse files Browse the repository at this point in the history
  • Loading branch information
Canny committed Jan 27, 2023
1 parent b372f7e commit 57e2632
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
6 changes: 6 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ dependencies {
val composeVersion = "1.3.3"
implementation("androidx.compose.ui:ui:$composeVersion")
implementation("androidx.compose.ui:ui-tooling-preview:$composeVersion")

// Material 3
implementation("androidx.compose.material3:material3:1.0.1")

// Koin
implementation("io.insert-koin:koin-android:3.3.2")
implementation("io.insert-koin:koin-androidx-compose:3.4.1")

}
7 changes: 2 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools">

<application
android:name=".ManagerApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
Expand All @@ -11,7 +12,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.ReVancedManager"
tools:targetApi="31">
tools:targetApi="33">
<activity
android:name=".MainActivity"
android:exported="true"
Expand All @@ -21,10 +22,6 @@

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
</application>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package app.revanced.manager.compose

import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin

class ManagerApplication: Application() {
override fun onCreate() {
super.onCreate()

startKoin {
androidContext(this@ManagerApplication)
modules(emptyList()) // TODO: Add modules
}
}
}

0 comments on commit 57e2632

Please sign in to comment.