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

Commit

Permalink
Update to RN 0.65
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Aug 18, 2021
1 parent 94ae4b6 commit 917f7e7
Show file tree
Hide file tree
Showing 11 changed files with 2,048 additions and 2,027 deletions.
3 changes: 1 addition & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
Expand Down Expand Up @@ -33,7 +33,6 @@ android {

repositories {
google()
jcenter()
mavenCentral()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import android.provider.OpenableColumns
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import okio.Okio
import okio.*
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException
Expand All @@ -30,8 +30,8 @@ class RNAndroidURIPathModule(reactContext: ReactApplicationContext) : ReactConte
file.deleteOnExit()
val stream = reactApplicationContext.contentResolver.openInputStream(uri)
return if (stream != null) {
val source = Okio.buffer(Okio.source(stream))
val sink = Okio.buffer(Okio.sink(file))
val source = stream.source().buffer()
val sink = file.sink().buffer()
sink.writeAll(source)
sink.close()
file.absolutePath
Expand Down
5 changes: 0 additions & 5 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ android {

compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
applicationId 'com.example'
minSdkVersion rootProject.ext.minSdkVersion
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
Expand All @@ -23,6 +23,7 @@ buildscript {

allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand All @@ -34,7 +35,6 @@ allprojects {
}

google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
2 changes: 1 addition & 1 deletion example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ android.useAndroidX=true
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.87.0
FLIPPER_VERSION=0.102.0
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target 'example' do
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!({ 'Flipper' => '0.87.0' })
use_flipper!({ 'Flipper' => '0.102.0' })

post_install do |installer|
react_native_post_install(installer)
Expand Down
Loading

0 comments on commit 917f7e7

Please sign in to comment.