Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from vgorloff/develop
Browse files Browse the repository at this point in the history
RC 1.0.16
  • Loading branch information
vgorloff committed Oct 2, 2021
2 parents 9ed07f0 + aa5ee51 commit eb4ebc4
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 118 deletions.
8 changes: 1 addition & 7 deletions Android/.gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/codeStyles/Project.xml
/.idea
.DS_Store
/build
/.build
Expand Down
5 changes: 0 additions & 5 deletions Android/.idea/codeStyles/codeStyleConfig.xml

This file was deleted.

6 changes: 0 additions & 6 deletions Android/.idea/compiler.xml

This file was deleted.

17 changes: 0 additions & 17 deletions Android/.idea/deploymentTargetDropDown.xml

This file was deleted.

4 changes: 0 additions & 4 deletions Android/.idea/encodings.xml

This file was deleted.

21 changes: 0 additions & 21 deletions Android/.idea/gradle.xml

This file was deleted.

30 changes: 0 additions & 30 deletions Android/.idea/jarRepositories.xml

This file was deleted.

14 changes: 0 additions & 14 deletions Android/.idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions Android/.idea/vcs.xml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.16] - 2021-10-02
* Fixes wrong path to NDK headers in sample sources.

## [1.0.15] - 2021-09-17
* Gradle and Android Studio compatibility upgrade.

Expand Down
2 changes: 1 addition & 1 deletion Package/Sources/CAndroidJNI/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef File_h
#define File_h

#include "/usr/local/ndk/21.3.6528147/sysroot/usr/include/jni.h"
#include "/usr/local/ndk/21.4.7075529/sysroot/usr/include/jni.h"

typedef struct {
const signed char * _Nonnull data;
Expand Down
2 changes: 1 addition & 1 deletion Package/Sources/CAndroidLog/shim.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "/usr/local/ndk/21.3.6528147/sysroot/usr/include/android/log.h"
#include "/usr/local/ndk/21.4.7075529/sysroot/usr/include/android/log.h"

static inline int __android_log_print_1(const char *str) {
return __android_log_print(ANDROID_LOG_INFO, "SwiftAndroid", "%s", str);
Expand Down
12 changes: 7 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@

4. Make sure that NDK version defined in Gradle build configuration file (See: `Android/app/build.gradle`) in property `android.ndkVersion` matches NDK version from file you viewed on step 2. Update property `android.ndkVersion` if needed.

5. Copy file `example.swiftToolchain.rc` to `swiftToolchain.rc`. Update file `swiftToolchain.rc` with proper paths:
5. Make sure that the absolute paths to NDK headers in sources matching NDK version inside file `NDK_VERSION`.

6. Copy file `example.swiftToolchain.rc` to `swiftToolchain.rc`. Update file `swiftToolchain.rc` with proper paths:

- `SaSwiftToolchainDirPath` - Path to Swift Toolchain you downloaded or built on step 1.

6. Install "Protocol buffers" for Java and Swift sources generation `brew install protobuf swift-protobuf`
7. Install "Protocol buffers" for Java and Swift sources generation `brew install protobuf swift-protobuf`

7. (Optional) Generate models: `Scripts/GenerateModels.sh`
8. (Optional) Generate models: `Scripts/GenerateModels.sh`

8. Open `iOS/HelloJNI.xcodeproj` in Xcode and run it on Device or iOS Simulator.
9. Open `iOS/HelloJNI.xcodeproj` in Xcode and run it on Device or iOS Simulator.

9. Open folder `Android` in Android Studio and run it on Device or Android Simulator.
10. Open folder `Android` in Android Studio and run it on Device or Android Simulator.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.15
1.0.16

0 comments on commit eb4ebc4

Please sign in to comment.