Skip to content

Commit aacff93

Browse files
author
Antonis
committed
Fixed #533: SIP User Agent shows up wrong in logs
1 parent 28869ff commit aacff93

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

Examples/restcomm-olympus/app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,27 @@ android {
5050
logger.info("Using versionName: " + VERSION_NAME)
5151
versionName VERSION_NAME
5252
}
53-
else {
54-
versionName "1.0.0-BETA4"
55-
}
5653

5754
//buildConfigField "boolean", "DISABLE_SOMETHING", "true"
5855

59-
// ICE_USERNAME & ICE_PASSWORD should remain secret and hence are defined in global properties (i.e. only available to project members)
56+
// ICE_USERNAME & ICE_PASSWORD are defined in project gradle.properties, but also overriden in global gradle.properties
57+
// which exists *only* in Telestax builds. Reason for this is that Telestax builds use different settings
58+
// for ICE that are meant for production systems, and which should remain secret (remember that the global gradle.properties
59+
// isn't part of the repo)
6060
if (project.hasProperty('ICE_USERNAME') && project.hasProperty('ICE_PASSWORD') && project.hasProperty('ICE_DOMAIN')) {
6161
// Add them as resource values which are available in preferences.xml
6262
resValue "string", "ICE_USERNAME", ICE_USERNAME
6363
resValue "string", "ICE_PASSWORD", ICE_PASSWORD
6464
resValue "string", "ICE_DOMAIN", ICE_DOMAIN
6565
}
66+
/*
6667
else {
6768
// Let's use my personal free xirsys account credentials for community, so that STUN/TURN works out of the box and eases adoption
6869
resValue "string", "ICE_USERNAME", "atsakiridis"
6970
resValue "string", "ICE_PASSWORD", "4e89a09e-bf6f-11e5-a15c-69ffdcc2b8a7"
7071
resValue "string", "ICE_DOMAIN", "cloud.restcomm.com"
7172
}
73+
*/
7274

7375
//multiDexEnabled true
7476
//manifestPlaceholders = [HOCKEYAPP_APP_ID: "9f94a735a6f6431ba368e6e0581067a4"]

Examples/restcomm-olympus/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro
1919
LIBRARY_GROUP = "org.restcomm"
2020
LIBRARY_ARTIFACT_ID = "restcomm-android-sdk"
2121
LIBRARY_VERSION = "1.0.0"
22+
23+
# Let's use my personal free xirsys account credentials for community, so that STUN/TURN works out of the box and eases adoption
24+
ICE_USERNAME = "atsakiridis"
25+
ICE_PASSWORD = "4e89a09e-bf6f-11e5-a15c-69ffdcc2b8a7"
26+
ICE_DOMAIN = "cloud.restcomm.com"

restcomm.android.sdk/build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,22 @@ android {
2424
defaultConfig {
2525
minSdkVersion 16
2626
targetSdkVersion 25
27-
versionCode 1629
28-
versionName "1.0.0-BETA4"
27+
28+
if (project.hasProperty('VERSION_CODE')) {
29+
logger.info("Using versionCode: " + VERSION_CODE)
30+
versionCode VERSION_CODE.toInteger()
31+
}
32+
else {
33+
logger.info("Doesn't have VERSION_CODE, falling back to: 1")
34+
versionCode 1
35+
}
36+
37+
if (project.hasProperty('VERSION_NAME')) {
38+
logger.info("Using versionName: " + VERSION_NAME)
39+
versionName VERSION_NAME
40+
}
41+
//versionCode 1629
42+
//versionName "1.0.0-BETA4"
2943
}
3044
buildTypes {
3145
release {

0 commit comments

Comments
 (0)