Quellcode durchsuchen

[RN] Build react-native-locale-detector

Upstream lacked a CocoaPods podspec file, PR:
https://github.com/DylanVann/react-native-locale-detector/pull/3
master
Saúl Ibarra Corretgé vor 7 Jahren
Ursprung
Commit
57206cc36a

+ 1
- 0
android/sdk/build.gradle Datei anzeigen

@@ -28,6 +28,7 @@ dependencies {
28 28
     compile project(':react-native-fetch-blob')
29 29
     compile project(':react-native-immersive')
30 30
     compile project(':react-native-keep-awake')
31
+    compile project(':react-native-locale-detector')
31 32
     compile project(':react-native-vector-icons')
32 33
     compile project(':react-native-webrtc')
33 34
 }

+ 1
- 0
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java Datei anzeigen

@@ -97,6 +97,7 @@ public class JitsiMeetView extends FrameLayout {
97 97
                 .setJSMainModulePath("index.android")
98 98
                 .addPackage(new com.corbt.keepawake.KCKeepAwakePackage())
99 99
                 .addPackage(new com.facebook.react.shell.MainReactPackage())
100
+                .addPackage(new com.i18n.reactnativei18n.ReactNativeI18n())
100 101
                 .addPackage(new com.oblador.vectoricons.VectorIconsPackage())
101 102
                 .addPackage(new com.ocetnik.timer.BackgroundTimerPackage())
102 103
                 .addPackage(new com.oney.WebRTCModule.WebRTCModulePackage())

+ 2
- 0
android/settings.gradle Datei anzeigen

@@ -9,6 +9,8 @@ include ':react-native-immersive'
9 9
 project(':react-native-immersive').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-immersive/android')
10 10
 include ':react-native-keep-awake'
11 11
 project(':react-native-keep-awake').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-keep-awake/android')
12
+include ':react-native-locale-detector'
13
+project(':react-native-locale-detector').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-locale-detector/android')
12 14
 include ':react-native-vector-icons'
13 15
 project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
14 16
 include ':react-native-webrtc'

+ 2
- 0
ios/Podfile Datei anzeigen

@@ -25,6 +25,8 @@ target 'JitsiMeet' do
25 25
     :path => '../node_modules/react-native-fetch-blob'
26 26
   pod 'react-native-keep-awake',
27 27
     :path => '../node_modules/react-native-keep-awake'
28
+  pod 'react-native-locale-detector',
29
+    :path => '../node_modules/react-native-locale-detector'
28 30
   pod 'react-native-webrtc', :path => '../node_modules/react-native-webrtc'
29 31
   pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
30 32
 end

+ 7
- 1
ios/Podfile.lock Datei anzeigen

@@ -7,6 +7,8 @@ PODS:
7 7
     - React/Core
8 8
   - react-native-keep-awake (2.0.6):
9 9
     - React
10
+  - react-native-locale-detector (1.0.0):
11
+    - React
10 12
   - react-native-webrtc (1.58.2)
11 13
   - React/BatchedBridge (0.50.4):
12 14
     - React/Core
@@ -47,6 +49,7 @@ DEPENDENCIES:
47 49
   - react-native-background-timer (from `../node_modules/react-native-background-timer`)
48 50
   - react-native-fetch-blob (from `../node_modules/react-native-fetch-blob`)
49 51
   - react-native-keep-awake (from `../node_modules/react-native-keep-awake`)
52
+  - react-native-locale-detector (from `../node_modules/react-native-locale-detector`)
50 53
   - react-native-webrtc (from `../node_modules/react-native-webrtc`)
51 54
   - React/BatchedBridge (from `../node_modules/react-native`)
52 55
   - React/Core (from `../node_modules/react-native`)
@@ -70,6 +73,8 @@ EXTERNAL SOURCES:
70 73
     :path: ../node_modules/react-native-fetch-blob
71 74
   react-native-keep-awake:
72 75
     :path: ../node_modules/react-native-keep-awake
76
+  react-native-locale-detector:
77
+    :path: ../node_modules/react-native-locale-detector
73 78
   react-native-webrtc:
74 79
     :path: ../node_modules/react-native-webrtc
75 80
   RNVectorIcons:
@@ -82,10 +87,11 @@ SPEC CHECKSUMS:
82 87
   react-native-background-timer: 10063c04bf85d7f8811dff8c74399f0aa715245f
83 88
   react-native-fetch-blob: 2bef9be702de8726f4d7bf58d2345579aaaee60d
84 89
   react-native-keep-awake: bb4dbb6fd21a7879432f9538b0b7d71398fe9f81
90
+  react-native-locale-detector: bb60716189d4c69c459355d0a4804c9b13f65e84
85 91
   react-native-webrtc: 6fd0b3aa890d7a9b9b4d01d30f958d17ae88a785
86 92
   RNVectorIcons: c1821d56c775cc5a3bca66c77dfc8cb4a90d27e2
87 93
   yoga: b9aebf996711e50fc31f5608c10aa108a5a0c29e
88 94
 
89
-PODFILE CHECKSUM: a7cb8c7365f8cf9a01ee4eb78325139933776faf
95
+PODFILE CHECKSUM: fabd6b6c27f8e1849f0668db3f403bf536ac8903
90 96
 
91 97
 COCOAPODS: 1.3.1

+ 1
- 3
package-lock.json Datei anzeigen

@@ -9514,9 +9514,7 @@
9514 9514
       "integrity": "sha512-ketZKC6G49W4iblKYCnIA5Tcx78Yu48n/K5XzZUnMm69wAnZxs1054Re2V5xpSwX5VZasOBjW1iI1cTjtB/H5g=="
9515 9515
     },
9516 9516
     "react-native-locale-detector": {
9517
-      "version": "1.0.1",
9518
-      "resolved": "https://registry.npmjs.org/react-native-locale-detector/-/react-native-locale-detector-1.0.1.tgz",
9519
-      "integrity": "sha1-wAImHstgYZ5ZUiV8jH+jHCwV7TA="
9517
+      "version": "github:jitsi/react-native-locale-detector#cc76092fc4335488a28a9529c8b50afae2c3ecdc"
9520 9518
     },
9521 9519
     "react-native-prompt": {
9522 9520
       "version": "1.0.0",

+ 1
- 1
package.json Datei anzeigen

@@ -59,7 +59,7 @@
59 59
     "react-native-img-cache": "1.5.2",
60 60
     "react-native-immersive": "1.1.0",
61 61
     "react-native-keep-awake": "2.0.6",
62
-    "react-native-locale-detector": "1.0.1",
62
+    "react-native-locale-detector": "github:jitsi/react-native-locale-detector#cc76092",
63 63
     "react-native-prompt": "1.0.0",
64 64
     "react-native-vector-icons": "4.4.2",
65 65
     "react-native-webrtc": "github:jitsi/react-native-webrtc#7c6b167120d2224f62222037ff71deb8ff93bd38",

Laden…
Abbrechen
Speichern