Skip to content
This repository was archived by the owner on May 7, 2022. It is now read-only.

Commit 917f7e7

Browse files
committed
Update to RN 0.65
1 parent 94ae4b6 commit 917f7e7

File tree

11 files changed

+2048
-2027
lines changed

11 files changed

+2048
-2027
lines changed

android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55

66
repositories {
77
google()
8-
jcenter()
8+
mavenCentral()
99
}
1010

1111
dependencies {
@@ -33,7 +33,6 @@ android {
3333

3434
repositories {
3535
google()
36-
jcenter()
3736
mavenCentral()
3837
}
3938

android/src/main/java/chat/flyer/rnandroiduripath/RNAndroidURIPathModule.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import android.provider.OpenableColumns
55
import com.facebook.react.bridge.ReactApplicationContext
66
import com.facebook.react.bridge.ReactContextBaseJavaModule
77
import com.facebook.react.bridge.ReactMethod
8-
import okio.Okio
8+
import okio.*
99
import java.io.File
1010
import java.io.FileNotFoundException
1111
import java.io.IOException
@@ -30,8 +30,8 @@ class RNAndroidURIPathModule(reactContext: ReactApplicationContext) : ReactConte
3030
file.deleteOnExit()
3131
val stream = reactApplicationContext.contentResolver.openInputStream(uri)
3232
return if (stream != null) {
33-
val source = Okio.buffer(Okio.source(stream))
34-
val sink = Okio.buffer(Okio.sink(file))
33+
val source = stream.source().buffer()
34+
val sink = file.sink().buffer()
3535
sink.writeAll(source)
3636
sink.close()
3737
file.absolutePath

example/android/app/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ android {
126126

127127
compileSdkVersion rootProject.ext.compileSdkVersion
128128

129-
compileOptions {
130-
sourceCompatibility JavaVersion.VERSION_1_8
131-
targetCompatibility JavaVersion.VERSION_1_8
132-
}
133-
134129
defaultConfig {
135130
applicationId 'com.example'
136131
minSdkVersion rootProject.ext.minSdkVersion

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212
repositories {
1313
google()
14-
jcenter()
14+
mavenCentral()
1515
}
1616
dependencies {
1717
classpath 'com.android.tools.build:gradle:4.2.2'
@@ -23,6 +23,7 @@ buildscript {
2323

2424
allprojects {
2525
repositories {
26+
mavenCentral()
2627
mavenLocal()
2728
maven {
2829
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
@@ -34,7 +35,6 @@ allprojects {
3435
}
3536

3637
google()
37-
jcenter()
3838
maven { url 'https://www.jitpack.io' }
3939
}
4040
}

example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ android.useAndroidX=true
2525
android.enableJetifier=true
2626

2727
# Version of flipper SDK to use with React Native
28-
FLIPPER_VERSION=0.87.0
28+
FLIPPER_VERSION=0.102.0

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ target 'example' do
1616
#
1717
# Note that if you have use_frameworks! enabled, Flipper will not work and
1818
# you should disable the next line.
19-
use_flipper!({ 'Flipper' => '0.87.0' })
19+
use_flipper!({ 'Flipper' => '0.102.0' })
2020

2121
post_install do |installer|
2222
react_native_post_install(installer)

0 commit comments

Comments
 (0)