Skip to content

Commit

Permalink
Remove Unused XML, Resources, and Kotlin Code
Browse files Browse the repository at this point in the history
deleted themeHelper.kt

deleted unused files
  • Loading branch information
itsPronay committed Dec 11, 2024
1 parent cf3c70c commit 4f27b01
Show file tree
Hide file tree
Showing 210 changed files with 14 additions and 9,795 deletions.
25 changes: 1 addition & 24 deletions mifosng-android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.CAMERA"/>

<uses-feature android:name="android.hardware.camera.any"/>

<uses-sdk tools:overrideLibrary="androidx.core.splashscreen" />
Expand All @@ -25,7 +17,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:windowSoftInputMode="adjustResize"
android:theme="@style/MaterialAppTheme">
android:theme="@style/Theme.AndroidClientTheme">

<meta-data
android:name="com.google.android.gms.version"
Expand All @@ -46,21 +38,6 @@
</intent-filter>
</activity>

<activity
android:name=".activity.home.HomeActivity"
android:label="home_activity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.mifos.mifosxdroid.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/feature_client_path_provider" />
</provider>
</application>

</manifest>
9 changes: 2 additions & 7 deletions mifosng-android/src/main/java/com/mifos/application/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.evernote.android.job.JobManager
import com.facebook.stetho.Stetho
import com.joanzapata.iconify.Iconify
import com.joanzapata.iconify.fonts.MaterialModule
import com.mifos.utils.LanguageHelper.onAttach
import com.mifos.core.common.utils.LanguageHelper.onAttach
import com.mifos.utils.ThemeHelper
import com.raizlabs.android.dbflow.config.FlowConfig
import com.raizlabs.android.dbflow.config.FlowManager
Expand All @@ -27,13 +27,8 @@ import dagger.hilt.android.HiltAndroidApp
class App : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
val themePref = sharedPreferences.getString("dark_mode", ThemeHelper.DEFAULT_MODE)
if (themePref != null) {
ThemeHelper.applyTheme(themePref)
}

instance = this
Iconify.with(MaterialModule())
// JobManager.create(this).addJobCreator(OfflineJobCreator())
//Initializing the DBFlow and SQL Cipher Encryption
FlowManager.init(FlowConfig.Builder(this).build())
Expand Down

This file was deleted.

Empty file.
Empty file.
Empty file.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4f27b01

Please sign in to comment.