mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
63 lines
2.0 KiB
Groovy
63 lines
2.0 KiB
Groovy
ext {
|
|
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.1'
|
|
cordovaAndroidVersion = project.hasProperty('cordovaAndroidVersion') ? rootProject.ext.cordovaAndroidVersion : '10.1.1'
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.2.1'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
|
|
defaultConfig {
|
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
flatDir{
|
|
dirs 'src/main/libs', 'libs'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
|
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
|
|
// SUB-PROJECT DEPENDENCIES START
|
|
implementation "com.soundcloud.android:android-crop:1.0.0@aar"
|
|
implementation "androidx.appcompat:appcompat:1.0.0"
|
|
implementation "com.android.support:support-v4:27.+"
|
|
implementation "com.squareup.okhttp:okhttp-urlconnection:2+"
|
|
// SUB-PROJECT DEPENDENCIES END
|
|
}
|
|
|
|
// PLUGIN GRADLE EXTENSIONS START
|
|
apply from: "cordova.variables.gradle"
|
|
apply from: "../../node_modules/cordova-plugin-ffmpeg/src/android/ffmpeg-kit.gradle"
|
|
apply from: "../../node_modules/cordova-android-support-gradle-release/cordova-android-support-gradle-release.gradle"
|
|
// PLUGIN GRADLE EXTENSIONS END
|
|
|
|
for (def func : cdvPluginPostBuildExtras) {
|
|
func()
|
|
} |