Skip to content

Commit d68a4b9

Browse files
authored
Update README.md
1 parent ee131df commit d68a4b9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ Use it can be easily applied the Lua script on iOS, Android, OS X, and provides
66

77
### iOS / OS X
88

9-
** Integrated **
9+
**Integrated**
1010

1111
1. Clone the source to local disk.
1212
2. Navigate to the “Release” directory, Then select the platform(iOS or OS X) directory.
1313
3. Drag platform directory to your project and check the "Copy items if needed".
1414
4. Now, you can import the LuaScriptCore/LuaScriptCore.h header in your code then use it.
1515

16-
** Rebuild the project **
16+
**Rebuild the project**
1717

1818
1. Navigate to the "Source/iOS_OSX/" directory and Open the LuaScriptCore project.
1919
2. Choose what you want to re-build the scheme(Chose the LuaScriptCore-iOS-output scheme is re-build iOS platform, and Chose the LuaScriptCore-OSX-output scheme is re-build OS X platform).
2020
3. Command+B to re-build the project, After build is output to the “Release/platform(iOS/OSX)" directory.
2121

22-
** Initialze **
22+
**Initialze**
2323

2424
```
2525
LSCContext *context = [[LSCContext alloc] init];
2626
```
2727

28-
** Eval script **
28+
**Eval script**
2929

3030
```
3131
[self.context evalScriptFromString:@"print('Hello World');"];
3232
```
3333

34-
** Register ObjC method to lua **
34+
**Register ObjC method to lua**
3535

3636
In ObjC
3737

@@ -55,7 +55,7 @@ In lua
5555
local tbl = getDeviceInfo();
5656
```
5757

58-
** Calls a lua method **
58+
**Calls a lua method**
5959

6060
In lua
6161

@@ -78,7 +78,7 @@ NSLog(@"result = %@", [value toNumber]);
7878

7979
### Android
8080

81-
** Integrated **
81+
**Integrated**
8282

8383
1. Clone the source to local disk.
8484
2. Navigate to the “Release” directory, Then copy all the contents of the "Android" directory to the Libs folder of the project.
@@ -105,25 +105,25 @@ NSLog(@"result = %@", [value toNumber]);
105105
106106
4. Now, you can import the LuaContext class in your code then use it.
107107
108-
** Rebuild the project **
108+
**Rebuild the project**
109109
110110
1. Open the Android Studio and import the project from the "Source/Android/" directory.
111111
2. Command + F9 rebuild the project.
112112
3. Compile completed that in the module's build/intermediates/bundles/release directory to find the classes.jar and JNI sub directory.
113113
114-
** Initialze **
114+
**Initialze**
115115
116116
```
117117
LuaContext context = LuaContext.create(this);
118118
```
119119
120-
** Eval script **
120+
**Eval script**
121121
122122
```
123123
context.evalScript("print('Hello World');");
124124
```
125125
126-
** Register ObjC method to lua **
126+
**Register ObjC method to lua**
127127
128128
In Android
129129
@@ -149,7 +149,7 @@ In lua
149149
local tbl = getDeviceInfo();
150150
```
151151
152-
** Calls a lua method **
152+
**Calls a lua method**
153153
154154
In lua
155155

0 commit comments

Comments
 (0)