Skip to content

Commit c1736ac

Browse files
committed
ex01-cordova-calculator
1 parent 9f90298 commit c1736ac

15 files changed

+1405
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This repository has only master branch containing all examples. You can fork, st
4040
```javascript
4141
$ git clone https://github.com/progaurab/apache-cordova-training-instilllearning.git
4242
$ cd apache-cordova-training-instilllearning
43-
$ cd Ex1-Cordova-Clock-Display
43+
$ cd ex01-cordova-calculator
4444
```
4545
#### Step 5: To install Cordova (ignore if installed already)
4646
```javascript
@@ -51,7 +51,14 @@ $ npm install -g cordova
5151
$ cordova platform add browser
5252
$ cordova run browser
5353
```
54+
#### Open Android App in Android Studio and Run
55+
![ex01-cordova-calculator](images/ex01-cordova-calculator.png)
5456
## Other usefull commands
57+
#### Create new cordova application
58+
```
59+
$ cordova create ex01-cordova-calculator com.instilllearning.ex01 ILCalculator
60+
$ cd ex01-cordova-calculator
61+
```
5562
##### Add other platform
5663
```
5764
$ cordova platform add android

ex01-cordova-calculator/.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
19+
.DS_Store
20+
21+
# Generated by package manager
22+
node_modules/
23+
24+
# Generated by Cordova
25+
/plugins/
26+
/platforms/

ex01-cordova-calculator/config.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.instilllearning.ex01" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>ILCalculator</name>
4+
<description>Calculator App using Apache Cordova</description>
5+
<author email="gaurab@instilllearning.com" href="https://instilllearning.com">
6+
Instill Learning Team
7+
</author>
8+
<content src="index.html" />
9+
<allow-intent href="http://*/*" />
10+
<allow-intent href="https://*/*" />
11+
</widget>

0 commit comments

Comments
 (0)