szkolny/navlib/build.gradle

60 lines
1.5 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion setup.compileSdk
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
consumerProguardFiles 'consumer-rules.pro'
vectorDrawables.useSupportLibrary = true
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
multiDexEnabled true
}
kotlinOptions {
jvmTarget = "1.8"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding = true
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
viewBinding = true
}
packagingOptions {
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
resources {
excludes += ['META-INF/library-core_release.kotlin_module']
}
}
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
namespace 'pl.szczodrzynski.navlib'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
implementation "androidx.appcompat:appcompat:1.7.0"
implementation "androidx.core:core-ktx:1.13.1"
implementation "androidx.recyclerview:recyclerview:1.3.2"
implementation "com.google.android.material:material:1.12.0"
api "com.mikepenz:materialize:1.2.1"
[UI] Upgrade to Material 3 design, refactor some core elements (#201) * Material 3 theme and color support, filled cards * Change drawer header, dark bottombar color * Replace MaterialComponents with Material3 * wielki powrót pr m3 do szkolnego (nie czytajcie tego kodu) * fix M3 UI code & upgrade kotlin * update dependencies * fix missing Intent receiver flags for Tiramisu+ * fix kapt errors related to SelectiveDAO + migrate BuildConfig * adapt code to updated dependencies + align lessons (based by szkolny-eu/szkolny-android#196) * fix: no query filtering * fix: duplicated items in about card * fix: "Back button opens drawer" (redundant super call) * fix: too small heading in agenda dialog * adapt notes fragment to MD3 * add lock layout function (szkolny-eu/szkolny-android#199) * hide classroom heading when no classroom is specified * add support for grade column codes * grades: join code and category together * add cosmetic ui changes + fix build issues * fix proguard rules (attempt 1) * add new Retrofit2 rules * add new ProGuard rules + fix QR scanning * fix agenda view crash when building release variant * improve LessonDetailsDialog * remove duplicated string extension * set separate app ID & icon for debug version * remove unneeded import statement * fix collapsing toolbar title when doing back gesture * remove useless dependencies * fix UI issues on old Android versions * fix missing color resources + cleanup dependencies * fix release building issue * fix release building issue & remove ripple from NavView * move version badge to the top bar * Revert changes introduced by rebase * Update NavLib from sadorowo/NavLib * Revert "add lock layout function (szkolny-eu/szkolny-android#199)" This reverts commit 2fd7038d0c0b43f2d39333d2e556bde066cd28b6. * Revert "add support for grade column codes" * Revert unnecessary code changes, part 1 * Lower minSdk to 19 * Revert unnecessary code changes, part 2 * Add new application logo * Restore bottom bar support in NavLib, revert unnecessary changes * Use new IconicsMaterialButton in MessageFragment * Migrate NavView to view binding * Support IconButton in IconicsMaterialButton * Cleanup NavLib w600dp styles * Remove NavLib text styles * Refactor all application themes, update styles in layouts * Move enums and config entry to .data, fix app crashing * Rename non-theme styles to AppStyle * Restructure app config classes, move config to .data * Add Theme enum and UiManager, support basic theme changing * Actually support basic theme changing * Serialize enum as string, fix config migration, bring back DebugDb * Fix changing themes, apply night mode in App * Fix resolving ColorStateList attributes, add LabPlaygroundFragment * add Iconics methods into ProGuard rules * Replace home card icon buttons, remove unused icons * Update gradle properties * Update build.gradle * Remove unnecessary dependencies * Remove playstore icon * Apply fixes after review --------- Co-authored-by: Adam Kasprzycki <66315787+santoni0@users.noreply.github.com> Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2024-06-30 09:12:07 -05:00
api "com.mikepenz:materialdrawer:9.0.1"
api "com.mikepenz:iconics-core:5.3.2"
api "com.mikepenz:itemanimators:1.1.0"
compileOnly "pl.droidsonroids.gif:android-gif-drawable:1.2.15"
implementation project(":navlib-font")
}