mobile: remove react-native-securerandom patch

This commit is contained in:
ammarahm-ed
2022-10-19 12:02:01 +05:00
parent 82f800e530
commit 0c84bfdbca
3 changed files with 6 additions and 94 deletions

View File

@@ -5,7 +5,7 @@
"main": "index.js",
"license": "GPL-3.0-or-later",
"dependencies": {
"@callstack/repack": "^3.0.0-next.7",
"@callstack/repack": "^3.0.0",
"@react-native-clipboard/clipboard": "^1.9.0",
"@react-native-community/checkbox": "^0.5.8",
"@react-native-community/netinfo": "^6.0.4",
@@ -45,7 +45,7 @@
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.0",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
"react-native-sodium": "github:ammarahm-ed/react-native-sodium",
"react-native-svg": "^12.3.0",

View File

@@ -57,7 +57,7 @@
"version": "1.0.0",
"license": "GPL-3.0-or-later",
"dependencies": {
"@callstack/repack": "^3.0.0-next.7",
"@callstack/repack": "^3.0.0",
"@react-native-clipboard/clipboard": "^1.9.0",
"@react-native-community/checkbox": "^0.5.8",
"@react-native-community/netinfo": "^6.0.4",
@@ -97,7 +97,7 @@
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.0",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
"react-native-sodium": "github:ammarahm-ed/react-native-sodium",
"react-native-svg": "^12.3.0",
@@ -24250,7 +24250,7 @@
"@babel/plugin-transform-named-capturing-groups-regex": "^7.16.5",
"@babel/preset-env": "^7.18.6",
"@babel/runtime": "^7.12.5",
"@callstack/repack": "^3.0.0-next.7",
"@callstack/repack": "^3.0.0",
"@react-native-clipboard/clipboard": "^1.9.0",
"@react-native-community/checkbox": "^0.5.8",
"@react-native-community/eslint-config": "^2.0.0",
@@ -24319,7 +24319,7 @@
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
"react-native-securerandom": "^1.0.0",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^7.2.0",
"react-native-sodium": "github:ammarahm-ed/react-native-sodium",
"react-native-svg": "^12.3.0",

View File

@@ -1,88 +0,0 @@
diff --git a/node_modules/react-native-securerandom/android/build.gradle b/node_modules/react-native-securerandom/android/build.gradle
index e21cdf0..dc19649 100644
--- a/node_modules/react-native-securerandom/android/build.gradle
+++ b/node_modules/react-native-securerandom/android/build.gradle
@@ -16,8 +16,6 @@ buildscript {
}
apply plugin: 'com.android.library'
-apply plugin: 'maven'
-
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
@@ -56,74 +54,3 @@ repositories {
dependencies {
implementation 'com.facebook.react:react-native:+'
}
-
-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 = "net.rhogan.rnsecurerandom"
- 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.url
- 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
- }
- }
-}