diff --git a/src/android/platform.cpp b/src/android/platform.cpp index 54d5ef1b..f91c2b76 100644 --- a/src/android/platform.cpp +++ b/src/android/platform.cpp @@ -22,13 +22,13 @@ std::string default_realm_file_directory() void ensure_directory_exists_for_file(const std::string &fileName) { - std::string cmd = "rm " + s_default_realm_directory + "/*.realm " + - s_default_realm_directory + "/*.realm.lock"; - system(cmd.c_str()); } void remove_realm_files_from_directory(const std::string &directory) { + std::string cmd = "rm " + s_default_realm_directory + "/*.realm " + + s_default_realm_directory + "/*.realm.lock"; + system(cmd.c_str()); } } diff --git a/tests/react-test-app/android/app/build.gradle b/tests/react-test-app/android/app/build.gradle index 19f9b0b0..49332cca 100644 --- a/tests/react-test-app/android/app/build.gradle +++ b/tests/react-test-app/android/app/build.gradle @@ -54,7 +54,7 @@ android { buildToolsVersion "23.0.1" defaultConfig { - applicationId "com.demo" + applicationId "io.realm.reactnative.testapp" minSdkVersion 16 targetSdkVersion 22 versionCode 1 diff --git a/tests/react-test-app/android/app/src/main/AndroidManifest.xml b/tests/react-test-app/android/app/src/main/AndroidManifest.xml index 0e125e42..99a117c1 100644 --- a/tests/react-test-app/android/app/src/main/AndroidManifest.xml +++ b/tests/react-test-app/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="io.realm.reactnative.testapp"> diff --git a/tests/react-test-app/android/app/src/main/java/com/demo/MainActivity.java b/tests/react-test-app/android/app/src/main/java/MainActivity.java similarity index 98% rename from tests/react-test-app/android/app/src/main/java/com/demo/MainActivity.java rename to tests/react-test-app/android/app/src/main/java/MainActivity.java index 687a22ef..c7e15dca 100644 --- a/tests/react-test-app/android/app/src/main/java/com/demo/MainActivity.java +++ b/tests/react-test-app/android/app/src/main/java/MainActivity.java @@ -1,4 +1,4 @@ -package com.demo; +package io.realm.reactnative.testapp; import android.app.Activity; import android.os.Bundle; diff --git a/tests/react-test-app/android/app/src/main/res/values/strings.xml b/tests/react-test-app/android/app/src/main/res/values/strings.xml index b2250a86..93eb224f 100644 --- a/tests/react-test-app/android/app/src/main/res/values/strings.xml +++ b/tests/react-test-app/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - Demo + ReactNative Test App diff --git a/tests/react-test-app/android/settings.gradle b/tests/react-test-app/android/settings.gradle index f13c7f69..3b2819c3 100644 --- a/tests/react-test-app/android/settings.gradle +++ b/tests/react-test-app/android/settings.gradle @@ -1,4 +1,4 @@ -rootProject.name = 'Demo' +rootProject.name = 'ReactNative Test App' include ':app' include ':react-native-fs'