Skip to content

Commit afd1200

Browse files
committed
fix clang++ compiler error that occurs in newer versions of ndk
error: 'open' called with O_CREAT or O_TMPFILE, but missing mode
1 parent a0abc07 commit afd1200

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android-studio-project/NodeJS-Frontend/src/main/cpp/native-lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Java_com_github_warren_1bank_nodejs_1frontend_helpers_NodeJsAppRunner_saveStanda
5252
jstring jFilepath) {
5353

5454
const char* filepath = env->GetStringUTFChars(jFilepath, 0);
55-
int fd = open(filepath, O_CREAT|O_WRONLY|O_TRUNC);
55+
int fd = open(filepath, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR);
5656
dup2(fd, 1); // stdout
5757
dup2(fd, 2); // stderr
5858
close(fd);

android-studio-project/constants.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project.ext {
2-
releaseVersionCode = Integer.parseInt("001000119", 10) //Integer.MAX_VALUE == 2147483647
3-
releaseVersion = '001.00.01-19API'
2+
releaseVersionCode = Integer.parseInt("001000219", 10) //Integer.MAX_VALUE == 2147483647
3+
releaseVersion = '001.00.02-19API'
44
javaVersion = JavaVersion.VERSION_1_8
55
minSdkVersion = 19
66
targetSdkVersion = 30

0 commit comments

Comments
 (0)