Skip to content

Commit

Permalink
Modern design, modular code
Browse files Browse the repository at this point in the history
  • Loading branch information
iamr0s committed Jul 19, 2023
1 parent bd56d3c commit 9e0bdb8
Show file tree
Hide file tree
Showing 42 changed files with 1,364 additions and 550 deletions.
20 changes: 16 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId "com.rosan.accounts"
minSdk 21
targetSdk 33
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -74,7 +74,7 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
kotlinCompilerExtensionVersion '1.4.5'
}
packagingOptions {
resources {
Expand Down Expand Up @@ -103,10 +103,22 @@ dependencies {
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'

implementation project(':hidden-api')
compileOnly project(':hidden-api')

implementation 'androidx.navigation:navigation-compose:2.6.0'

implementation 'org.lsposed.hiddenapibypass:hiddenapibypass:4.3'

def accompanist_version = '0.30.1'
implementation "com.google.accompanist:accompanist-drawablepainter:$accompanist_version"
implementation "com.google.accompanist:accompanist-navigation-animation:$accompanist_version"
implementation "com.google.accompanist:accompanist-insets:$accompanist_version"
implementation "com.google.accompanist:accompanist-insets-ui:$accompanist_version"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"

implementation 'io.insert-koin:koin-core:3.4.2'
implementation 'io.insert-koin:koin-android:3.4.2'
implementation 'io.insert-koin:koin-androidx-compose:3.4.5'

def shizuku_version = "13.1.4"
implementation "dev.rikka.shizuku:api:$shizuku_version"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
<uses-sdk tools:overrideLibrary="rikka.shizuku.api, rikka.shizuku.provider, rikka.shizuku.shared, rikka.shizuku.aidl" />

<application
android:name=".App"
android:allowBackup="true"
android:icon="@android:drawable/sym_def_app_icon"
android:label="@string/app_name"
android:roundIcon="@android:drawable/sym_def_app_icon"
android:supportsRtl="true"
android:theme="@style/Theme.Accounts">
<activity
android:name=".MainActivity"
android:name=".ui.activity.MainActivity"
android:exported="true"
android:theme="@style/Theme.Accounts">
<intent-filter>
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/rosan/accounts/AccountInfo.kt

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/java/com/rosan/accounts/AccountType.kt

This file was deleted.

22 changes: 22 additions & 0 deletions app/src/main/java/com/rosan/accounts/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.rosan.accounts

import android.app.Application
import android.os.Build
import com.rosan.accounts.di.init.appModules
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.lsposed.hiddenapibypass.HiddenApiBypass

class App : Application() {
override fun onCreate() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
HiddenApiBypass.addHiddenApiExemptions("")
super.onCreate()
startKoin {
androidLogger()
androidContext(this@App)
modules(appModules)
}
}
}
Loading

0 comments on commit 9e0bdb8

Please sign in to comment.