diff --git a/README.md b/README.md index 83290c6f..663f915f 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ to build and run Objective-C and Java tests. ### Building and running the mobile example apps -The Android example app can be build with bazel: `bazel build -//examples:android-app`, and then install to a device with `adb install -bazel-bin/examples/android-app.apk` +You need to install the Android SDK 30.0.2 and the NDK 21.4.7075529. You need both `ANDROID_SDK_HOME` and `ANDROID_NDK_HOME` env variables set. +The Android example app can be build with bazel: `bazel build //examples:android-app`, +and then install to a device with `adb install bazel-bin/examples/android-app.apk` The iOS example app are built with Xcode. Simply open the project in Xcode and it should work. @@ -301,9 +301,11 @@ Notable differences when comparing to the Java/ObjC support: easily add extension methods (by add functions to prototype) without having to derive from a base class. -The command to run Wasm/TypeScript unit tests is `bazel run -//test-suite:server-ts`. You will need the `tsc` compiler and the `browserify` -tool to run these tests. +Use `bazel run //test-suite:server-ts` to run the Wasm/TypeScript unit tests. +You will need `npm` and run `npm install` in the `test-suite` folder. +You need as well the `tsc` compiler and the `browserify` tool to run these tests. + +To run the examples server: `bazel run //examples:server` ## Async interface support diff --git a/examples/BUILD b/examples/BUILD index 74a1b99c..e1442ba8 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -53,7 +53,7 @@ android_library( srcs = glob(["handwritten-src/java/com/dropbox/textsort/*.java"]), custom_package = "com.dropbox.textsort", manifest = "android/app/src/main/AndroidManifest.xml", - resource_files = glob(["android/app/src/main/res/**"]), + resource_files = glob(["android/app/src/main/res/**"], exclude=["android/app/src/main/res/.DS_Store"]), deps = [":textsort-java",], ) diff --git a/examples/ios/TextSort.xcodeproj/project.pbxproj b/examples/ios/TextSort.xcodeproj/project.pbxproj index ed799f19..0c025a7e 100644 --- a/examples/ios/TextSort.xcodeproj/project.pbxproj +++ b/examples/ios/TextSort.xcodeproj/project.pbxproj @@ -428,6 +428,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "TextSort/TextSort-Prefix.pch"; INFOPLIST_FILE = "TextSort/TextSort-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = "Dropbox.${PRODUCT_NAME:rfc1034identifier}"; @@ -449,6 +450,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "TextSort/TextSort-Prefix.pch"; INFOPLIST_FILE = "TextSort/TextSort-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = "Dropbox.${PRODUCT_NAME:rfc1034identifier}";