Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,23 @@ RUN cd /opt && \
rm -f android-tools-linux.zip

# Grab what's needed in the SDK
RUN mkdir "${ANDROID_HOME}/licenses" && \
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
RUN sdkmanager --update
# Accept all licenses
RUN yes y | sdkmanager --licenses
RUN sdkmanager 'platform-tools'
RUN sdkmanager 'build-tools;28.0.3'
RUN sdkmanager 'extras;android;m2repository'
RUN sdkmanager 'platforms;android-27'
RUN sdkmanager 'cmake;3.6.4111459'

# Accept licenses before installing components, no need to echo y for each component
# License is valid for all the standard components in versions installed from this file
# Non-standard components: MIPS system images, preview versions, GDK (Google Glass) and Android Google TV require separate licenses, not accepted there
RUN yes | sdkmanager --licenses

# SDKs
# Please keep these in descending order!
# The `yes` is for accepting all non-standard tool licenses.
# Please keep all sections in descending order!
RUN yes | sdkmanager \
'platform-tools' \
'build-tools;28.0.3' \
'extras;android;m2repository' \
'platforms;android-27' \
'cmake;3.6.4111459'

# Install the NDK
RUN mkdir /opt/android-ndk-tmp && \
Expand Down
8 changes: 6 additions & 2 deletions examples/objectServerExample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ injected into the build configuration.
To use a different ObjectServer, simply put the server IP Address into
the `build.gradle`, as indicated in the comments, on the lines like this:

buildConfigField "String", "OBJECT_SERVER_IP", "\"${host}\""
def rosUrl = "<INSERT_REALM_OBJECT_SERVER_URL>"

For instance:

buildConfigField "String", "OBJECT_SERVER_IP", "192.168.0.1"
def rosUrl = "https://myinstance.us1.cloud.realm.io"

or:

def rosUrl = "http://127.0.0.1:9080"

To read more about the Realm Object Server and how to deploy it, see
https://realm.io/news/introducing-realm-mobile-platform/
22 changes: 20 additions & 2 deletions examples/objectServerExample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
buildscript {
ext.kotlin_version = '1.3.20'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'

android {
Expand All @@ -13,6 +28,10 @@ android {
versionName "1.0"
}

dataBinding {
enabled = true
}

buildTypes {
// Go to https://cloud.realm.io and copy the URL to your instance. Insert it below.
// It will look something like "https://test.us1.cloud.realm.io"
Expand Down Expand Up @@ -45,6 +64,5 @@ dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'me.zhanghai.android.materialprogressbar:library:1.3.0'
implementation 'com.jakewharton:butterknife:8.8.1'//TODO:Can be refactored with Native Android Data Binding
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'//TODO:Can be refactored with Native Android Data Binding
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

This file was deleted.

Loading