-
Run
git submodule update --init
to gettwilio-jni
depedency. -
Run
./RTDSDK/Scripts/combine-dependencies.sh
to get twilio-common-android library, RTD libraries and their dependencies. -
Run
ndk-build
in./RTDSDK/jni
directory to build the shared library. -
Run
./tools/mksdk.sh
to build the SDK.
- twilio-ip-messaging-android
- twilio-common-android
- Google Play Services Library
The ACCESS_TOKEN_SERVICE_URL
property can be provided in one the following ways:
- Update the
ACCESS_TOKEN_SERVICE_URL
value in$RTD_SDK/ip-messaging-demo-android/gradle.properties
Note:
Double quotes must be escaped for the following approaches:
-
Pass the
ACCESS_TOKEN_SERVICE_URL
property when executing a gradle task.- ex.
./gradlew -PACCESS_TOKEN_SERVICE_URL ="\"<ACCESS_TOKEN_SERVICE_URLL>\"" <task>
- ex.
-
Update the default
ACCESS_TOKEN_SERVICE_URL
value in$RTD_SDK/ip-messaging-demo-android/app/build.gradle
-
Run
ant clean debug
from$RTD_SDK/RTDSDK/
to rebuild the jar. -
Replace the
twilio-ip-messaging-android.jar
inapps\libs
with the newly created artifact by either copying or symlinking.-
cp -R $RTD_SDK/RTDSDK/bin/twilio-ip-messaging-android.jar $RTD_SDK/ip-messaging-demo-android/app/libs
-
ln -s $RTD_SDK/RTDSDK/bin/twilio-ip-messaging-android.jar $RTD_SDK/ip-messaging-demo-android/app/libs
-
-
Provide a valid
ACCESS_TOKEN_SERVICE_URL
. See above. -
Switch to
developer
from theBuild Variants
on the bottom left tab. -
Run the app by clicking the green play button or execute
cd $RTD_SDK/ip-messaging-demo-android; ./gradlew installDeveloper
No.
- To see the crash dumb run
adb logcat | $ANDROID_NDK_ROOT/ndk-stack -sym $PROJECT_HOME/android-ip-messaging-api/RTDSDK/obj/local/armeabi-v7a
- Enable debug level log
TwilioIPMessagingSDK.setLogLevel(android.util.Log.DEBUG);