diff --git a/examples/android-project/.gitignore b/examples/android-project/.gitignore
new file mode 100644
index 0000000..701a2ed
--- /dev/null
+++ b/examples/android-project/.gitignore
@@ -0,0 +1,20 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
+
+
+# For now ( I don't want the libraries to be on GH )
+app/libs
+app/src/main/jniLibs
\ No newline at end of file
diff --git a/examples/android-project/app/.gitignore b/examples/android-project/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/examples/android-project/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/examples/android-project/app/build.gradle b/examples/android-project/app/build.gradle
new file mode 100644
index 0000000..201fd2e
--- /dev/null
+++ b/examples/android-project/app/build.gradle
@@ -0,0 +1,60 @@
+plugins {
+ id 'com.android.application'
+ id 'org.jetbrains.kotlin.android'
+}
+
+android {
+ compileSdk 32
+
+ defaultConfig {
+ applicationId "io.livekit.android"
+ minSdk 26
+ targetSdk 32
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ buildFeatures {
+ viewBinding true
+ }
+
+ sourceSets {
+ main {
+ jniLibs.srcDirs = ['src/main/jniLibs']
+ }
+ }
+}
+
+dependencies {
+ //implementation(files('libs/webrtc.jar'))
+
+ implementation 'net.java.dev.jna:jna:5.12.1@aar'
+
+ implementation 'androidx.core:core-ktx:1.7.0'
+ implementation 'androidx.appcompat:appcompat:1.4.2'
+ implementation 'com.google.android.material:material:1.6.1'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
+ implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
+ implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+}
diff --git a/examples/android-project/app/proguard-rules.pro b/examples/android-project/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/examples/android-project/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/examples/android-project/app/src/androidTest/java/io/livekit/android/ExampleInstrumentedTest.kt b/examples/android-project/app/src/androidTest/java/io/livekit/android/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..ac8b3bd
--- /dev/null
+++ b/examples/android-project/app/src/androidTest/java/io/livekit/android/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package io.livekit.android
+
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+
+import org.junit.Test
+import org.junit.runner.RunWith
+
+import org.junit.Assert.*
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+@RunWith(AndroidJUnit4::class)
+class ExampleInstrumentedTest {
+ @Test
+ fun useAppContext() {
+ // Context of the app under test.
+ val appContext = InstrumentationRegistry.getInstrumentation().targetContext
+ assertEquals("io.livekit.android", appContext.packageName)
+ }
+}
diff --git a/examples/android-project/app/src/main/AndroidManifest.xml b/examples/android-project/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..d7b173e
--- /dev/null
+++ b/examples/android-project/app/src/main/AndroidManifest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/java/io/livekit/android/MainActivity.kt b/examples/android-project/app/src/main/java/io/livekit/android/MainActivity.kt
new file mode 100644
index 0000000..73bdbfb
--- /dev/null
+++ b/examples/android-project/app/src/main/java/io/livekit/android/MainActivity.kt
@@ -0,0 +1,35 @@
+package io.livekit.android
+
+import android.os.Bundle
+import androidx.appcompat.app.AppCompatActivity
+import com.sun.jna.Library
+import com.sun.jna.Native
+import org.webrtc.PeerConnectionFactory
+
+class MainActivity : AppCompatActivity() {
+
+ /*interface LKLib : Library {
+ companion object {
+ internal val Instance: LKLib by lazy {
+ Native.load("livekit_native", LKLib::class.java)
+ }
+ }
+
+ fun test_rust()
+ }*/
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ println("Started activity")
+
+ val opt = PeerConnectionFactory.InitializationOptions.builder(applicationContext).setNativeLibraryName("livekit_native").createInitializationOptions()
+
+ PeerConnectionFactory.initialize(opt)
+ val factory = PeerConnectionFactory.builder().createPeerConnectionFactory()
+
+ //LKLib.Instance.test_rust()
+
+ println("Called Rust fnc")
+ println("Now, start investigating the JNI platform specific stuff !")
+ }
+}
diff --git a/examples/android-project/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/examples/android-project/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..9e3ab4f
--- /dev/null
+++ b/examples/android-project/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/drawable/ic_launcher_background.xml b/examples/android-project/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..86caa75
--- /dev/null
+++ b/examples/android-project/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/layout/activity_main.xml b/examples/android-project/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..fc796a8
--- /dev/null
+++ b/examples/android-project/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/layout/content_main.xml b/examples/android-project/app/src/main/res/layout/content_main.xml
new file mode 100644
index 0000000..183a8f6
--- /dev/null
+++ b/examples/android-project/app/src/main/res/layout/content_main.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/menu/menu_main.xml b/examples/android-project/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..4be4421
--- /dev/null
+++ b/examples/android-project/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,10 @@
+
diff --git a/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..ea737cd
--- /dev/null
+++ b/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..ea737cd
--- /dev/null
+++ b/examples/android-project/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/examples/android-project/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/examples/android-project/app/src/main/res/navigation/nav_graph.xml b/examples/android-project/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 0000000..f8a973a
--- /dev/null
+++ b/examples/android-project/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/values-land/dimens.xml b/examples/android-project/app/src/main/res/values-land/dimens.xml
new file mode 100644
index 0000000..4a58c4f
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values-land/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
diff --git a/examples/android-project/app/src/main/res/values-night/themes.xml b/examples/android-project/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..8c5c07f
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,16 @@
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/values-w1240dp/dimens.xml b/examples/android-project/app/src/main/res/values-w1240dp/dimens.xml
new file mode 100644
index 0000000..7d44cb6
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values-w1240dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 200dp
+
diff --git a/examples/android-project/app/src/main/res/values-w600dp/dimens.xml b/examples/android-project/app/src/main/res/values-w600dp/dimens.xml
new file mode 100644
index 0000000..4a58c4f
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values-w600dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
diff --git a/examples/android-project/app/src/main/res/values/colors.xml b/examples/android-project/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..758655a
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values/colors.xml
@@ -0,0 +1,10 @@
+
+
+ #FFBB86FC
+ #FF6200EE
+ #FF3700B3
+ #FF03DAC5
+ #FF018786
+ #FF000000
+ #FFFFFFFF
+
diff --git a/examples/android-project/app/src/main/res/values/dimens.xml b/examples/android-project/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..184ee9b
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
diff --git a/examples/android-project/app/src/main/res/values/strings.xml b/examples/android-project/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..78550ad
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values/strings.xml
@@ -0,0 +1,12 @@
+
+ LKAndroid
+ Settings
+
+ First Fragment
+ Second Fragment
+ Next
+ Previous
+
+ Hello first fragment
+ Hello second fragment. Arg: %1$s
+
diff --git a/examples/android-project/app/src/main/res/values/themes.xml b/examples/android-project/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..5f99fa7
--- /dev/null
+++ b/examples/android-project/app/src/main/res/values/themes.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/xml/backup_rules.xml b/examples/android-project/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..d0ef135
--- /dev/null
+++ b/examples/android-project/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/examples/android-project/app/src/main/res/xml/data_extraction_rules.xml b/examples/android-project/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..d868289
--- /dev/null
+++ b/examples/android-project/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/examples/android-project/build.gradle b/examples/android-project/build.gradle
new file mode 100644
index 0000000..8231c25
--- /dev/null
+++ b/examples/android-project/build.gradle
@@ -0,0 +1,11 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ id 'com.android.application' version '7.2.1' apply false
+ id 'com.android.library' version '7.2.1' apply false
+ id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
+
diff --git a/examples/android-project/gradle.properties b/examples/android-project/gradle.properties
new file mode 100644
index 0000000..3c7a8bd
--- /dev/null
+++ b/examples/android-project/gradle.properties
@@ -0,0 +1,23 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
diff --git a/examples/android-project/gradle/wrapper/gradle-wrapper.jar b/examples/android-project/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..e708b1c
Binary files /dev/null and b/examples/android-project/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/examples/android-project/gradle/wrapper/gradle-wrapper.properties b/examples/android-project/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..977fc06
--- /dev/null
+++ b/examples/android-project/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Aug 05 11:43:34 CEST 2022
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/examples/android-project/gradlew b/examples/android-project/gradlew
new file mode 100755
index 0000000..4f906e0
--- /dev/null
+++ b/examples/android-project/gradlew
@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/examples/android-project/gradlew.bat b/examples/android-project/gradlew.bat
new file mode 100644
index 0000000..ac1b06f
--- /dev/null
+++ b/examples/android-project/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/examples/android-project/settings.gradle b/examples/android-project/settings.gradle
new file mode 100644
index 0000000..b799b1e
--- /dev/null
+++ b/examples/android-project/settings.gradle
@@ -0,0 +1,16 @@
+pluginManagement {
+ repositories {
+ gradlePluginPortal()
+ google()
+ mavenCentral()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+rootProject.name = "LKAndroid"
+include ':app'
diff --git a/examples/ios-project/.gitignore b/examples/ios-project/.gitignore
new file mode 100644
index 0000000..b5effb9
--- /dev/null
+++ b/examples/ios-project/.gitignore
@@ -0,0 +1,2 @@
+ios-project/liblivekit_native.a
+ios-project/libwebrtc.a
\ No newline at end of file
diff --git a/examples/ios-project/ios-project.xcodeproj/project.pbxproj b/examples/ios-project/ios-project.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..4aa2366
--- /dev/null
+++ b/examples/ios-project/ios-project.xcodeproj/project.pbxproj
@@ -0,0 +1,626 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 55;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 9C15303428AA70E800062871 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15303328AA70E800062871 /* AppDelegate.m */; };
+ 9C15303728AA70E800062871 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15303628AA70E800062871 /* SceneDelegate.m */; };
+ 9C15303A28AA70E800062871 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15303928AA70E800062871 /* ViewController.m */; };
+ 9C15303D28AA70E800062871 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9C15303B28AA70E800062871 /* Main.storyboard */; };
+ 9C15303F28AA70E800062871 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9C15303E28AA70E800062871 /* Assets.xcassets */; };
+ 9C15304228AA70E800062871 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9C15304028AA70E800062871 /* LaunchScreen.storyboard */; };
+ 9C15304528AA70E800062871 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15304428AA70E800062871 /* main.m */; };
+ 9C15304F28AA70E800062871 /* ios_projectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15304E28AA70E800062871 /* ios_projectTests.m */; };
+ 9C15305928AA70E800062871 /* ios_projectUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15305828AA70E800062871 /* ios_projectUITests.m */; };
+ 9C15305B28AA70E800062871 /* ios_projectUITestsLaunchTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C15305A28AA70E800062871 /* ios_projectUITestsLaunchTests.m */; };
+ 9C15306928AA727600062871 /* liblivekit_native.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C15306828AA727600062871 /* liblivekit_native.a */; };
+ 9C15307228AA7A0D00062871 /* libwebrtc.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C15307128AA79FE00062871 /* libwebrtc.a */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 9C15304B28AA70E800062871 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 9C15302728AA70E800062871 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 9C15302E28AA70E800062871;
+ remoteInfo = "ios-project";
+ };
+ 9C15305528AA70E800062871 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 9C15302728AA70E800062871 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 9C15302E28AA70E800062871;
+ remoteInfo = "ios-project";
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ 9C15302F28AA70E800062871 /* ios-project.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ios-project.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9C15303228AA70E800062871 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
+ 9C15303328AA70E800062871 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
+ 9C15303528AA70E800062871 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; };
+ 9C15303628AA70E800062871 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; };
+ 9C15303828AA70E800062871 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
+ 9C15303928AA70E800062871 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
+ 9C15303C28AA70E800062871 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 9C15303E28AA70E800062871 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 9C15304128AA70E800062871 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 9C15304328AA70E800062871 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 9C15304428AA70E800062871 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
+ 9C15304A28AA70E800062871 /* ios-projectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ios-projectTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9C15304E28AA70E800062871 /* ios_projectTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ios_projectTests.m; sourceTree = ""; };
+ 9C15305428AA70E800062871 /* ios-projectUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ios-projectUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9C15305828AA70E800062871 /* ios_projectUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ios_projectUITests.m; sourceTree = ""; };
+ 9C15305A28AA70E800062871 /* ios_projectUITestsLaunchTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ios_projectUITestsLaunchTests.m; sourceTree = ""; };
+ 9C15306828AA727600062871 /* liblivekit_native.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = liblivekit_native.a; path = "ios-project/liblivekit_native.a"; sourceTree = ""; };
+ 9C15307128AA79FE00062871 /* libwebrtc.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libwebrtc.a; path = "ios-project/libwebrtc.a"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 9C15302C28AA70E800062871 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9C15307228AA7A0D00062871 /* libwebrtc.a in Frameworks */,
+ 9C15306928AA727600062871 /* liblivekit_native.a in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15304728AA70E800062871 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15305128AA70E800062871 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9C15302628AA70E800062871 = {
+ isa = PBXGroup;
+ children = (
+ 9C15303128AA70E800062871 /* ios-project */,
+ 9C15304D28AA70E800062871 /* ios-projectTests */,
+ 9C15305728AA70E800062871 /* ios-projectUITests */,
+ 9C15303028AA70E800062871 /* Products */,
+ 9C15306728AA727600062871 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 9C15303028AA70E800062871 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 9C15302F28AA70E800062871 /* ios-project.app */,
+ 9C15304A28AA70E800062871 /* ios-projectTests.xctest */,
+ 9C15305428AA70E800062871 /* ios-projectUITests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 9C15303128AA70E800062871 /* ios-project */ = {
+ isa = PBXGroup;
+ children = (
+ 9C15303228AA70E800062871 /* AppDelegate.h */,
+ 9C15303328AA70E800062871 /* AppDelegate.m */,
+ 9C15303528AA70E800062871 /* SceneDelegate.h */,
+ 9C15303628AA70E800062871 /* SceneDelegate.m */,
+ 9C15303828AA70E800062871 /* ViewController.h */,
+ 9C15303928AA70E800062871 /* ViewController.m */,
+ 9C15303B28AA70E800062871 /* Main.storyboard */,
+ 9C15303E28AA70E800062871 /* Assets.xcassets */,
+ 9C15304028AA70E800062871 /* LaunchScreen.storyboard */,
+ 9C15304328AA70E800062871 /* Info.plist */,
+ 9C15304428AA70E800062871 /* main.m */,
+ );
+ path = "ios-project";
+ sourceTree = "";
+ };
+ 9C15304D28AA70E800062871 /* ios-projectTests */ = {
+ isa = PBXGroup;
+ children = (
+ 9C15304E28AA70E800062871 /* ios_projectTests.m */,
+ );
+ path = "ios-projectTests";
+ sourceTree = "";
+ };
+ 9C15305728AA70E800062871 /* ios-projectUITests */ = {
+ isa = PBXGroup;
+ children = (
+ 9C15305828AA70E800062871 /* ios_projectUITests.m */,
+ 9C15305A28AA70E800062871 /* ios_projectUITestsLaunchTests.m */,
+ );
+ path = "ios-projectUITests";
+ sourceTree = "";
+ };
+ 9C15306728AA727600062871 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 9C15307128AA79FE00062871 /* libwebrtc.a */,
+ 9C15306828AA727600062871 /* liblivekit_native.a */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 9C15302E28AA70E800062871 /* ios-project */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 9C15305E28AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-project" */;
+ buildPhases = (
+ 9C15302B28AA70E800062871 /* Sources */,
+ 9C15302C28AA70E800062871 /* Frameworks */,
+ 9C15302D28AA70E800062871 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "ios-project";
+ productName = "ios-project";
+ productReference = 9C15302F28AA70E800062871 /* ios-project.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 9C15304928AA70E800062871 /* ios-projectTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 9C15306128AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-projectTests" */;
+ buildPhases = (
+ 9C15304628AA70E800062871 /* Sources */,
+ 9C15304728AA70E800062871 /* Frameworks */,
+ 9C15304828AA70E800062871 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 9C15304C28AA70E800062871 /* PBXTargetDependency */,
+ );
+ name = "ios-projectTests";
+ productName = "ios-projectTests";
+ productReference = 9C15304A28AA70E800062871 /* ios-projectTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 9C15305328AA70E800062871 /* ios-projectUITests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 9C15306428AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-projectUITests" */;
+ buildPhases = (
+ 9C15305028AA70E800062871 /* Sources */,
+ 9C15305128AA70E800062871 /* Frameworks */,
+ 9C15305228AA70E800062871 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 9C15305628AA70E800062871 /* PBXTargetDependency */,
+ );
+ name = "ios-projectUITests";
+ productName = "ios-projectUITests";
+ productReference = 9C15305428AA70E800062871 /* ios-projectUITests.xctest */;
+ productType = "com.apple.product-type.bundle.ui-testing";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 9C15302728AA70E800062871 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = 1;
+ LastUpgradeCheck = 1340;
+ TargetAttributes = {
+ 9C15302E28AA70E800062871 = {
+ CreatedOnToolsVersion = 13.4.1;
+ };
+ 9C15304928AA70E800062871 = {
+ CreatedOnToolsVersion = 13.4.1;
+ TestTargetID = 9C15302E28AA70E800062871;
+ };
+ 9C15305328AA70E800062871 = {
+ CreatedOnToolsVersion = 13.4.1;
+ TestTargetID = 9C15302E28AA70E800062871;
+ };
+ };
+ };
+ buildConfigurationList = 9C15302A28AA70E800062871 /* Build configuration list for PBXProject "ios-project" */;
+ compatibilityVersion = "Xcode 13.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 9C15302628AA70E800062871;
+ productRefGroup = 9C15303028AA70E800062871 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 9C15302E28AA70E800062871 /* ios-project */,
+ 9C15304928AA70E800062871 /* ios-projectTests */,
+ 9C15305328AA70E800062871 /* ios-projectUITests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 9C15302D28AA70E800062871 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9C15304228AA70E800062871 /* LaunchScreen.storyboard in Resources */,
+ 9C15303F28AA70E800062871 /* Assets.xcassets in Resources */,
+ 9C15303D28AA70E800062871 /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15304828AA70E800062871 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15305228AA70E800062871 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 9C15302B28AA70E800062871 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9C15303A28AA70E800062871 /* ViewController.m in Sources */,
+ 9C15303428AA70E800062871 /* AppDelegate.m in Sources */,
+ 9C15304528AA70E800062871 /* main.m in Sources */,
+ 9C15303728AA70E800062871 /* SceneDelegate.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15304628AA70E800062871 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9C15304F28AA70E800062871 /* ios_projectTests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9C15305028AA70E800062871 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9C15305B28AA70E800062871 /* ios_projectUITestsLaunchTests.m in Sources */,
+ 9C15305928AA70E800062871 /* ios_projectUITests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 9C15304C28AA70E800062871 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 9C15302E28AA70E800062871 /* ios-project */;
+ targetProxy = 9C15304B28AA70E800062871 /* PBXContainerItemProxy */;
+ };
+ 9C15305628AA70E800062871 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 9C15302E28AA70E800062871 /* ios-project */;
+ targetProxy = 9C15305528AA70E800062871 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 9C15303B28AA70E800062871 /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 9C15303C28AA70E800062871 /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 9C15304028AA70E800062871 /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 9C15304128AA70E800062871 /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 9C15305C28AA70E800062871 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.5;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 9C15305D28AA70E800062871 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu11;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.5;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 9C15305F28AA70E800062871 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = "ios-project/Info.plist";
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
+ INFOPLIST_KEY_UIMainStoryboardFile = Main;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/ios-project",
+ );
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-project";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 9C15306028AA70E800062871 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = "ios-project/Info.plist";
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
+ INFOPLIST_KEY_UIMainStoryboardFile = Main;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/ios-project",
+ );
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-project";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+ 9C15306228AA70E800062871 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.5;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-projectTests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ios-project.app/ios-project";
+ };
+ name = Debug;
+ };
+ 9C15306328AA70E800062871 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.5;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-projectTests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ios-project.app/ios-project";
+ };
+ name = Release;
+ };
+ 9C15306528AA70E800062871 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-projectUITests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = "ios-project";
+ };
+ name = Debug;
+ };
+ 9C15306628AA70E800062871 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = H7CHRS7HPB;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "io.livekit.ios-projectUITests";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_EMIT_LOC_STRINGS = NO;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TEST_TARGET_NAME = "ios-project";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 9C15302A28AA70E800062871 /* Build configuration list for PBXProject "ios-project" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9C15305C28AA70E800062871 /* Debug */,
+ 9C15305D28AA70E800062871 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 9C15305E28AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-project" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9C15305F28AA70E800062871 /* Debug */,
+ 9C15306028AA70E800062871 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 9C15306128AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-projectTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9C15306228AA70E800062871 /* Debug */,
+ 9C15306328AA70E800062871 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 9C15306428AA70E800062871 /* Build configuration list for PBXNativeTarget "ios-projectUITests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9C15306528AA70E800062871 /* Debug */,
+ 9C15306628AA70E800062871 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 9C15302728AA70E800062871 /* Project object */;
+}
diff --git a/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcuserdata/theomonnom.xcuserdatad/UserInterfaceState.xcuserstate b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcuserdata/theomonnom.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..2b6a684
Binary files /dev/null and b/examples/ios-project/ios-project.xcodeproj/project.xcworkspace/xcuserdata/theomonnom.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/examples/ios-project/ios-project.xcodeproj/xcuserdata/theomonnom.xcuserdatad/xcschemes/xcschememanagement.plist b/examples/ios-project/ios-project.xcodeproj/xcuserdata/theomonnom.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..185b2e2
--- /dev/null
+++ b/examples/ios-project/ios-project.xcodeproj/xcuserdata/theomonnom.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,14 @@
+
+
+
+
+ SchemeUserState
+
+ ios-project.xcscheme_^#shared#^_
+
+ orderHint
+ 0
+
+
+
+
diff --git a/examples/ios-project/ios-project/AppDelegate.h b/examples/ios-project/ios-project/AppDelegate.h
new file mode 100644
index 0000000..3c6baf3
--- /dev/null
+++ b/examples/ios-project/ios-project/AppDelegate.h
@@ -0,0 +1,14 @@
+//
+// AppDelegate.h
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface AppDelegate : UIResponder
+
+
+@end
+
diff --git a/examples/ios-project/ios-project/AppDelegate.m b/examples/ios-project/ios-project/AppDelegate.m
new file mode 100644
index 0000000..b682747
--- /dev/null
+++ b/examples/ios-project/ios-project/AppDelegate.m
@@ -0,0 +1,40 @@
+//
+// AppDelegate.m
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import "AppDelegate.h"
+
+@interface AppDelegate ()
+
+@end
+
+@implementation AppDelegate
+
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ // Override point for customization after application launch.
+ return YES;
+}
+
+
+#pragma mark - UISceneSession lifecycle
+
+
+- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
+ // Called when a new scene session is being created.
+ // Use this method to select a configuration to create the new scene with.
+ return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
+}
+
+
+- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions {
+ // Called when the user discards a scene session.
+ // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
+ // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
+}
+
+
+@end
diff --git a/examples/ios-project/ios-project/Assets.xcassets/AccentColor.colorset/Contents.json b/examples/ios-project/ios-project/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 0000000..eb87897
--- /dev/null
+++ b/examples/ios-project/ios-project/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,11 @@
+{
+ "colors" : [
+ {
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/examples/ios-project/ios-project/Assets.xcassets/AppIcon.appiconset/Contents.json b/examples/ios-project/ios-project/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..9221b9b
--- /dev/null
+++ b/examples/ios-project/ios-project/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,98 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/examples/ios-project/ios-project/Assets.xcassets/Contents.json b/examples/ios-project/ios-project/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/examples/ios-project/ios-project/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/examples/ios-project/ios-project/Base.lproj/LaunchScreen.storyboard b/examples/ios-project/ios-project/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..2b4910a
--- /dev/null
+++ b/examples/ios-project/ios-project/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/ios-project/ios-project/Base.lproj/Main.storyboard b/examples/ios-project/ios-project/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..447f301
--- /dev/null
+++ b/examples/ios-project/ios-project/Base.lproj/Main.storyboard
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/ios-project/ios-project/Info.plist b/examples/ios-project/ios-project/Info.plist
new file mode 100644
index 0000000..81ed29b
--- /dev/null
+++ b/examples/ios-project/ios-project/Info.plist
@@ -0,0 +1,25 @@
+
+
+
+
+ UIApplicationSceneManifest
+
+ UIApplicationSupportsMultipleScenes
+
+ UISceneConfigurations
+
+ UIWindowSceneSessionRoleApplication
+
+
+ UISceneConfigurationName
+ Default Configuration
+ UISceneDelegateClassName
+ SceneDelegate
+ UISceneStoryboardFile
+ Main
+
+
+
+
+
+
diff --git a/examples/ios-project/ios-project/SceneDelegate.h b/examples/ios-project/ios-project/SceneDelegate.h
new file mode 100644
index 0000000..d1ce79d
--- /dev/null
+++ b/examples/ios-project/ios-project/SceneDelegate.h
@@ -0,0 +1,15 @@
+//
+// SceneDelegate.h
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface SceneDelegate : UIResponder
+
+@property (strong, nonatomic) UIWindow * window;
+
+@end
+
diff --git a/examples/ios-project/ios-project/SceneDelegate.m b/examples/ios-project/ios-project/SceneDelegate.m
new file mode 100644
index 0000000..af50c78
--- /dev/null
+++ b/examples/ios-project/ios-project/SceneDelegate.m
@@ -0,0 +1,57 @@
+//
+// SceneDelegate.m
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import "SceneDelegate.h"
+
+@interface SceneDelegate ()
+
+@end
+
+@implementation SceneDelegate
+
+
+- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
+ // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
+ // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
+ // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
+}
+
+
+- (void)sceneDidDisconnect:(UIScene *)scene {
+ // Called as the scene is being released by the system.
+ // This occurs shortly after the scene enters the background, or when its session is discarded.
+ // Release any resources associated with this scene that can be re-created the next time the scene connects.
+ // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
+}
+
+
+- (void)sceneDidBecomeActive:(UIScene *)scene {
+ // Called when the scene has moved from an inactive state to an active state.
+ // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
+}
+
+
+- (void)sceneWillResignActive:(UIScene *)scene {
+ // Called when the scene will move from an active state to an inactive state.
+ // This may occur due to temporary interruptions (ex. an incoming phone call).
+}
+
+
+- (void)sceneWillEnterForeground:(UIScene *)scene {
+ // Called as the scene transitions from the background to the foreground.
+ // Use this method to undo the changes made on entering the background.
+}
+
+
+- (void)sceneDidEnterBackground:(UIScene *)scene {
+ // Called as the scene transitions from the foreground to the background.
+ // Use this method to save data, release shared resources, and store enough scene-specific state information
+ // to restore the scene back to its current state.
+}
+
+
+@end
diff --git a/examples/ios-project/ios-project/ViewController.h b/examples/ios-project/ios-project/ViewController.h
new file mode 100644
index 0000000..3abbd60
--- /dev/null
+++ b/examples/ios-project/ios-project/ViewController.h
@@ -0,0 +1,14 @@
+//
+// ViewController.h
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface ViewController : UIViewController
+
+
+@end
+
diff --git a/examples/ios-project/ios-project/ViewController.m b/examples/ios-project/ios-project/ViewController.m
new file mode 100644
index 0000000..e8ddaee
--- /dev/null
+++ b/examples/ios-project/ios-project/ViewController.m
@@ -0,0 +1,22 @@
+//
+// ViewController.m
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ // Do any additional setup after loading the view.
+}
+
+
+@end
diff --git a/examples/ios-project/ios-project/main.m b/examples/ios-project/ios-project/main.m
new file mode 100644
index 0000000..8560ad9
--- /dev/null
+++ b/examples/ios-project/ios-project/main.m
@@ -0,0 +1,27 @@
+//
+// main.m
+// ios-project
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+#import "AppDelegate.h"
+#import
+
+void test_rust(void);
+
+
+int main(int argc, char * argv[]) {
+ NSString * appDelegateClassName;
+ @autoreleasepool {
+ // Setup code that might create autoreleased objects goes here.
+ appDelegateClassName = NSStringFromClass([AppDelegate class]);
+ }
+
+
+ test_rust();
+
+ printf("This is a test");
+ return UIApplicationMain(argc, argv, nil, appDelegateClassName);
+}
diff --git a/examples/ios-project/ios-projectTests/ios_projectTests.m b/examples/ios-project/ios-projectTests/ios_projectTests.m
new file mode 100644
index 0000000..c9fa08b
--- /dev/null
+++ b/examples/ios-project/ios-projectTests/ios_projectTests.m
@@ -0,0 +1,36 @@
+//
+// ios_projectTests.m
+// ios-projectTests
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface ios_projectTests : XCTestCase
+
+@end
+
+@implementation ios_projectTests
+
+- (void)setUp {
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+}
+
+- (void)testExample {
+ // This is an example of a functional test case.
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testPerformanceExample {
+ // This is an example of a performance test case.
+ [self measureBlock:^{
+ // Put the code you want to measure the time of here.
+ }];
+}
+
+@end
diff --git a/examples/ios-project/ios-projectUITests/ios_projectUITests.m b/examples/ios-project/ios-projectUITests/ios_projectUITests.m
new file mode 100644
index 0000000..8995ece
--- /dev/null
+++ b/examples/ios-project/ios-projectUITests/ios_projectUITests.m
@@ -0,0 +1,46 @@
+//
+// ios_projectUITests.m
+// ios-projectUITests
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface ios_projectUITests : XCTestCase
+
+@end
+
+@implementation ios_projectUITests
+
+- (void)setUp {
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+
+ // In UI tests it is usually best to stop immediately when a failure occurs.
+ self.continueAfterFailure = NO;
+
+ // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
+}
+
+- (void)tearDown {
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+}
+
+- (void)testExample {
+ // UI tests must launch the application that they test.
+ XCUIApplication *app = [[XCUIApplication alloc] init];
+ [app launch];
+
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
+}
+
+- (void)testLaunchPerformance {
+ if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *)) {
+ // This measures how long it takes to launch your application.
+ [self measureWithMetrics:@[[[XCTApplicationLaunchMetric alloc] init]] block:^{
+ [[[XCUIApplication alloc] init] launch];
+ }];
+ }
+}
+
+@end
diff --git a/examples/ios-project/ios-projectUITests/ios_projectUITestsLaunchTests.m b/examples/ios-project/ios-projectUITests/ios_projectUITestsLaunchTests.m
new file mode 100644
index 0000000..d3f2f97
--- /dev/null
+++ b/examples/ios-project/ios-projectUITests/ios_projectUITestsLaunchTests.m
@@ -0,0 +1,37 @@
+//
+// ios_projectUITestsLaunchTests.m
+// ios-projectUITests
+//
+// Created by Théo Monnom on 15/08/2022.
+//
+
+#import
+
+@interface ios_projectUITestsLaunchTests : XCTestCase
+
+@end
+
+@implementation ios_projectUITestsLaunchTests
+
++ (BOOL)runsForEachTargetApplicationUIConfiguration {
+ return YES;
+}
+
+- (void)setUp {
+ self.continueAfterFailure = NO;
+}
+
+- (void)testLaunch {
+ XCUIApplication *app = [[XCUIApplication alloc] init];
+ [app launch];
+
+ // Insert steps here to perform after app launch but before taking a screenshot,
+ // such as logging into a test account or navigating somewhere in the app
+
+ XCTAttachment *attachment = [XCTAttachment attachmentWithScreenshot:XCUIScreen.mainScreen.screenshot];
+ attachment.name = @"Launch Screen";
+ attachment.lifetime = XCTAttachmentLifetimeKeepAlways;
+ [self addAttachment:attachment];
+}
+
+@end
diff --git a/libwebrtc/.gitignore b/libwebrtc/.gitignore
deleted file mode 100644
index 21cd4fe..0000000
--- a/libwebrtc/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-include/
-libwebrtc.a
\ No newline at end of file