This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'io.github.thibaultbee.streampack.example'
|
||||
compileSdk 36
|
||||
|
||||
defaultConfig {
|
||||
applicationId "io.github.thibaultbee.streampack.example"
|
||||
minSdk 26
|
||||
targetSdk 36
|
||||
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'
|
||||
}
|
||||
packagingOptions {
|
||||
jniLibs {
|
||||
pickFirsts += ['**/*.so']
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation 'androidx.core:core-ktx:1.17.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.7.1'
|
||||
implementation 'com.google.android.material:material:1.13.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
|
||||
|
||||
implementation "io.github.thibaultbee.streampack:streampack-core:${streampackVersion}"
|
||||
// For the `PreviewView`
|
||||
implementation "io.github.thibaultbee.streampack:streampack-ui:${streampackVersion}"
|
||||
// TODO: Only needed for RTMP live streaming: remove if you don't need it
|
||||
implementation "io.github.thibaultbee.streampack:streampack-rtmp:${streampackVersion}"
|
||||
// TODO: Only needed for SRT live streaming: remove if you don't need it
|
||||
implementation "io.github.thibaultbee.streampack:streampack-srt:${streampackVersion}"
|
||||
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.9.4'
|
||||
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
|
||||
}
|
||||
65
app/build.gradle.kts
Normal file
65
app/build.gradle.kts
Normal file
@@ -0,0 +1,65 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "io.github.thibaultbee.streampack.app"
|
||||
compileSdk {
|
||||
version = release(36)
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "io.github.thibaultbee.streampack.app"
|
||||
minSdk = 24
|
||||
targetSdk = 36
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_18
|
||||
targetCompatibility = JavaVersion.VERSION_18
|
||||
}
|
||||
kotlin {
|
||||
compilerOptions {
|
||||
jvmTarget.set(JvmTarget.JVM_18)
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.streampack.core)
|
||||
// For the `PreviewView`
|
||||
implementation(libs.streampack.ui)
|
||||
// TODO: Only needed for RTMP live streaming: remove if you don't need it
|
||||
implementation(libs.streampack.rtmp)
|
||||
// TODO: Only needed for SRT live streaming: remove if you don't need it
|
||||
implementation(libs.streampack.srt)
|
||||
|
||||
implementation(libs.core.ktx)
|
||||
implementation(libs.appcompat)
|
||||
implementation(libs.material)
|
||||
implementation(libs.constraintlayout)
|
||||
implementation(libs.lifecycle.runtime.ktx)
|
||||
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.ext.junit)
|
||||
androidTestImplementation(libs.espresso.core)
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example
|
||||
package io.github.thibaultbee.streampack.app
|
||||
|
||||
import android.content.pm.ActivityInfo
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example
|
||||
package io.github.thibaultbee.streampack.app
|
||||
|
||||
import android.Manifest
|
||||
import android.annotation.SuppressLint
|
||||
@@ -9,12 +9,12 @@ import androidx.activity.viewModels
|
||||
import androidx.annotation.RequiresPermission
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import io.github.thibaultbee.streampack.app.databinding.ActivityMainBinding
|
||||
import io.github.thibaultbee.streampack.core.elements.sources.video.camera.extensions.defaultCameraId
|
||||
import io.github.thibaultbee.streampack.core.streamers.lifecycle.StreamerActivityLifeCycleObserver
|
||||
import io.github.thibaultbee.streampack.example.databinding.ActivityMainBinding
|
||||
import io.github.thibaultbee.streampack.example.utils.PermissionsManager
|
||||
import io.github.thibaultbee.streampack.example.utils.showDialog
|
||||
import io.github.thibaultbee.streampack.example.utils.toast
|
||||
import io.github.thibaultbee.streampack.app.utils.PermissionsManager
|
||||
import io.github.thibaultbee.streampack.app.utils.showDialog
|
||||
import io.github.thibaultbee.streampack.app.utils.toast
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example
|
||||
package io.github.thibaultbee.streampack.app
|
||||
|
||||
import android.Manifest
|
||||
import android.media.AudioFormat
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example
|
||||
package io.github.thibaultbee.streampack.app
|
||||
|
||||
import android.app.Application
|
||||
import androidx.lifecycle.ViewModel
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example.utils
|
||||
package io.github.thibaultbee.streampack.app.utils
|
||||
|
||||
import android.content.Context
|
||||
import android.content.DialogInterface
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.thibaultbee.streampack.example.utils
|
||||
package io.github.thibaultbee.streampack.app.utils
|
||||
|
||||
import android.content.pm.PackageManager
|
||||
import androidx.activity.ComponentActivity
|
||||
Reference in New Issue
Block a user