Skip to content

Commit 5868fd2

Browse files
committed
fix: added examples to github
1 parent 323e14e commit 5868fd2

File tree

2,731 files changed

+439134
-1
lines changed

Some content is hidden

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

2,731 files changed

+439134
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/examples/
21
/tmp/
32
node_modules/
43

examples/cordova1/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# OS X
2+
.DS_Store

examples/cordova1/build.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"ios": {
3+
"debug": {
4+
"developmentTeam": "PW4Q8885U7"
5+
},
6+
"release": {
7+
"developmentTeam": "PW4Q8885U7"
8+
}
9+
}
10+
}

examples/cordova1/config.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.eneff.branch.cordovatestbed" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<branch-config>
4+
<branch-key value="key_live_ndqptlgXNE4LHqIahH1WIpbiyFlb62J3" />
5+
<uri-scheme value="branchcordova" />
6+
<link-domain value="cordova.app.link" />
7+
<ios-team-release value="PW4Q8885U7" />
8+
</branch-config>
9+
<preference name="android-minSdkVersion" value="16" />
10+
<name>Cordova1</name>
11+
<description>Testing App For Branch Cordova</description>
12+
<author email="[email protected]" href="https://support.branch.io/support/tickets/new">Branch Support</author>
13+
<content src="index.html" />
14+
<plugin name="cordova-plugin-console" />
15+
<plugin name="cordova-plugin-whitelist" spec="1" />
16+
<access origin="*" />
17+
<allow-intent href="http://*/*" />
18+
<allow-intent href="https://*/*" />
19+
<allow-intent href="tel:*" />
20+
<allow-intent href="sms:*" />
21+
<allow-intent href="mailto:*" />
22+
<allow-intent href="geo:*" />
23+
<platform name="android">
24+
<allow-intent href="market:*" />
25+
</platform>
26+
<platform name="ios">
27+
<allow-intent href="itms:*" />
28+
<allow-intent href="itms-apps:*" />
29+
</platform>
30+
<plugin name="branch-cordova-sdk" spec="file:../../tmp" />
31+
<engine name="ios" spec="~4.5.4" />
32+
<engine name="android" spec="~7.0.0" />
33+
</widget>

examples/cordova1/hooks/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
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+
-->
21+
# Cordova Hooks
22+
23+
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.

examples/cordova1/package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "helloworld",
3+
"displayName": "HelloCordova",
4+
"version": "1.0.0",
5+
"description": "A sample Apache Cordova application that responds to the deviceready event.",
6+
"main": "index.js",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"author": "Apache Cordova Team",
11+
"license": "Apache-2.0",
12+
"dependencies": {
13+
"branch-cordova-sdk": "file:../../tmp",
14+
"cordova-android": "^7.0.0",
15+
"cordova-ios": "^4.5.4",
16+
"cordova-plugin-console": "^1.1.0",
17+
"cordova-plugin-whitelist": "^1.3.3"
18+
},
19+
"cordova": {
20+
"plugins": {
21+
"branch-cordova-sdk": {},
22+
"cordova-plugin-console": {},
23+
"cordova-plugin-whitelist": {}
24+
},
25+
"platforms": [
26+
"ios",
27+
"android"
28+
]
29+
}
30+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 builds
14+
/build
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
<uses-sdk android:minSdkVersion="16" />
23+
</manifest>
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
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+
jcenter()
28+
maven {
29+
url "https://maven.google.com"
30+
}
31+
}
32+
33+
dependencies {
34+
classpath 'com.android.tools.build:gradle:3.0.0'
35+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
36+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
37+
}
38+
}
39+
40+
apply plugin: 'com.android.library'
41+
apply plugin: 'com.github.dcendents.android-maven'
42+
apply plugin: 'com.jfrog.bintray'
43+
44+
group = 'org.apache.cordova'
45+
version = '7.0.0'
46+
47+
android {
48+
compileSdkVersion cdvCompileSdkVersion
49+
buildToolsVersion cdvBuildToolsVersion
50+
publishNonDefault true
51+
52+
compileOptions {
53+
sourceCompatibility JavaVersion.VERSION_1_8
54+
targetCompatibility JavaVersion.VERSION_1_8
55+
}
56+
57+
sourceSets {
58+
main {
59+
manifest.srcFile 'AndroidManifest.xml'
60+
java.srcDirs = ['src']
61+
resources.srcDirs = ['src']
62+
aidl.srcDirs = ['src']
63+
renderscript.srcDirs = ['src']
64+
res.srcDirs = ['res']
65+
assets.srcDirs = ['assets']
66+
}
67+
}
68+
69+
packagingOptions {
70+
exclude 'META-INF/LICENSE'
71+
exclude 'META-INF/LICENSE.txt'
72+
exclude 'META-INF/DEPENDENCIES'
73+
exclude 'META-INF/NOTICE'
74+
}
75+
}
76+
77+
install {
78+
repositories.mavenInstaller {
79+
pom {
80+
project {
81+
packaging 'aar'
82+
name 'Cordova'
83+
url 'https://cordova.apache.org'
84+
licenses {
85+
license {
86+
name 'The Apache Software License, Version 2.0'
87+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
88+
}
89+
}
90+
developers {
91+
developer {
92+
id 'stevengill'
93+
name 'Steve Gill'
94+
}
95+
}
96+
scm {
97+
connection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
98+
developerConnection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
99+
url 'https://git-wip-us.apache.org/repos/asf?p=cordova-android'
100+
101+
}
102+
}
103+
}
104+
}
105+
}
106+
107+
task sourcesJar(type: Jar) {
108+
from android.sourceSets.main.java.srcDirs
109+
classifier = 'sources'
110+
}
111+
112+
artifacts {
113+
archives sourcesJar
114+
}
115+
116+
bintray {
117+
user = System.getenv('BINTRAY_USER')
118+
key = System.getenv('BINTRAY_KEY')
119+
configurations = ['archives']
120+
pkg {
121+
repo = 'maven'
122+
name = 'cordova-android'
123+
userOrg = 'cordova'
124+
licenses = ['Apache-2.0']
125+
vcsUrl = 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
126+
websiteUrl = 'https://cordova.apache.org'
127+
issueTrackerUrl = 'https://issues.apache.org/jira/browse/CB'
128+
publicDownloadNumbers = true
129+
licenses = ['Apache-2.0']
130+
labels = ['android', 'cordova', 'phonegap']
131+
version {
132+
name = '7.0.0'
133+
released = new Date()
134+
vcsTag = '7.0.0'
135+
}
136+
}
137+
}

0 commit comments

Comments
 (0)