apply plugin: 'com.android.application'
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

android {
    signingConfigs {
        release {
            storeFile file('/Volumes/GFAITH EXT/PROJETS/MOBILES/kenmoica.com/keystore')
            storePassword 'KenMoiCa202411!'
            keyPassword 'KenMoiCa202411!'
            keyAlias = 'KenMoiCa'
        }
    }
    compileSdk 34

    defaultConfig {
        applicationId "com.kenmoica"
        minSdkVersion 21
        targetSdkVersion 34
        versionCode 1
        /************ Versioning *************
        * version naming : (Major version).(Minor version).(Revision number).(Build number)
        * ************************************/
        versionName "build 1.0.10.19"
        multiDexEnabled = true

        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
    }

    buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url "https://jitpack.io"
        }
    }
    android {
        useLibrary 'org.apache.http.legacy'
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
    packagingOptions {
        resources {
            excludes += ['META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/NOTICE.txt', 'META-INF/LICENSE', 'META-INF/LICENSE.txt']
        }
    }
    buildFeatures {
        viewBinding true
    }
    namespace 'com.kenmoica'
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation 'com.google.android.material:material:1.12.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.2.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.3.2'

    implementation platform('com.google.firebase:firebase-bom:33.6.0')
    implementation 'com.google.firebase:firebase-analytics'

    implementation 'com.google.android.gms:play-services-gcm:17.0.0'
    implementation 'com.google.android.gms:play-services-wallet:19.4.0'
    implementation 'com.google.android.gms:play-services-location:21.3.0'
    implementation 'com.google.android.gms:play-services-maps:19.0.0'

    implementation 'dev.yvessoro_toolkit:yvessoro-toolkit:1.1.2'
    implementation 'com.onesignal:OneSignal:[5.0.0, 5.99.99]'
    implementation 'dev.yvessoro_toolkit:yvessoro-toolkit:1.1.2'
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'istat.android.data.access.sqlite:istat-access-sqlite:1.2.9'
    implementation 'com.ramotion.paperonboarding:paper-onboarding:1.1.3'
    implementation 'com.crystal:crystalpreloaders:1.0.0'
    implementation 'com.github.bumptech.glide:glide:4.14.1'
    implementation 'com.github.bumptech.glide:annotations:4.14.1'
    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
    implementation 'androidx.activity:activity:1.9.3'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.14.1'
    implementation 'com.github.yalantis:ucrop:2.2.6'
    implementation 'gun0912.ted:tedpermission:2.2.3'
    implementation 'com.karumi:dexter:6.2.3'
    implementation 'com.github.f0ris.sweetalert:library:1.6.2'
    implementation 'com.github.chrisbanes:PhotoView:2.1.3'
    implementation 'androidx.palette:palette:1.0.0'
    implementation 'io.sentry:sentry-android:6.5.0-beta.2'
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    implementation 'com.facebook.shimmer:shimmer:0.5.0'
    implementation 'com.github.RaviKoradiya:ZoomableImageView:1.1.1'
    implementation 'com.cinetpay:androidsdk:1.0.0'

    def lottieVersion = '3.6.1'
    implementation "com.airbnb.android:lottie:$lottieVersion"

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'

}