-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch [email protected] for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/rn-screenshot-detector/android/.idea/misc.xml b/node_modules/rn-screenshot-detector/android/.idea/misc.xml
index 99ed2ed..494ce2f 100644
--- a/node_modules/rn-screenshot-detector/android/.idea/misc.xml
+++ b/node_modules/rn-screenshot-detector/android/.idea/misc.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="NullableNotNullManager">
- <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
- <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
+ <option name="myDefaultNullable" value="androidx.annotation.Nullable" />
+ <option name="myDefaultNotNull" value="androidx.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="5">
@@ -10,7 +10,7 @@
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
<item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
- <item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
+ <item index="4" class="java.lang.String" itemvalue="androidx.annotation.Nullable" />
</list>
</value>
</option>
@@ -20,7 +20,7 @@
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
- <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
+ <item index="3" class="java.lang.String" itemvalue="androidx.annotation.NonNull" />
</list>
</value>
</option>
diff --git a/node_modules/rn-screenshot-detector/android/build.gradle b/node_modules/rn-screenshot-detector/android/build.gradle
index ca432c5..f9eff7c 100644
--- a/node_modules/rn-screenshot-detector/android/build.gradle
+++ b/node_modules/rn-screenshot-detector/android/build.gradle
@@ -22,7 +22,7 @@ allprojects {
}
apply plugin: 'com.android.library'
-apply plugin: 'maven'
+apply plugin: 'maven-publish'
// Matches values in recent template from React Native (0.59)
// https://github.com/facebook/react-native/blob/0.59-stable/template/android/build.gradle#L5-L9This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels