kizitonwose / Calendar

A highly customizable calendar view and compose library for Android.
MIT License
4.5k stars 492 forks source link

I am unable to use this library am I doing something wrong Please I need help #525

Closed navneetpalofficial closed 5 months ago

navneetpalofficial commented 5 months ago

plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' id 'kotlin-kapt' id 'com.google.dagger.hilt.android' id 'kotlin-parcelize' }

android { namespace 'com.example.mogmaxing' compileSdk 34

defaultConfig {
    applicationId "com.example.mogmaxing"
    minSdk 24
    targetSdk 34
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    vectorDrawables {
        useSupportLibrary true
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    coreLibraryDesugaringEnabled true
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}
buildFeatures {
    compose true
}
composeOptions {
    kotlinCompilerExtensionVersion '1.5.1'
}
packaging {
    resources {
        excludes += '/META-INF/{AL2.0,LGPL2.1}'
    }
}

}

dependencies {

implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation platform('androidx.compose:compose-bom:2023.08.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2023.08.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'

//Splash Api
implementation "androidx.core:core-splashscreen:1.0.1"

//Compose Navigation
def nav_version = "2.6.0"
implementation "androidx.navigation:navigation-compose:$nav_version"

//Dagger Hilt
implementation "com.google.dagger:hilt-android:2.45"
kapt "com.google.dagger:hilt-compiler:2.45"
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'

//Retrofit
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'

//Coil
implementation("io.coil-kt:coil-compose:2.4.0")

//Datastore
implementation "androidx.datastore:datastore-preferences:1.0.0"

//Compose Foundation
implementation "androidx.compose.foundation:foundation:1.4.3"

//Accompanist
implementation "com.google.accompanist:accompanist-systemuicontroller:0.31.4-beta"

//Paging 3
def paging_version = "3.1.1"
implementation "androidx.paging:paging-runtime:$paging_version"
implementation "androidx.paging:paging-compose:3.2.0-rc01"

//Room
def room_version = "2.5.2"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:2.5.2"

//Calender
implementation 'com.kizitonwose.calendar:compose:1.5.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'

} Add any other information about the bug here.

navneetpalofficial commented 5 months ago

I am dumb now I fixed it