2014-09-22 21:35:39 -04:00
|
|
|
/* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
2014-09-04 10:49:43 -07:00
|
|
|
*/
|
|
|
|
|
2017-02-14 16:31:27 -08:00
|
|
|
ext {
|
|
|
|
apply from: 'cordova.gradle'
|
|
|
|
}
|
|
|
|
|
2014-08-18 09:40:33 -04:00
|
|
|
buildscript {
|
2021-07-06 03:38:28 -03:00
|
|
|
apply from: 'cordova.gradle'
|
2021-03-27 12:11:56 -03:00
|
|
|
apply from: 'repositories.gradle'
|
2021-07-06 03:38:28 -03:00
|
|
|
|
2021-03-27 12:11:56 -03:00
|
|
|
repositories repos
|
2014-08-18 09:40:33 -04:00
|
|
|
|
2015-08-10 16:43:41 -07:00
|
|
|
dependencies {
|
2021-07-03 13:04:13 +09:00
|
|
|
// Android Gradle Plugin (AGP) Build Tools
|
2021-07-06 03:38:28 -03:00
|
|
|
classpath "com.android.tools.build:gradle:${cordovaConfig.AGP_VERSION}"
|
2014-08-18 09:40:33 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-06 13:33:04 +09:00
|
|
|
allprojects {
|
2021-03-27 12:11:56 -03:00
|
|
|
apply from: 'repositories.gradle'
|
|
|
|
repositories repos
|
2019-04-06 13:33:04 +09:00
|
|
|
}
|
|
|
|
|
2016-06-24 10:37:09 +05:30
|
|
|
apply plugin: 'com.android.library'
|
2021-07-06 15:57:40 +09:00
|
|
|
apply plugin: 'maven-publish'
|
2017-02-13 16:37:39 -08:00
|
|
|
|
2014-08-18 09:40:33 -04:00
|
|
|
android {
|
2021-07-06 03:38:28 -03:00
|
|
|
compileSdkVersion cordovaConfig.SDK_VERSION
|
|
|
|
buildToolsVersion cordovaConfig.BUILD_TOOLS_VERSION
|
2014-08-18 09:40:33 -04:00
|
|
|
|
|
|
|
compileOptions {
|
2017-11-15 11:39:32 -08:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2014-08-18 09:40:33 -04:00
|
|
|
}
|
|
|
|
|
2020-11-18 18:48:46 +01:00
|
|
|
// For the Android Cordova Lib, we allow changing the minSdkVersion, but it is at the users own risk
|
2019-04-06 13:28:25 +09:00
|
|
|
defaultConfig {
|
2021-07-06 03:38:28 -03:00
|
|
|
minSdkVersion cordovaConfig.MIN_SDK_VERSION
|
2019-04-06 13:28:25 +09:00
|
|
|
}
|
|
|
|
|
2014-08-18 09:40:33 -04:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
resources.srcDirs = ['src']
|
|
|
|
aidl.srcDirs = ['src']
|
|
|
|
renderscript.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
}
|
|
|
|
}
|
2017-02-13 16:37:39 -08:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/LICENSE.txt'
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-06 15:57:40 +09:00
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
from android.sourceSets.main.java.srcDirs
|
|
|
|
classifier = 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
Cordova(MavenPublication) {
|
|
|
|
groupId = 'org.apache.cordova'
|
|
|
|
artifactId = 'framework'
|
|
|
|
version = '10.0.0-dev'
|
|
|
|
|
|
|
|
artifact(sourcesJar)
|
|
|
|
artifact("$buildDir/outputs/aar/framework-release.aar")
|
|
|
|
|
|
|
|
pom {
|
|
|
|
name = 'Cordova'
|
|
|
|
description = 'A library to build Cordova-based projects for the Android platform.'
|
|
|
|
url = 'https://cordova.apache.org'
|
|
|
|
|
2017-02-13 16:37:39 -08:00
|
|
|
licenses {
|
|
|
|
license {
|
2021-07-06 15:57:40 +09:00
|
|
|
name = 'Apache License, Version 2.0'
|
|
|
|
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
|
2017-02-13 16:37:39 -08:00
|
|
|
}
|
|
|
|
}
|
2021-07-06 15:57:40 +09:00
|
|
|
|
2017-02-13 16:37:39 -08:00
|
|
|
developers {
|
|
|
|
developer {
|
2021-07-06 15:57:40 +09:00
|
|
|
id = 'stevengill'
|
|
|
|
name = 'Steve Gill'
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id = 'erisu'
|
|
|
|
name = 'Bryan Ellis'
|
|
|
|
email = 'erisu@apache.org'
|
2017-02-13 16:37:39 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-06 15:57:40 +09:00
|
|
|
scm {
|
|
|
|
connection = 'scm:git:https://github.com/apache/cordova-android.git'
|
|
|
|
developerConnection = 'scm:git:git@github.com:apache/cordova-android.git'
|
|
|
|
url = 'https://github.com/apache/cordova-android'
|
2017-02-13 16:37:39 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-15 23:52:14 +02:00
|
|
|
dependencies {
|
2021-07-06 03:38:28 -03:00
|
|
|
implementation "androidx.appcompat:appcompat:${cordovaConfig.ANDROIDX_APP_COMPAT_VERSION}"
|
2021-04-15 23:52:14 +02:00
|
|
|
}
|
|
|
|
|
2021-04-22 14:32:14 +02:00
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.webkit:webkit:1.3.0'
|
|
|
|
}
|