Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21f8d91c authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Migrate build configuration to TOML

parent 8209540f
Loading
Loading
Loading
Loading
+3 −21
Original line number Diff line number Diff line
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
plugins {
    alias(libs.plugins.android.application) apply false
    alias(libs.plugins.android.library) apply false
}
    dependencies {
        classpath 'com.android.tools.build:gradle:8.13.1'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
        maven { url 'https://gitlab.e.foundation/api/v4/groups/9/-/packages/maven'}
    }
}

apply from: "dependencies.gradle"

dependencies.gradle

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
def jems_version = '1.43'
def contentpal_version = '0.6'
def androidx_test_runner_version = '1.7.0'

ext.deps = [
        // Support & Google libraries
        support_appcompat  : 'androidx.appcompat:appcompat:1.7.1',
        support_annotations: 'androidx.annotation:annotation:1.9.1',
        support_design     : 'com.google.android.material:material:1.13.0',
        android_dashclock  : 'com.google.android.apps.dashclock:dashclock-api:2.0.0',

        // dmfs
        jems               : "org.dmfs:jems:$jems_version",
        datetime           : 'org.dmfs:rfc5545-datetime:0.2.4',
        lib_recur          : 'org.dmfs:lib-recur:0.12.2',
        xml_magic          : 'org.dmfs:android-xml-magic:0.1.1',
        color_picker       : 'com.github.dmfs:color-picker:1.3',
        android_carrot     : 'com.github.dmfs.androidcarrot:androidcarrot:13edc04',
        bolts_color        : 'com.github.dmfs.Bolts:color-bolts:0.1',
        contentpal         : "com.github.dmfs.contentpal:contentpal:$contentpal_version",
        retention_magic    : 'com.github.dmfs:retention-magic:1.3',

        // 3rd party
        codeka_carrot      : 'au.com.codeka:carrot:2.4.5',

        // Testing
        junit              : 'junit:junit:4.13.2',
        hamcrest           : 'org.hamcrest:hamcrest-library:3.0',
        mockito            : 'org.mockito:mockito-core:5.20.0',
        robolectric        : 'org.robolectric:robolectric:4.16',
        support_test_runner: "androidx.test:runner:$androidx_test_runner_version",
        support_test_rules : "androidx.test:rules:$androidx_test_runner_version",

        // dmfs testing
        jems_testing       : "org.dmfs:jems-testing:$jems_version",
        contenttestpal     : "com.github.dmfs.contentpal:contenttestpal:$contentpal_version",
        contentpal_testing : "com.github.dmfs.contentpal:contentpal-testing:$contentpal_version"
]
 No newline at end of file
+59 −0
Original line number Diff line number Diff line
[versions]
android-carrot = "13edc04"
android-gradle-plugin = "8.13.1"
androidx-test-runner = "1.7.0"
annotation = "1.9.1"
appcompat = "1.7.1"
bolts-color = "0.1"
codeka-carrot = "2.4.5"
color-picker = "1.3"
contentpal = "0.6"
datetime = "0.2.4"
elib = "0.0.1-alpha11"
hamcrest = "3.0"
jems = "1.43"
junit = "4.13.2"
lib-recur = "0.12.2"
material = "1.13.0"
mockito = "5.20.0"
preference = "1.1.1"
recurpicker = "2.1.4"
retention-magic = "1.3"
robolectric = "4.16"
rxandroid = "2.1.1"
rxjava = "2.2.21"
xml-magic = "0.1.1"

[libraries]
android-carrot = { module = "com.github.dmfs.androidcarrot:androidcarrot", version.ref = "android-carrot" }
android-dashclock = { module = "com.google.android.apps.dashclock:dashclock-api", version = "2.0.0" }
bolts-color = { module = "com.github.dmfs.Bolts:color-bolts", version.ref = "bolts-color" }
codeka-carrot = { module = "au.com.codeka:carrot", version.ref = "codeka-carrot" }
color-picker = { module = "com.github.dmfs:color-picker", version.ref = "color-picker" }
contentpal = { module = "com.github.dmfs.contentpal:contentpal", version.ref = "contentpal" }
contentpal-testing = { module = "com.github.dmfs.contentpal:contentpal-testing", version.ref = "contentpal" }
contenttestpal = { module = "com.github.dmfs.contentpal:contenttestpal", version.ref = "contentpal" }
datetime = { module = "org.dmfs:rfc5545-datetime", version.ref = "datetime" }
elib = { module = "foundation.e:elib", version.ref = "elib" }
hamcrest = { module = "org.hamcrest:hamcrest-library", version.ref = "hamcrest" }
jems = { module = "org.dmfs:jems", version.ref = "jems" }
jems-testing = { module = "org.dmfs:jems-testing", version.ref = "jems" }
junit = { module = "junit:junit", version.ref = "junit" }
lib-recur = { module = "org.dmfs:lib-recur", version.ref = "lib-recur" }
material = { module = "com.google.android.material:material", version.ref = "material" }
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
preference = { module = "androidx.preference:preference", version.ref = "preference" }
recurpicker = { module = "com.maltaisn:recurpicker", version.ref = "recurpicker" }
retention-magic = { module = "com.github.dmfs:retention-magic", version.ref = "retention-magic" }
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
rxandroid = { module = "io.reactivex.rxjava2:rxandroid", version.ref = "rxandroid" }
rxjava = { module = "io.reactivex.rxjava2:rxjava", version.ref = "rxjava" }
support-annotations = { module = "androidx.annotation:annotation", version.ref = "annotation" }
support-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
support-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test-runner" }
support-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" }
xml-magic = { module = "org.dmfs:android-xml-magic", version.ref = "xml-magic" }

[plugins]
android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" }
android-library = { id = "com.android.library", version.ref = "android-gradle-plugin" }
+3 −1
Original line number Diff line number Diff line
apply plugin: 'com.android.library'
plugins {
    alias(libs.plugins.android.library)
}

android {
    namespace = "org.dmfs.tasks.contract"
+19 −17
Original line number Diff line number Diff line
apply plugin: 'com.android.library'
plugins {
    alias(libs.plugins.android.library)
}

android {
    namespace = "org.dmfs.tasks.provider"
@@ -29,23 +31,23 @@ android {

dependencies {
    implementation project(':opentasks-contract')
    implementation deps.datetime
    implementation deps.lib_recur
    implementation deps.jems
    implementation libs.datetime
    implementation libs.lib.recur
    implementation libs.jems

    testImplementation deps.robolectric
    testImplementation deps.junit
    testImplementation deps.mockito
    testImplementation deps.jems_testing
    testImplementation deps.hamcrest
    testImplementation libs.robolectric
    testImplementation libs.junit
    testImplementation libs.mockito
    testImplementation libs.jems.testing
    testImplementation libs.hamcrest

    androidTestImplementation project(':opentaskspal')
    androidTestImplementation deps.contenttestpal
    androidTestImplementation deps.support_annotations
    androidTestImplementation deps.support_test_runner
    androidTestImplementation deps.support_test_rules
    androidTestImplementation deps.mockito
    androidTestImplementation deps.jems_testing
    androidTestImplementation deps.hamcrest
    androidTestImplementation deps.contentpal_testing
    androidTestImplementation libs.contenttestpal
    androidTestImplementation libs.support.annotations
    androidTestImplementation libs.support.test.runner
    androidTestImplementation libs.support.test.rules
    androidTestImplementation libs.mockito
    androidTestImplementation libs.jems.testing
    androidTestImplementation libs.hamcrest
    androidTestImplementation libs.contentpal.testing
}
Loading