// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.4.2' } } apply from: "variables.gradle" apply plugin: 'com.android.library' ext { compileSdkVersion = 33 minSdkVersion = 21 targetSdkVersion = 33 buildToolsVersion = '33.0.0' } android { namespace "com.timesafari.dailynotification" compileSdkVersion project.ext.compileSdkVersion buildToolsVersion project.ext.buildToolsVersion defaultConfig { minSdkVersion project.ext.minSdkVersion targetSdkVersion project.ext.targetSdkVersion versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } lintOptions { abortOnError false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } testOptions { unitTests { includeAndroidResources = true } } } allprojects { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" options.compilerArgs << "-Xlint:deprecation" } } repositories { google() mavenCentral() maven { url "https://jitpack.io" } maven { url "${project.rootDir}/capacitor-cordova-android-plugins/src/main/libs" } maven { url "${project.rootDir}/libs" } } dependencies { // AndroidX Core implementation 'androidx.core:core:1.7.0' implementation 'androidx.core:core-ktx:1.7.0' // WorkManager for background tasks implementation 'androidx.work:work-runtime:2.7.1' // Capacitor dependencies implementation project(':capacitor-android') implementation project(':capacitor-core') // Testing dependencies testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:4.5.1' testImplementation 'org.robolectric:robolectric:4.8' testImplementation 'androidx.test:core:1.4.0' testImplementation 'androidx.test:runner:1.4.0' testImplementation 'androidx.test.ext:junit:1.1.3' // AndroidX Test androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' // AndroidX AppCompat implementation 'androidx.appcompat:appcompat:1.6.1' // AndroidX Core App implementation 'androidx.core:core-app:1.0.0' // AndroidX Core AppCompat implementation 'androidx.core:core-appcompat:1.0.0' // AndroidX Core AppCompat Resources implementation 'androidx.core:core-appcompat-resources:1.0.0' }