feat: mobile app package (#1075)
This commit is contained in:
21
packages/mobile/patches/react-native-keychain+8.0.0.patch
Normal file
21
packages/mobile/patches/react-native-keychain+8.0.0.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
Fixes Android on launch performance issue
|
||||
https://github.com/oblador/react-native-keychain/issues/314#issuecomment-736640077
|
||||
|
||||
diff --git a/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java b/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java
|
||||
index 6ca68cb..a600f38 100644
|
||||
--- a/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java
|
||||
+++ b/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java
|
||||
@@ -140,13 +140,7 @@ public class KeychainModule extends ReactContextBaseJavaModule {
|
||||
super(reactContext);
|
||||
prefsStorage = new PrefsStorage(reactContext);
|
||||
|
||||
- addCipherStorageToMap(new CipherStorageFacebookConceal(reactContext));
|
||||
addCipherStorageToMap(new CipherStorageKeystoreAesCbc());
|
||||
-
|
||||
- // we have a references to newer api that will fail load of app classes in old androids OS
|
||||
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
- addCipherStorageToMap(new CipherStorageKeystoreRsaEcb());
|
||||
- }
|
||||
}
|
||||
|
||||
/** Allow initialization in chain. */
|
||||
@@ -0,0 +1,61 @@
|
||||
diff --git a/node_modules/react-native-static-server/android/build.gradle b/node_modules/react-native-static-server/android/build.gradle
|
||||
index 0c7bca6..6de3115 100644
|
||||
--- a/node_modules/react-native-static-server/android/build.gradle
|
||||
+++ b/node_modules/react-native-static-server/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)
|
||||
@@ -108,17 +108,6 @@ def configureReactNativePom(def pom) {
|
||||
afterEvaluate { project ->
|
||||
// some Gradle build hooks ref:
|
||||
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
||||
- 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'
|
||||
@@ -137,15 +126,13 @@ 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 {
|
||||
+ repositories {
|
||||
+ maven {
|
||||
+ url = uri("file://${projectDir}/../android/maven")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user