Skip to content

Commit dee81f1

Browse files
committed
update readme
1 parent 3ce6688 commit dee81f1

File tree

2 files changed

+16
-27
lines changed

2 files changed

+16
-27
lines changed

Android/Readme.md

100755100644
+15-25
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
About:
2-
-----
1+
# swift-everywhere-samples
32

4-
Project is purely based on https://github.com/vgorloff/swift-everywhere-samples
3+
## Requirements
54

5+
- macOS 11.x
6+
- Xcode 12.x
7+
- Android Studio 4.1
8+
- Android NDK 21.3.6528147
69

10+
## Usage
711

8-
Required:
9-
-----
10-
1. Android SDK
11-
2. Android NDK
12-
3. Android Studio
13-
4. CMake
14-
5. swift-android-toolchain (https://github.com/vgorloff/swift-everywhere-toolchain)
12+
1. Make sure that you have [Swift Android Toolchain](https://github.com/vgorloff/swift-everywhere-toolchain). You can either build it or download [pre-build](https://github.com/vgorloff/swift-everywhere-toolchain/releases) version.
1513

16-
Usage:
17-
-----
14+
2. Make sure that you have a symlink to NDK directory at `/usr/local/ndk/21.3.6528147`. It should be the **same** as already defined in `android.ndkVersion` in Gradle build configuration file (See: `Android/app/build.gradle`).
1815

19-
1. Update file `local.properties` with actual paths:
16+
```sh
17+
sudo mkdir -p /usr/local/ndk
18+
sudo ln -vsi ~/Library/Android/sdk/ndk/21.3.6528147 /usr/local/ndk/21.3.6528147
19+
```
2020

21-
- sdk.dir - Path to Android SDK (by default similar to: /Users/user/Library/Android/sdk)
22-
- ndk.dir - Path to Android NDK (by default similar to: /Users/user/Library/Android/sdk/ndk-bundle)
23-
- swiftToolchain.dir - Path to Swift Toolchain (by default similar to: /Users/user/Git/swift-everywhere-toolchain/ToolChain/swift-android-toolchain)
21+
3. Open folder `Android` in Android Studio and run it on Device or Android Simulator.
2422

25-
2. Open project in Android Studio and run on Device or Simulator.
26-
27-
Links:
28-
-----
29-
30-
- https://developer.android.com/studio/projects/configure-cmake.html
31-
- Android NDK: Using C/C++ Native Libraries to Write Android Apps: http://bit.ly/2HjXYJk
32-
- Modern Android NDK Tutorial – Jordan Réjaud – Medium: http://bit.ly/2HvrmLO
33-
- Android NDK: Using C/C++ Native Libraries to Write Android Apps: http://bit.ly/2HjXYJk
23+
4. Edit path to `sdk.dir` in `local.properties`

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Open `opengl_example.xcodeproj` project.
3636

3737
### Android
3838

39-
1. Read `Readme.md` inside Android folder
39+
1. Read [Readme](Android/Readme.md) inside Android folder
4040

4141
### Screenshots
4242

@@ -46,7 +46,6 @@ Open `opengl_example.xcodeproj` project.
4646
- iOS<br>
4747
<img src=[email protected] width="500">
4848

49-
5049
- Ubuntu<br>
5150
<img src=screen2.png width="500">
5251

0 commit comments

Comments
 (0)