-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to kotlin dsl and remove open if not needed
- Loading branch information
Showing
19 changed files
with
155 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
val vCode: Int by rootProject.extra | ||
val vName: String by rootProject.extra | ||
val rootEncoderVersion: String by rootProject.extra | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
} | ||
|
||
android { | ||
namespace = "com.pedro.sample" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.pedro.sample" | ||
minSdk = 16 | ||
targetSdk = 34 | ||
versionCode = vCode | ||
versionName = vName | ||
} | ||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":rtspserver")) | ||
implementation("com.github.pedroSG94.RootEncoder:library:$rootEncoderVersion") | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.4") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
val libraryGroup by rootProject.extra { "com.github.pedroSG94" } | ||
val vCode by rootProject.extra { 121 } | ||
val vName by rootProject.extra { "1.2.1" } | ||
val coroutinesVersion by rootProject.extra { "1.7.3" } | ||
val rootEncoderVersion by rootProject.extra { "2.3.5" } | ||
|
||
plugins { | ||
id("com.android.application") version "8.2.2" apply false | ||
id("org.jetbrains.kotlin.android") version "1.9.22" apply false | ||
id("org.jetbrains.dokka") version "1.9.10" apply true | ||
} | ||
|
||
tasks.register("clean") { | ||
delete(rootProject.buildDir) | ||
} | ||
|
||
tasks.dokkaHtmlMultiModule.configure { | ||
outputDirectory.set(File("docs")) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
val libraryGroup: String by rootProject.extra | ||
val vName: String by rootProject.extra | ||
val coroutinesVersion: String by rootProject.extra | ||
val rootEncoderVersion: String by rootProject.extra | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
id("maven-publish") | ||
id("org.jetbrains.dokka") | ||
} | ||
|
||
android { | ||
namespace = "com.pedro.rtspserver" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 16 | ||
lint.targetSdk = 34 | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
publishing { | ||
singleVariant("release") | ||
} | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
// Creates a Maven publication called "release". | ||
create<MavenPublication>("release") { | ||
// Applies the component for the release build variant. | ||
from(components["release"]) | ||
|
||
// You can then customize attributes of the publication as shown below. | ||
groupId = libraryGroup | ||
artifactId = "rtspserver" | ||
version = vName | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion") | ||
implementation("com.github.pedroSG94.RootEncoder:library:$rootEncoderVersion") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pluginManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
@Suppress("UnstableApiUsage") | ||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { url = uri("https://jitpack.io") } | ||
} | ||
} | ||
|
||
rootProject.name = "RTSP-Server" | ||
include(":app", ":rtspserver") |