Skip to content

Commit fc5dfc5

Browse files
authored
Merge pull request #41 from Chhekur/master
update: documentation
2 parents a2d7936 + fcfbb65 commit fc5dfc5

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "androidjs",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Android JS Is A Framework For Creating Android Applications With Web Technologies Like JavaScript, HTML, And CSS.",
55
"main": "index.js",
66
"scripts": {

docs/configuring_app.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ In order to change the **icon** of your app, you'll have to define `icon` attrib
6060
```
6161

6262
#### `Adding permissions to your android app`
63-
In order to add the android permissions, you will have to define an array of `permissions` in `package.json` file of your app
63+
In order to add the android permissions, you will have to define an array of `permissions` attribute in `package.json` file of your app
6464

6565
```json
6666
{
@@ -82,7 +82,7 @@ In order to add the android permissions, you will have to define an array of `pe
8282
you can find the permissions over android official [documentation](https://developer.android.com/guide/topics/permissions/overview)
8383

8484
#### `Adding output directory`
85-
In order to add the output directory, you will have to define `dist-path` in `package.json` file of your app
85+
In order to add the output directory, you will have to define `dist-path` attribute in `package.json` file of your app
8686

8787
```json
8888
{
@@ -101,3 +101,30 @@ In order to add the output directory, you will have to define `dist-path` in `pa
101101
"license": "ISC"
102102
}
103103
```
104+
105+
#### `Define Project Type`
106+
In order to define project, you will have to define `project-type` attribute in `package.json` file of your app
107+
108+
- `webview`
109+
- if you are building `webview` based app or 'HTML / CSS' based
110+
- `react-native`
111+
- if you are building `react native` based app
112+
113+
```json
114+
{
115+
"name": "myfirstapp",
116+
"app-name" : "My First App",
117+
"package-name": "myapp",
118+
"permission": ["android.permission.INTERNET", "android.permission.SEND_SMS"],
119+
"dist-path": "./dist",
120+
"project-type":"webview",
121+
"version": "1.0.0",
122+
"description": "",
123+
"main": "index.js",
124+
"scripts": {
125+
"test": "echo \"Error: no test specified\" && exit 1"
126+
},
127+
"author": "",
128+
"license": "ISC"
129+
}
130+
```

docs/generating_project.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
Android JS enables you to create android applications with pure JavaScript by providing a runtime with rich native (android) APIs. You could see it as a variant of the Node.js runtime that is focused on android applications instead of web servers.
66

77
```sh
8-
mkdir myfirstapp
9-
cd myfirstapp
10-
androidjs g
8+
androidjs init
119
npm install
1210
```
11+
it will ask for `APP NAME` (i.e. myfirstapp)
1312
it will generate a sample project inside `myfirstapp`
1413

1514
```text

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Change the icon of your app](configuring_app.md#change-the-icon-of-your-app)
99
- [Adding permissions to your android app](configuring_app.md#adding-permissions-to-your-android-app)
1010
- [Adding output directory](configuring_app.md#adding-output-directory)
11+
- [Define project type](configuring_app.md#define-project-type)
1112
- [Getting Started](getting_started.md)
1213
- [IPC (Inter Process Communication)](ipc.md)
1314
- [Back Module](ipc.md#back-module)

0 commit comments

Comments
 (0)