Skip to content

Commit

Permalink
Keep Alive Impl
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Mar 18, 2024
1 parent eed5cc9 commit 48e6879
Show file tree
Hide file tree
Showing 32 changed files with 315 additions and 736 deletions.
74 changes: 71 additions & 3 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlinAndroid)

}

android {
Expand All @@ -12,6 +13,8 @@ android {
targetSdk = 34
versionCode = 1
versionName = "1.0"
multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}


Expand All @@ -24,17 +27,82 @@ android {
getByName("release") {
isMinifyEnabled = false
}
getByName("debug") {
isMinifyEnabled = false
isJniDebuggable = true
isDebuggable = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), // Default ProGuard rules for Android optimization
"proguard-rules.pro" // Custom ProGuard rules file
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "17"
jvmTarget = "11"
}
testCoverage {
this.jacocoVersion = "0.8.11" // Use the latest version compatible with your setup
}


testOptions {
unitTests.all {

}
unitTests.isIncludeAndroidResources = true
unitTests.isReturnDefaultValues = true
}
}

dependencies {
implementation(projects.shared)
implementation("org.jacoco:org.jacoco.agent:0.8.11:runtime")
implementation("org.jacoco:jacoco-maven-plugin:0.8.11")


implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.constraintlayout)
implementation("com.github.team-telnyx:telnyx-meet-android-sdk:0.3.1@aar") {
isTransitive = true
}
implementation("androidx.core:core-ktx:+")
testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:4.1.0")
testImplementation("org.mockito:mockito-inline:4.1.0")
testImplementation("org.mockito.kotlin:mockito-kotlin:3.2.0")
testImplementation("org.junit.platform:junit-platform-runner:1.0.2")
testImplementation("commons-codec:commons-codec:1.12")
testImplementation("androidx.arch.core:core-testing:2.1.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.0")
testImplementation("io.mockk:mockk:1.12.1")
testImplementation("io.mockk:mockk-agent-jvm:1.12.1")

// Acceptance Testing
androidTestImplementation("androidx.test.espresso:espresso-contrib:3.1.0")
androidTestImplementation("androidx.test:runner:1.3.0")
androidTestImplementation("androidx.test:rules:1.3.0")
androidTestImplementation("androidx.test.ext:junit:1.1.1")
androidTestImplementation("com.squareup.okhttp3:mockwebserver:4.2.1")
androidTestImplementation("androidx.test:core:1.3.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
androidTestImplementation("androidx.test.espresso:espresso-intents:3.4.0")
androidTestImplementation("io.mockk:mockk-android:1.12.1") // Using the same version for simplicity
androidTestImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
androidTestImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
androidTestImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2")
}

repositories {
google()
gradlePluginPortal()
jcenter()
mavenCentral()
mavenLocal()
maven("https://jitpack.io")
maven("https://plugins.gradle.org/m2/")
}
7 changes: 5 additions & 2 deletions androidApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
android:allowBackup="false"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity
android:name=".MainActivity"
android:exported="true" />
</application>
</manifest>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
package com.telnyx.janusmessagesdk.android


import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.telnyx.video.sdk.Room
import com.telnyx.video.sdk.webSocket.model.send.DisplayParameters
import com.telnyx.video.sdk.webSocket.model.send.ExternalData
import java.util.UUID


class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val si = DisplayParameters(
participantId = "docendi",
telephonyEngineParticipant = null,
external = null,
stream = null,
canReceiveMessages = null
)

}
}
2 changes: 1 addition & 1 deletion androidApp/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<style name="AppTheme" parent="android:Theme.Material.NoActionBar"/>
<style name="AppTheme" parent="Theme.AppCompat.DayNight"/>
</resources>
6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kotlin = "1.9.20"
kotlinxDatetime = "0.5.0"
kotlinxSerializationJson = "1.6.0"
ktorVersion = "2.3.7"
appcompat = "1.6.1"
material = "1.11.0"
constraintlayout = "2.1.4"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand All @@ -16,6 +19,9 @@ ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktorVer
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktorVersion" }
ktor-client-serialization = { module = "io.ktor:ktor-client-serialization", version.ref = "ktorVersion" }
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktorVersion" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
Expand Down
4 changes: 0 additions & 4 deletions iosApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ target 'iosApp' do
use_frameworks!
platform :ios, '14.1'
pod 'JanusMessageSDK', :path => '../shared'
target 'iosAppTests' do
inherit! :search_paths
pod 'JanusMessageSDK', :path => '../shared'
end
end
2 changes: 1 addition & 1 deletion iosApp/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
JanusMessageSDK: e76862260037deafcfdfb13f6ac5b07754fd1de5

PODFILE CHECKSUM: 6fea51417d55986c80504b56ffb30e6a2af72e4c
PODFILE CHECKSUM: 1e004fa731d7a04f3d9d5649deb94144c69121d3

COCOAPODS: 1.14.3
2 changes: 1 addition & 1 deletion iosApp/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48e6879

Please sign in to comment.