* initial UI framework * limited javascrtipt interaction * run some js * try to resolve permissions issues * some initial RTC javascript * approaching a workable js file * js fixes * tidy up js * add some ui to web call * fixes * ready to test * typo * refactor for readability * tidy up before adding encryption * add transform to video streams * tidy a little, audio encoding works, video fails * minor changes * use variables consistently * e2ee video calls git push * include IV in outgoing message, decrypt fails when trying to read back * add different prefix retention for differing frame types * e2ee video calls with iv passed in band * enforce use of VP8 encoding * allow plaintext chunk only for video frames * tidy up kotlin. Android <> browser tested * minor ios changes * capture js logs in xcode * typo * linting Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
112 lines
4.0 KiB
Groovy
112 lines
4.0 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "chat.simplex.app"
|
|
minSdk 29
|
|
targetSdk 32
|
|
versionCode 26
|
|
versionName "1.6"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
ndk {
|
|
abiFilters 'arm64-v8a'
|
|
}
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags ''
|
|
}
|
|
}
|
|
}
|
|
|
|
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'
|
|
freeCompilerArgs += "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi"
|
|
freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
|
|
freeCompilerArgs += "-opt-in=androidx.compose.ui.text.ExperimentalTextApi"
|
|
freeCompilerArgs += "-opt-in=androidx.compose.material.ExperimentalMaterialApi"
|
|
freeCompilerArgs += "-opt-in=com.google.accompanist.insets.ExperimentalAnimatedInsets"
|
|
freeCompilerArgs += "-opt-in=com.google.accompanist.permissions.ExperimentalPermissionsApi"
|
|
freeCompilerArgs += "-opt-in=kotlinx.serialization.InternalSerializationApi"
|
|
freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path file('src/main/cpp/CMakeLists.txt')
|
|
version '3.10.2'
|
|
}
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.material:material:$compose_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
|
|
implementation 'androidx.lifecycle:lifecycle-process:2.4.1'
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.3.2'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2'
|
|
implementation "androidx.compose.material:material-icons-extended:$compose_version"
|
|
implementation "androidx.navigation:navigation-compose:2.4.1"
|
|
implementation "com.google.accompanist:accompanist-insets:0.23.0"
|
|
implementation 'androidx.webkit:webkit:1.4.0'
|
|
|
|
def work_version = "2.7.1"
|
|
implementation "androidx.work:work-runtime-ktx:$work_version"
|
|
implementation "androidx.work:work-multiprocess:$work_version"
|
|
|
|
def camerax_version = "1.1.0-beta01"
|
|
implementation "androidx.camera:camera-core:${camerax_version}"
|
|
implementation "androidx.camera:camera-camera2:${camerax_version}"
|
|
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
|
|
implementation "androidx.camera:camera-view:${camerax_version}"
|
|
|
|
//Barcode
|
|
implementation 'org.boofcv:boofcv-android:0.40.1'
|
|
implementation 'org.boofcv:boofcv-core:0.40.1'
|
|
|
|
//Camera Permission
|
|
implementation "com.google.accompanist:accompanist-permissions:0.23.0"
|
|
|
|
// Link Previews
|
|
implementation 'org.jsoup:jsoup:1.13.1'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
}
|