mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-12 14:35:06 +00:00
59 lines
1.6 KiB
Groovy
59 lines
1.6 KiB
Groovy
|
ext {
|
||
|
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
|
||
|
cordovaAndroidVersion = project.hasProperty('cordovaAndroidVersion') ? rootProject.ext.cordovaAndroidVersion : '7.0.0'
|
||
|
}
|
||
|
|
||
|
buildscript {
|
||
|
repositories {
|
||
|
google()
|
||
|
jcenter()
|
||
|
}
|
||
|
dependencies {
|
||
|
classpath 'com.android.tools.build:gradle:4.2.1'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
apply plugin: 'com.android.library'
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
|
||
|
defaultConfig {
|
||
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
|
||
|
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
|
||
|
versionCode 1
|
||
|
versionName "1.0"
|
||
|
}
|
||
|
lintOptions {
|
||
|
abortOnError false
|
||
|
}
|
||
|
compileOptions {
|
||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||
|
}
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
jcenter()
|
||
|
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
|
||
|
|
||
|
// SUB-PROJECT DEPENDENCIES END
|
||
|
}
|
||
|
|
||
|
// PLUGIN GRADLE EXTENSIONS START
|
||
|
apply from: "cordova.variables.gradle"
|
||
|
// PLUGIN GRADLE EXTENSIONS END
|
||
|
|
||
|
for (def func : cdvPluginPostBuildExtras) {
|
||
|
func()
|
||
|
}
|