You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							80 lines
						
					
					
						
							3.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							80 lines
						
					
					
						
							3.0 KiB
						
					
					
				
								apply plugin: 'com.android.application'
							 | 
						|
								
							 | 
						|
								android {
							 | 
						|
								    namespace "com.timesafari.dailynotification.test"
							 | 
						|
								    compileSdkVersion rootProject.ext.compileSdkVersion
							 | 
						|
								    defaultConfig {
							 | 
						|
								        applicationId "com.timesafari.dailynotification.test"
							 | 
						|
								        minSdkVersion rootProject.ext.minSdkVersion
							 | 
						|
								        targetSdkVersion rootProject.ext.targetSdkVersion
							 | 
						|
								        versionCode 1
							 | 
						|
								        versionName "1.0"
							 | 
						|
								        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
							 | 
						|
								        aaptOptions {
							 | 
						|
								             // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
							 | 
						|
								             // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
							 | 
						|
								            ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
							 | 
						|
								        }
							 | 
						|
								    }
							 | 
						|
								    compileOptions {
							 | 
						|
								        sourceCompatibility JavaVersion.VERSION_17
							 | 
						|
								        targetCompatibility JavaVersion.VERSION_17
							 | 
						|
								    }
							 | 
						|
								    buildTypes {
							 | 
						|
								        release {
							 | 
						|
								            minifyEnabled false
							 | 
						|
								            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
							 | 
						|
								        }
							 | 
						|
								        debug {
							 | 
						|
								            minifyEnabled false
							 | 
						|
								            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
							 | 
						|
								        }
							 | 
						|
								    }
							 | 
						|
								    
							 | 
						|
								    lintOptions {
							 | 
						|
								        // Don't abort build on lint errors in dependencies (like Capacitor)
							 | 
						|
								        abortOnError false
							 | 
						|
								        // Ignore lint warnings in dependencies
							 | 
						|
								        checkDependencies false
							 | 
						|
								        // Only check our own code
							 | 
						|
								        checkReleaseBuilds false
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								repositories {
							 | 
						|
								    flatDir{
							 | 
						|
								        dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								dependencies {
							 | 
						|
								    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
							 | 
						|
								    implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
							 | 
						|
								    implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
							 | 
						|
								    implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
							 | 
						|
								    implementation project(':capacitor-android')
							 | 
						|
								    
							 | 
						|
								    // Capacitor annotation processor for automatic plugin discovery
							 | 
						|
								    annotationProcessor project(':capacitor-android')
							 | 
						|
								    
							 | 
						|
								    // Required dependencies for the plugin
							 | 
						|
								    implementation 'androidx.work:work-runtime:2.9.0'
							 | 
						|
								    implementation 'androidx.lifecycle:lifecycle-service:2.7.0'
							 | 
						|
								    implementation 'com.google.code.gson:gson:2.10.1'
							 | 
						|
								    
							 | 
						|
								    testImplementation "junit:junit:$junitVersion"
							 | 
						|
								    androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
							 | 
						|
								    androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
							 | 
						|
								    implementation project(':capacitor-cordova-android-plugins')
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								apply from: 'capacitor.build.gradle'
							 | 
						|
								
							 | 
						|
								try {
							 | 
						|
								    def servicesJSON = file('google-services.json')
							 | 
						|
								    if (servicesJSON.text) {
							 | 
						|
								        apply plugin: 'com.google.gms.google-services'
							 | 
						|
								    }
							 | 
						|
								} catch(Exception e) {
							 | 
						|
								    logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
							 | 
						|
								}
							 | 
						|
								
							 |