diff --git a/.github/workflows/android-jetpack.yml b/.github/workflows/android-jetpack.yml index e4c5ecbe..05659b24 100644 --- a/.github/workflows/android-jetpack.yml +++ b/.github/workflows/android-jetpack.yml @@ -28,7 +28,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '17' + java-version: '19' cache: 'gradle' - name: Grant execute permission for gradlew @@ -63,7 +63,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '17' + java-version: '19' cache: 'gradle' - name: Setup yarn uses: actions/setup-node@v3 @@ -87,7 +87,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '17' + java-version: '19' cache: 'gradle' - name: Setup yarn uses: actions/setup-node@v3 diff --git a/.gitignore b/.gitignore index a728eeca..83ff3bc8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Gradle files .gradle/ build/ +**/build/ # generated files bin/ diff --git a/README.md b/README.md index a5294354..da959e05 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # android-enhanced-video-player Enhanced Video Player for Android built on top of Exoplayer compliant with Android Jetpack Compose +[![](https://jitpack.io/v/profusion/android-enhanced-video-player.svg)](https://jitpack.io/#profusion/android-enhanced-video-player) + ## Table of Contents - [Table of Contents](#table-of-contents) diff --git a/androidenhancedvideoplayer/.gitignore b/androidenhancedvideoplayer/.gitignore deleted file mode 100644 index 796b96d1..00000000 --- a/androidenhancedvideoplayer/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/androidenhancedvideoplayer/build.gradle b/androidenhancedvideoplayer/build.gradle index 9f5d17d4..0f4cd0e1 100644 --- a/androidenhancedvideoplayer/build.gradle +++ b/androidenhancedvideoplayer/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' + id 'maven-publish' } android { @@ -23,12 +24,12 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_19 + targetCompatibility JavaVersion.VERSION_19 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '19' } buildFeatures { @@ -36,7 +37,7 @@ android { } composeOptions { - kotlinCompilerExtensionVersion '1.3.2' + kotlinCompilerExtensionVersion '1.4.7' } packagingOptions { @@ -47,9 +48,9 @@ android { } dependencies { - implementation 'androidx.core:core-ktx:1.8.0' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' - implementation 'androidx.activity:activity-compose:1.5.1' + implementation 'androidx.core:core-ktx:1.10.1' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1' + implementation 'androidx.activity:activity-compose:1.7.2' implementation platform('androidx.compose:compose-bom:2022.10.00') implementation 'androidx.compose.ui:ui' implementation 'androidx.compose.ui:ui-graphics' @@ -68,3 +69,17 @@ dependencies { implementation "androidx.media3:media3-ui:$mediaVersion" implementation "androidx.media3:media3-exoplayer-dash:$mediaVersion" } + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + + groupId = 'com.github.profusion' + artifactId = 'android-enhanced-video-player' + version = '1.0' + } + } + } +} diff --git a/app/.gitignore b/app/.gitignore deleted file mode 100644 index 796b96d1..00000000 --- a/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/app/build.gradle b/app/build.gradle index 8a12b37e..740ef3f7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,17 +27,17 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_19 + targetCompatibility JavaVersion.VERSION_19 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '19' } buildFeatures { compose true } composeOptions { - kotlinCompilerExtensionVersion '1.3.2' + kotlinCompilerExtensionVersion '1.4.7' } packagingOptions { resources { @@ -48,9 +48,9 @@ android { dependencies { - implementation 'androidx.core:core-ktx:1.8.0' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' - implementation 'androidx.activity:activity-compose:1.5.1' + implementation 'androidx.core:core-ktx:1.10.1' + implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1' + implementation 'androidx.activity:activity-compose:1.7.2' implementation platform('androidx.compose:compose-bom:2022.10.00') implementation 'androidx.compose.ui:ui' implementation 'androidx.compose.ui:ui-graphics' diff --git a/build.gradle b/build.gradle index 1da9f697..91a8223a 100644 --- a/build.gradle +++ b/build.gradle @@ -11,9 +11,9 @@ buildscript { } plugins { - id 'com.android.application' version '8.0.0' apply false - id 'com.android.library' version '8.0.0' apply false - id 'org.jetbrains.kotlin.android' version '1.7.20' apply false + id 'com.android.application' version '8.0.1' apply false + id 'com.android.library' version '8.0.1' apply false + id 'org.jetbrains.kotlin.android' version '1.8.21' apply false id 'org.jlleitschuh.gradle.ktlint' version "11.3.2" } diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..f476d5cf --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,3 @@ +before_install: + - sdk install java 19.0.1-open + - sdk use java 19.0.1-open \ No newline at end of file