Skip to content

Commit 6a02571

Browse files
authored
Merge pull request #20 from Novage/chore/update-dependencies-android-36
Chore: update project dependencies to latest versions
2 parents cfa775e + 10ea677 commit 6a02571

File tree

6 files changed

+48
-34
lines changed

6 files changed

+48
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# P2P Media Loader Mobile
22

33
![Platform: Android](https://img.shields.io/badge/platform-Android-blue)
4-
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.0-blue.svg?logo=kotlin)](https://kotlinlang.org)
4+
[![Kotlin](https://img.shields.io/badge/kotlin-2.2.20-blue.svg?logo=kotlin)](https://kotlinlang.org)
55
[![JitPack](https://jitpack.io/v/Novage/p2p-media-loader-mobile.svg)](https://jitpack.io/#Novage/p2p-media-loader-mobile)
66
[![Build Status](https://img.shields.io/github/actions/workflow/status/Novage/p2p-media-loader-mobile/check-build.yml)](https://github.com/Novage/p2p-media-loader-mobile/actions)
77

app/build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.application)
35
alias(libs.plugins.jetbrains.kotlin.android)
@@ -6,12 +8,12 @@ plugins {
68

79
android {
810
namespace = "com.novage.demo"
9-
compileSdk = 35
11+
compileSdk = 36
1012

1113
defaultConfig {
1214
applicationId = "com.novage.demo"
1315
minSdk = 24
14-
targetSdk = 35
16+
targetSdk = 36
1517

1618
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1719
vectorDrawables {
@@ -33,8 +35,10 @@ android {
3335
targetCompatibility = JavaVersion.VERSION_1_8
3436
}
3537

36-
kotlinOptions {
37-
jvmTarget = "1.8"
38+
kotlin {
39+
compilerOptions {
40+
jvmTarget.set(JvmTarget.JVM_1_8)
41+
}
3842
}
3943

4044
buildFeatures {

gradle/libs.versions.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[versions]
2-
agp = "8.8.0"
3-
kotlin = "2.1.0"
4-
coreKtx = "1.15.0"
5-
kotlinxSerializationJsonVersion = "1.8.0"
6-
ktorServer = "3.1.0"
7-
lifecycleRuntimeKtx = "2.8.7"
8-
activityCompose = "1.10.0"
9-
material3 = "1.3.1"
10-
media3Exoplayer = "1.5.1"
11-
media3ExoplayerHls = "1.5.1"
12-
media3Ui = "1.5.1"
13-
okhttp = "4.12.0"
14-
webkit = "1.12.1"
2+
agp = "8.13.0"
3+
kotlin = "2.2.20"
4+
coreKtx = "1.17.0"
5+
kotlinxSerializationJsonVersion = "1.9.0"
6+
ktorServer = "3.3.1"
7+
lifecycleRuntimeKtx = "2.9.4"
8+
activityCompose = "1.11.0"
9+
material3 = "1.4.0"
10+
media3Exoplayer = "1.8.0"
11+
media3ExoplayerHls = "1.8.0"
12+
media3Ui = "1.8.0"
13+
okhttp = "5.2.1"
14+
webkit = "1.14.0"
1515

1616
[libraries]
1717
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Sep 10 09:01:51 EEST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

p2pml/build.gradle.kts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
alias(libs.plugins.android.library)
35
alias(libs.plugins.jetbrains.kotlin.android)
@@ -8,7 +10,7 @@ plugins {
810

911
android {
1012
namespace = "com.novage.p2pml"
11-
compileSdk = 35
13+
compileSdk = 36
1214

1315
defaultConfig {
1416
minSdk = 24
@@ -32,8 +34,17 @@ android {
3234
targetCompatibility = JavaVersion.VERSION_1_8
3335
}
3436

35-
kotlinOptions {
36-
jvmTarget = "1.8"
37+
kotlin {
38+
compilerOptions {
39+
jvmTarget.set(JvmTarget.JVM_1_8)
40+
}
41+
}
42+
43+
publishing {
44+
singleVariant("release") {
45+
withSourcesJar()
46+
withJavadocJar()
47+
}
3748
}
3849
}
3950

p2pml/src/main/java/com/novage/p2pml/CoreEventMap.kt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,73 +13,72 @@ sealed class CoreEventMap<T> {
1313
* CoreEventMaps.OnSegmentLoaded
1414
* from Java code.
1515
*/
16-
@Suppress("EXPOSED_PROPERTY_TYPE")
1716
companion object {
1817
/**
1918
* Fired when a segment is fully downloaded and available for use.
2019
*/
2120
@JvmField
22-
val OnSegmentLoaded = OnSegmentLoadedEvent
21+
val OnSegmentLoaded: CoreEventMap<SegmentLoadDetails> = OnSegmentLoadedEvent
2322

2423
/**
2524
* Fired at the beginning of a segment download process.
2625
*/
2726
@JvmField
28-
val OnSegmentStart = OnSegmentStartEvent
27+
val OnSegmentStart: CoreEventMap<SegmentStartDetails> = OnSegmentStartEvent
2928

3029
/**
3130
* Fired when an error occurs during the download of a segment.
3231
*/
3332
@JvmField
34-
val OnSegmentError = OnSegmentErrorEvent
33+
val OnSegmentError: CoreEventMap<SegmentErrorDetails> = OnSegmentErrorEvent
3534

3635
/**
3736
* Fired if the download of a segment is aborted before completion.
3837
*/
3938
@JvmField
40-
val OnSegmentAbort = OnSegmentAbortEvent
39+
val OnSegmentAbort: CoreEventMap<SegmentAbortDetails> = OnSegmentAbortEvent
4140

4241
/**
4342
* Fired when a new peer-to-peer connection is established.
4443
*/
4544
@JvmField
46-
val OnPeerConnect = OnPeerConnectEvent
45+
val OnPeerConnect: CoreEventMap<PeerDetails> = OnPeerConnectEvent
4746

4847
/**
4948
* Fired when an existing peer-to-peer connection is closed.
5049
*/
5150
@JvmField
52-
val OnPeerClose = OnPeerCloseEvent
51+
val OnPeerClose: CoreEventMap<PeerDetails> = OnPeerCloseEvent
5352

5453
/**
5554
* Fired when an error occurs during a peer-to-peer connection.
5655
*/
5756
@JvmField
58-
val OnPeerError = OnPeerErrorEvent
57+
val OnPeerError: CoreEventMap<PeerErrorDetails> = OnPeerErrorEvent
5958

6059
/**
6160
* Fired after a chunk of data from a segment has been successfully downloaded.
6261
*/
6362
@JvmField
64-
val OnChunkDownloaded = OnChunkDownloadedEvent
63+
val OnChunkDownloaded: CoreEventMap<ChunkDownloadedDetails> = OnChunkDownloadedEvent
6564

6665
/**
6766
* Fired when a chunk of data has been successfully uploaded to a peer.
6867
*/
6968
@JvmField
70-
val OnChunkUploaded = OnChunkUploadedEvent
69+
val OnChunkUploaded: CoreEventMap<ChunkUploadedDetails> = OnChunkUploadedEvent
7170

7271
/**
7372
* Fired when an error occurs during the tracker request process.
7473
*/
7574
@JvmField
76-
val OnTrackerError = OnTrackerErrorEvent
75+
val OnTrackerError: CoreEventMap<TrackerErrorDetails> = OnTrackerErrorEvent
7776

7877
/**
7978
* Fired when a warning occurs during the tracker request process.
8079
*/
8180
@JvmField
82-
val OnTrackerWarning = OnTrackerWarningEvent
81+
val OnTrackerWarning: CoreEventMap<TrackerWarningDetails> = OnTrackerWarningEvent
8382
}
8483

8584
private data object OnSegmentLoadedEvent : CoreEventMap<SegmentLoadDetails>()

0 commit comments

Comments
 (0)