mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +01:00
108 lines
3.5 KiB
Diff
108 lines
3.5 KiB
Diff
|
|
diff --git a/node_modules/react-native-notification-sounds/android/build.gradle b/node_modules/react-native-notification-sounds/android/build.gradle
|
||
|
|
index cbbd583..cd322e4 100644
|
||
|
|
--- a/node_modules/react-native-notification-sounds/android/build.gradle
|
||
|
|
+++ b/node_modules/react-native-notification-sounds/android/build.gradle
|
||
|
|
@@ -15,7 +15,6 @@ buildscript {
|
||
|
|
}
|
||
|
|
|
||
|
|
apply plugin: 'com.android.library'
|
||
|
|
-apply plugin: 'maven-publish'
|
||
|
|
|
||
|
|
// Matches values in recent template from React Native 0.59 / 0.60
|
||
|
|
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9
|
||
|
|
@@ -41,93 +40,10 @@ android {
|
||
|
|
}
|
||
|
|
|
||
|
|
repositories {
|
||
|
|
- maven {
|
||
|
|
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
||
|
|
- // Matches recent template from React Native 0.59 / 0.60
|
||
|
|
- // https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L30
|
||
|
|
- // https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L28
|
||
|
|
- url "$projectDir/../node_modules/react-native/android"
|
||
|
|
- }
|
||
|
|
mavenCentral()
|
||
|
|
google()
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
- implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
|
||
|
|
-}
|
||
|
|
-
|
||
|
|
-def configureReactNativePom(def pom) {
|
||
|
|
- def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
|
||
|
|
-
|
||
|
|
- pom.project {
|
||
|
|
- name packageJson.title
|
||
|
|
- artifactId packageJson.name
|
||
|
|
- version = packageJson.version
|
||
|
|
- group = "com.reactlibrary"
|
||
|
|
- description packageJson.description
|
||
|
|
- url packageJson.repository.baseUrl
|
||
|
|
-
|
||
|
|
- licenses {
|
||
|
|
- license {
|
||
|
|
- name packageJson.license
|
||
|
|
- url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
|
||
|
|
- distribution 'repo'
|
||
|
|
- }
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- developers {
|
||
|
|
- developer {
|
||
|
|
- id packageJson.author.username
|
||
|
|
- name packageJson.author.name
|
||
|
|
- }
|
||
|
|
- }
|
||
|
|
- }
|
||
|
|
-}
|
||
|
|
-
|
||
|
|
-afterEvaluate { project ->
|
||
|
|
-
|
||
|
|
- task androidJavadoc(type: Javadoc) {
|
||
|
|
- source = android.sourceSets.main.java.srcDirs
|
||
|
|
- classpath += files(android.bootClasspath)
|
||
|
|
- //classpath += files(project.getConfigurations().getByName('compile').asList())
|
||
|
|
- include '**/*.java'
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
||
|
|
- classifier = 'javadoc'
|
||
|
|
- from androidJavadoc.destinationDir
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- task androidSourcesJar(type: Jar) {
|
||
|
|
- classifier = 'sources'
|
||
|
|
- from android.sourceSets.main.java.srcDirs
|
||
|
|
- include '**/*.java'
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- android.libraryVariants.all { variant ->
|
||
|
|
- def name = variant.name.capitalize()
|
||
|
|
- task "jar${name}"(type: Jar, dependsOn: variant.javaCompile) {
|
||
|
|
- from variant.javaCompile.destinationDir
|
||
|
|
- }
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- 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
|
||
|
|
- // }
|
||
|
|
- // }
|
||
|
|
-}
|
||
|
|
-subprojects { subproject ->
|
||
|
|
- if(project['name'] == 'react-native-notification-sounds'){
|
||
|
|
- project.configurations { compile { } }
|
||
|
|
- }
|
||
|
|
+ implementation "com.facebook.react:react-native:+"
|
||
|
|
}
|