Skip to content

Commit 4ead877

Browse files
Initial commit
0 parents  commit 4ead877

File tree

240 files changed

+30006
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+30006
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Non-project-specific build files:
2+
build.xml
3+
local.properties
4+
/gradlew
5+
/gradlew.bat
6+
/gradle
7+
# Ant builds
8+
ant-build
9+
ant-gen
10+
# Eclipse builds
11+
gen
12+
out
13+
# Gradle build artifacts
14+
.gradle
15+
.gradletasknamecache
16+
/build
17+
/CordovaLib/build
18+
/app/build
19+
gradle-app.setting
20+
# Android Studio
21+
.idea

CordovaLib/AndroidManifest.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
21+
package="org.apache.cordova" android:versionName="1.0" android:versionCode="1">
22+
</manifest>

CordovaLib/build.gradle

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
/* Licensed to the Apache Software Foundation (ASF) under one
2+
or more contributor license agreements. See the NOTICE file
3+
distributed with this work for additional information
4+
regarding copyright ownership. The ASF licenses this file
5+
to you under the Apache License, Version 2.0 (the
6+
"License"); you may not use this file except in compliance
7+
with the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing,
12+
software distributed under the License is distributed on an
13+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
KIND, either express or implied. See the License for the
15+
specific language governing permissions and limitations
16+
under the License.
17+
*/
18+
19+
ext {
20+
apply from: 'cordova.gradle'
21+
cdvCompileSdkVersion = privateHelpers.getProjectTarget()
22+
cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
23+
}
24+
25+
buildscript {
26+
repositories {
27+
maven {
28+
url "https://maven.google.com"
29+
}
30+
jcenter()
31+
google()
32+
}
33+
dependencies {
34+
// The gradle plugin and the maven plugin have to be updated after each version of Android
35+
// studio comes out
36+
classpath 'com.android.tools.build:gradle:4.0.0'
37+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
38+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
39+
}
40+
}
41+
42+
allprojects {
43+
repositories {
44+
maven {
45+
url "https://maven.google.com"
46+
}
47+
jcenter()
48+
}
49+
}
50+
51+
apply plugin: 'com.android.library'
52+
apply plugin: 'com.github.dcendents.android-maven'
53+
apply plugin: 'com.jfrog.bintray'
54+
55+
group = 'org.apache.cordova'
56+
version = '8.1.0-nightly.2019.6.22.4cf3dcfa'
57+
58+
android {
59+
compileSdkVersion 30
60+
buildToolsVersion '30.0.2'
61+
62+
compileOptions {
63+
sourceCompatibility '1.8'
64+
targetCompatibility '1.8'
65+
}
66+
67+
// For the Android Cordova Lib, we will hardcode the minSdkVersion and not allow changes.
68+
defaultConfig {
69+
minSdkVersion 19
70+
targetSdkVersion 30
71+
}
72+
73+
sourceSets {
74+
main {
75+
manifest.srcFile 'AndroidManifest.xml'
76+
java.srcDirs = ['src']
77+
resources.srcDirs = ['src']
78+
aidl.srcDirs = ['src']
79+
renderscript.srcDirs = ['src']
80+
res.srcDirs = ['res']
81+
assets.srcDirs = ['assets']
82+
}
83+
}
84+
85+
packagingOptions {
86+
exclude 'META-INF/LICENSE'
87+
exclude 'META-INF/LICENSE.txt'
88+
exclude 'META-INF/DEPENDENCIES'
89+
exclude 'META-INF/NOTICE'
90+
}
91+
}
92+
93+
install {
94+
repositories.mavenInstaller {
95+
pom {
96+
project {
97+
packaging 'aar'
98+
name 'Cordova'
99+
url 'https://cordova.apache.org'
100+
licenses {
101+
license {
102+
name 'The Apache Software License, Version 2.0'
103+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
104+
}
105+
}
106+
developers {
107+
developer {
108+
id 'stevengill'
109+
name 'Steve Gill'
110+
}
111+
}
112+
scm {
113+
connection 'scm:git:https://github.com/apache/cordova-android.git'
114+
developerConnection 'scm:git:[email protected]:apache/cordova-android.git'
115+
url 'https://github.com/apache/cordova-android'
116+
117+
}
118+
}
119+
}
120+
}
121+
}
122+
123+
task sourcesJar(type: Jar) {
124+
from android.sourceSets.main.java.srcDirs
125+
classifier = 'sources'
126+
}
127+
128+
artifacts {
129+
archives sourcesJar
130+
}
131+
132+
bintray {
133+
user = System.getenv('BINTRAY_USER')
134+
key = System.getenv('BINTRAY_KEY')
135+
configurations = ['archives']
136+
pkg {
137+
repo = 'maven'
138+
name = 'cordova-android'
139+
userOrg = 'cordova'
140+
licenses = ['Apache-2.0']
141+
vcsUrl = 'https://github.com/apache/cordova-android'
142+
websiteUrl = 'https://cordova.apache.org'
143+
issueTrackerUrl = 'https://github.com/apache/cordova-android/issues'
144+
publicDownloadNumbers = true
145+
licenses = ['Apache-2.0']
146+
labels = ['android', 'cordova', 'phonegap']
147+
version {
148+
name = '8.1.0-nightly.2019.6.22.4cf3dcfa'
149+
released = new Date()
150+
vcsTag = '8.1.0-nightly.2019.6.22.4cf3dcfa'
151+
}
152+
}
153+
}

0 commit comments

Comments
 (0)