diff --git a/build.gradle b/build.gradle index 14c9f3d2e03bff7160e4446204536295ecdbd11c..c0736ee3c315b5623aaa73db3b7ca1f5f80f412f 100644 --- a/build.gradle +++ b/build.gradle @@ -33,8 +33,6 @@ buildscript { ext.rx_preferences_version = '2.0.0-RC3' ext.timber_version = '4.5.1' - ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2] - repositories { maven { url 'https://maven.google.com' } jcenter() @@ -55,6 +53,7 @@ allprojects { google() jcenter() maven { url "https://jitpack.io" } + maven { url 'https://gitlab.e.foundation/api/v4/groups/9/-/packages/maven'} maven { url 'https://maven.fabric.io/public' } maven { url 'https://maven.google.com' } maven { diff --git a/e-ui-sdk.jar b/e-ui-sdk.jar deleted file mode 100644 index 881b17e1d066e02d3a7a70d89c96df64d53b6187..0000000000000000000000000000000000000000 Binary files a/e-ui-sdk.jar and /dev/null differ diff --git a/presentation/build.gradle b/presentation/build.gradle index ab466569209d8f6f39630b4ad5f66565e9610168..2a12b53993f8a41e2849bc83f8960b08ae02d126 100644 --- a/presentation/build.gradle +++ b/presentation/build.gradle @@ -40,11 +40,6 @@ android { } - aaptOptions { - additionalParameters '-I', 'e-ui-sdk.jar' - } - - /* signingConfigs { release }*/ @@ -80,15 +75,6 @@ android { withAnalytics { dimension "analytics" } noAnalytics { dimension "analytics" } } - - splits { - abi { - enable true - reset() - include 'armeabi-v7a', 'arm64-v8a' - universalApk true - } - } /*if (System.getenv("CI") == "true") { signingConfigs.release.storeFile = file("../keystore") signingConfigs.release.storePassword = System.getenv("keystore_password") @@ -112,8 +98,6 @@ configurations { dependencies { - // e-ui sdk - compileOnly files("../e-ui-sdk.jar") // lifecycle implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version" @@ -125,6 +109,7 @@ dependencies { implementation "androidx.emoji:emoji-appcompat:$androidx_emoji_version" implementation "androidx.viewpager2:viewpager2:$androidx_viewpager_version" implementation "com.google.android.material:material:$material_version" + implementation 'foundation.e:elib:0.0.1-alpha11' // conductor implementation "com.bluelinelabs:conductor:$conductor_version" diff --git a/presentation/src/main/java/com/moez/QKSMS/common/widget/PreferenceView.kt b/presentation/src/main/java/com/moez/QKSMS/common/widget/PreferenceView.kt index 4db4a8edf60db44ec266e411438355945b920ff7..dda65072e42420215ef8f07c3d11787ac3a5bcad 100644 --- a/presentation/src/main/java/com/moez/QKSMS/common/widget/PreferenceView.kt +++ b/presentation/src/main/java/com/moez/QKSMS/common/widget/PreferenceView.kt @@ -80,7 +80,7 @@ class PreferenceView @JvmOverloads constructor( orientation = HORIZONTAL gravity = Gravity.CENTER_VERTICAL - icon.setColorFilter(context.getColor(R.color.color_default_icon)) + icon.setColorFilter(context.getColor(R.color.icon_color)) context.obtainStyledAttributes(attrs, R.styleable.PreferenceView).run { title = getString(R.styleable.PreferenceView_title) @@ -95,7 +95,7 @@ class PreferenceView @JvmOverloads constructor( getResourceId(R.styleable.PreferenceView_icon, -1).takeIf { it != -1 }?.let { id -> icon.setVisible(true) icon.setImageResource(id) - icon.setTint(context.getColor(R.color.tools_theme)) + icon.setTint(context.getColor(R.color.icon_color)) } recycle() diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt index b3531c34de8a6f6b392ad9cb5bf4bc6775bdceaa..06ab61d5b1b18bc258a507d3f312589cd7802447 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt @@ -143,8 +143,8 @@ class MainActivity : QkThemedActivity(), MainView { } toggle.syncState() - toolbar.setNavigationIcon(lineageos.platform.R.drawable.ic_hamburger) - toolbar.navigationIcon?.setTint(resources.getColor(R.color.color_default_icon)) + toolbar.setNavigationIcon(R.drawable.e_ic_hamburger) + toolbar.navigationIcon?.setTint(resources.getColor(R.color.e_primary_text_color)) toolbar.setNavigationOnClickListener { dismissKeyboard() homeIntent.onNext(Unit) @@ -160,19 +160,6 @@ class MainActivity : QkThemedActivity(), MainView { theme .autoDisposable(scope()) .subscribe { theme -> - // Set the color for the drawer icons - val states = arrayOf( - intArrayOf(android.R.attr.state_activated), - intArrayOf(-android.R.attr.state_activated)) - - resolveThemeColor(android.R.attr.textColorSecondary) - .let { textSecondary -> ColorStateList(states, intArrayOf(getColor(R.color.tools_theme), textSecondary)) } - .let { tintList -> - inboxIcon.imageTintList = tintList - inboxLabel.setTextColor(tintList) - archivedIcon.imageTintList = tintList - archivedLabel.setTextColor(tintList) - } // Miscellaneous views listOf(plusBadge1, plusBadge2).forEach { badge -> diff --git a/presentation/src/main/res/layout/drawer_view.xml b/presentation/src/main/res/layout/drawer_view.xml index a3f12cbb6b0f48b30d93c157014c675e4cefed64..42f289747b655bab43f68b34a993401adf7885bd 100644 --- a/presentation/src/main/res/layout/drawer_view.xml +++ b/presentation/src/main/res/layout/drawer_view.xml @@ -38,8 +38,7 @@ + android:src="@drawable/ic_inbox_black_24dp" /> + android:src="@drawable/ic_import_export_black_24dp" /> + android:src="@drawable/ic_event_black_24dp" /> + android:src="@drawable/ic_block_white_24dp" /> + android:src="@drawable/ic_settings_black_24dp" /> diff --git a/presentation/src/main/res/layout/settings_controller.xml b/presentation/src/main/res/layout/settings_controller.xml index 49bdec82258df5cc13d7e2977503bf82dee1e9ba..aeb5a2f636afa96933ca5907a598b173ff4710b7 100644 --- a/presentation/src/main/res/layout/settings_controller.xml +++ b/presentation/src/main/res/layout/settings_controller.xml @@ -42,7 +42,7 @@ android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_night_mode" + app:icon="@drawable/ic_invert_colors_black_24dp" app:title="@string/settings_night_title" tools:summary="Automatic" /> @@ -66,7 +66,7 @@ android:id="@+id/textSize" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_font_size" + app:icon="@drawable/ic_format_size_black_24dp" app:title="@string/settings_text_size_title" /> @@ -100,7 +100,7 @@ android:id="@+id/notifications" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_notifications" + app:icon="@drawable/ic_notifications_black_24dp" app:title="@string/settings_notifications_title" /> @@ -124,7 +124,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="visible" - app:icon="@lineageos.platform:drawable/ic_swipe" + app:icon="@drawable/ic_clear_all_black_24dp" app:summary="@string/settings_swipe_actions_summary" app:title="@string/settings_swipe_actions" /> @@ -132,7 +132,7 @@ android:id="@+id/delivery" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_tick" + app:icon="@drawable/ic_check_white_24dp" app:summary="@string/settings_delivery_summary" app:title="@string/settings_delivery_title" app:widget="@layout/settings_switch_widget" /> @@ -157,7 +157,7 @@ android:id="@+id/mobileOnly" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_device_phone" + app:icon="@drawable/ic_smartphone_black_24dp" app:summary="@string/settings_mobile_summary" app:title="@string/settings_mobile_title" app:widget="@layout/settings_switch_widget" /> @@ -184,7 +184,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="visible" - app:icon="@lineageos.platform:drawable/ic_image_filled" + app:icon="@drawable/ic_photo_size_select_actual_black_24dp" app:title="@string/settings_mms_size_title" tools:summary="100KB" /> @@ -199,7 +199,7 @@ android:id="@+id/sync" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_backup_restore" + app:icon="@drawable/ic_sync_black_24dp" app:summary="@string/settings_sync_summary" app:title="@string/settings_sync_title" /> @@ -218,7 +218,7 @@ android:id="@+id/about" android:layout_width="match_parent" android:layout_height="wrap_content" - app:icon="@lineageos.platform:drawable/ic_info" + app:icon="@drawable/ic_info_black_24dp" app:title="@string/settings_about_title"/> diff --git a/presentation/src/main/res/menu/compose.xml b/presentation/src/main/res/menu/compose.xml index 3d0dac325800d33934acfdda00375a0b387c62a0..06b67f16d2e850bfc1481a033be30da00d60602c 100644 --- a/presentation/src/main/res/menu/compose.xml +++ b/presentation/src/main/res/menu/compose.xml @@ -51,7 +51,7 @@ diff --git a/presentation/src/main/res/menu/main.xml b/presentation/src/main/res/menu/main.xml index 58eaca6f20ce05b7d284c110817660defc17166d..f04c55950bf219869b80cdfd8639b5e6988b9e31 100644 --- a/presentation/src/main/res/menu/main.xml +++ b/presentation/src/main/res/menu/main.xml @@ -22,7 +22,7 @@ @@ -36,7 +36,7 @@ diff --git a/presentation/src/main/res/values-night/colors.xml b/presentation/src/main/res/values-night/colors.xml index f1996c4205f257838ed43ebb5f5a4584b09c62f9..9de9fe9c74fe16bb212c17adbd199a675dec7317 100644 --- a/presentation/src/main/res/values-night/colors.xml +++ b/presentation/src/main/res/values-night/colors.xml @@ -4,4 +4,5 @@ #292929 #DEFFFFFF #DEFFFFFF + #a0a0a0 \ No newline at end of file diff --git a/presentation/src/main/res/values-night/themes.xml b/presentation/src/main/res/values-night/themes.xml index 6bea0e8be6acaf3122138d06731ed1c200fa07db..2028a0043101aef96282e4780a9ba467e090b37c 100644 --- a/presentation/src/main/res/values-night/themes.xml +++ b/presentation/src/main/res/values-night/themes.xml @@ -42,7 +42,7 @@ @color/switchThumbDisabledDark @color/switchTrackEnabledDark @color/switchTrackDisabledDark - @drawable/ic_arrow_back + @drawable/e_ic_back false @drawable/cursor @style/customAlertDialog diff --git a/presentation/src/main/res/values/colors.xml b/presentation/src/main/res/values/colors.xml index 5b448092724e276879ac55ada2095922fdd79ecc..81028e5df102f539bf1698e9646fceae5c1a68bc 100644 --- a/presentation/src/main/res/values/colors.xml +++ b/presentation/src/main/res/values/colors.xml @@ -30,30 +30,30 @@ @color/colorPrimaryDark @color/colorPrimaryDark #88000000 - #0D000000 - #26000000 + @color/e_background_overlay + @color/e_background_overlay - @lineageos.platform:color/color_default_background - @lineageos.platform:color/color_default_background + @color/e_background + @color/e_background - @lineageos.platform:color/color_default_primary_text + @color/e_primary_text_color #4C49555F - @lineageos.platform:color/color_default_secondary_text + @color/e_secondary_text_color #4C70808D - @lineageos.platform:color/color_default_secondary_text + @color/e_secondary_text_color - @lineageos.platform:color/color_default_primary_text + @color/e_primary_text_color #7FFFFFFF - @lineageos.platform:color/color_default_secondary_text + @color/e_secondary_text_color #67ffffff - @lineageos.platform:color/color_default_secondary_text + @color/e_secondary_text_color #0F1113 @color/colorPrimaryDark @color/colorPrimaryDark - @lineageos.platform:color/color_default_divider - @lineageos.platform:color/color_default_divider + @color/e_divider_color + @color/e_divider_color #ECECEC #B9B9B9 @@ -68,14 +68,14 @@ #383838 - @lineageos.platform:color/color_default_accent - @lineageos.platform:color/color_default_primary - @lineageos.platform:color/color_default_primary_dark - @lineageos.platform:color/color_default_accent - @lineageos.platform:color/color_default_selector - @lineageos.platform:color/color_default_foreground - @lineageos.platform:color/color_default_icon - + @color/e_accent + @color/e_action_bar + @color/e_action_bar + @color/e_accent + @color/e_alpha_accent + @color/e_floating_background + @color/e_icon_color + #666666 #FF5D5D #e0e0e0 diff --git a/presentation/src/main/res/values/styles.xml b/presentation/src/main/res/values/styles.xml index c86f7a7b3918da7c1598ac19c2fa1f72c4682f0d..4352d1542a020e5026a7c621cfbdffdf93480a0e 100644 --- a/presentation/src/main/res/values/styles.xml +++ b/presentation/src/main/res/values/styles.xml @@ -122,12 +122,14 @@ 1 1 16sp + @color/navigation_drawer_selector