diff --git a/README.md b/README.md index 4d63eb3..6a65fcf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # react-native-video-cache +* Fixed its android conflict with react native v0.67 (gradle > 0.7) + Boost performance on online video loading and caching Use following libraries to do the heavy lifting. diff --git a/android/build.gradle b/android/build.gradle index 9096420..a4d8ea9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -20,7 +20,7 @@ def safeExtGet(prop, fallback) { } apply plugin: 'com.android.library' -apply plugin: 'maven' +apply plugin: 'maven-publish' buildscript { // The Android Gradle plugin is only required when opening the android folder stand-alone. @@ -39,7 +39,7 @@ buildscript { } apply plugin: 'com.android.library' -apply plugin: 'maven' +apply plugin: 'maven-publish' android { compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) @@ -120,7 +120,7 @@ afterEvaluate { project -> } task androidSourcesJar(type: Jar) { - classifier = 'sources' + archiveClassifier = 'sources' from android.sourceSets.main.java.srcDirs include '**/*.java' } @@ -134,17 +134,16 @@ afterEvaluate { project -> } } - artifacts { - archives androidSourcesJar - archives androidJavadocJar - } - task installArchives(type: Upload) { configuration = configurations.archives - repositories.mavenDeployer { - // Deploy to react-native-event-bridge/maven, ready to publish to npm - repository url: "file://${projectDir}/../android/maven" - configureReactNativePom pom + publishing { + publications { + maven(MavenPublication) { + artifact androidSourcesJar + artifact androidJavadocJar + } + } } } } +