Files
notesnook/apps/mobile/patches/react-native-notification-sounds+0.5.5.patch
Ammar Ahmed 4843d1c39e mobile: update mobile app to react-native 0.72.0 (#2814)
* mobile: upgrade to react-native 0.71

* mobile: update to react-native 0.72.0

* mobile: fix release build on android

* mobile: fix editor stuck in loading state

* mobile: fix bootsplash logo in dark mode

* mobile: update patch files

* mobile: cleanup

* mobile: increase delay

* mobile: add logs on upload

* mobile: ensure editor is ready before note loading

* mobile: fix ui

* mobile: fix

* ci: update workflow

* ci: undo workflow changes

---------

Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com>
2023-06-26 21:50:20 +05:00

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:+"
}