mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
Upgrade React Native and deps (#68)
* upgrade RN to 0.67-rc.6 upgrade react-native-reanimated to 2.3.1 debug and release building/working * update to RN stable 0.67 * yarn upgrade also use xmldom builtin types * ignore ndk dir for linting * upgrade types (RN 0.67 not out yet) * remove deprecated rule * actually i like that one, keep for now * update licenses * upgrade RN types and use builtin dep * upgrade RN 0.67.1
This commit is contained in:
4
android/app/proguard-rules.pro
vendored
4
android/app/proguard-rules.pro
vendored
@@ -10,3 +10,7 @@
|
||||
# Add any project specific keep options here:
|
||||
|
||||
-keep class com.facebook.react.turbomodule.** { *; }
|
||||
|
||||
# react-native-reanimated
|
||||
# https://github.com/software-mansion/react-native-reanimated/pull/2725
|
||||
-keep class com.swmansion.** {*;}
|
||||
|
||||
2482
android/app/src/main/assets/licenses.html
vendored
2482
android/app/src/main/assets/licenses.html
vendored
File diff suppressed because one or more lines are too long
985
android/app/src/main/assets/licenses/npm.txt
vendored
985
android/app/src/main/assets/licenses/npm.txt
vendored
File diff suppressed because one or more lines are too long
36
android/app/src/main/res/drawable/rn_edit_text_material.xml
Normal file
36
android/app/src/main/res/drawable/rn_edit_text_material.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
|
||||
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
||||
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
||||
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
|
||||
|
||||
<selector>
|
||||
<!--
|
||||
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
||||
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
||||
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
||||
|
||||
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
||||
|
||||
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
||||
-->
|
||||
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
||||
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
||||
</selector>
|
||||
|
||||
</inset>
|
||||
@@ -3,7 +3,7 @@
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="android:textColor">#000000</item>
|
||||
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -2,24 +2,25 @@
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
buildToolsVersion = "30.0.3"
|
||||
buildToolsVersion = "30.0.2"
|
||||
minSdkVersion = 21
|
||||
compileSdkVersion = 30
|
||||
targetSdkVersion = 30
|
||||
ndkVersion = "20.1.5948944"
|
||||
ndkVersion = "21.4.7075529"
|
||||
|
||||
// react-native-async-storage next
|
||||
kotlinVersion = '1.4.21'
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
// jcenter()
|
||||
maven {
|
||||
url 'https://plugins.gradle.org/m2/'
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:4.1.0")
|
||||
classpath("com.android.tools.build:gradle:4.2.2")
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
||||
@@ -45,9 +46,24 @@ allprojects {
|
||||
// Android JSC is installed from npm
|
||||
url("$rootDir/../node_modules/jsc-android/dist")
|
||||
}
|
||||
|
||||
mavenCentral {
|
||||
// We don't want to fetch react-native from Maven Central as there are
|
||||
// older versions over there.
|
||||
content {
|
||||
excludeGroup "com.facebook.react"
|
||||
}
|
||||
}
|
||||
google()
|
||||
jcenter()
|
||||
maven { url 'https://www.jitpack.io' }
|
||||
// remove jcenter once the following workarounds are no longer needed
|
||||
jcenter() {
|
||||
content {
|
||||
// used by react-native-track-player, can remove once they use a newer exoplayer
|
||||
includeGroup("com.linkedin.dexmaker")
|
||||
// used by exoplayer
|
||||
includeGroup("com.linkedin.dexmaker-mockito")
|
||||
includeGroup("com.google.android.exoplayer")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||
# Default value: -Xmx1024m -XX:MaxPermSize=256m
|
||||
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
@@ -25,7 +25,7 @@ android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
|
||||
# Version of flipper SDK to use with React Native
|
||||
FLIPPER_VERSION=0.75.1
|
||||
FLIPPER_VERSION=0.99.0
|
||||
|
||||
# react-native-async-storage next
|
||||
AsyncStorage_useNextStorage=true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/jetpack/androidx
|
||||
- artifact: androidx.annotation:annotation-experimental:+
|
||||
name: annotation-experimental
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0
|
||||
- artifact: androidx.annotation:annotation:+
|
||||
name: annotation
|
||||
copyrightHolder: Original Author
|
||||
@@ -40,6 +46,12 @@
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: http://developer.android.com/tools/extras/support-library.html
|
||||
- artifact: androidx.autofill:autofill:+
|
||||
name: autofill
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/jetpack/androidx/releases/autofill#1.1.0
|
||||
- artifact: androidx.cardview:cardview:+
|
||||
name: cardview
|
||||
copyrightHolder: Original Author
|
||||
@@ -189,19 +201,19 @@
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||
url: https://developer.android.com/jetpack/androidx/releases/room#2.3.0
|
||||
- artifact: androidx.room:room-ktx:+
|
||||
name: room-ktx
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||
url: https://developer.android.com/jetpack/androidx/releases/room#2.3.0
|
||||
- artifact: androidx.room:room-runtime:+
|
||||
name: room-runtime
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://developer.android.com/topic/libraries/architecture/index.html
|
||||
url: https://developer.android.com/jetpack/androidx/releases/room#2.3.0
|
||||
- artifact: androidx.savedstate:savedstate:+
|
||||
name: savedstate
|
||||
copyrightHolder: Original Author
|
||||
@@ -301,62 +313,104 @@
|
||||
- artifact: com.facebook.fresco:drawee:+
|
||||
name: drawee
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:fbcore:+
|
||||
name: fbcore
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:fresco:+
|
||||
name: fresco
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:imagepipeline-base:+
|
||||
name: imagepipeline-base
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:imagepipeline-native:+
|
||||
name: imagepipeline-native
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:imagepipeline-okhttp3:+
|
||||
name: imagepipeline-okhttp3
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:imagepipeline:+
|
||||
name: imagepipeline
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:memory-type-ashmem:+
|
||||
name: memory-type-ashmem
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:memory-type-java:+
|
||||
name: memory-type-java
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:memory-type-native:+
|
||||
name: memory-type-native
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:middleware:+
|
||||
name: middleware
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:nativeimagefilters:+
|
||||
name: nativeimagefilters
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:nativeimagetranscoder:+
|
||||
name: nativeimagetranscoder
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:soloader:+
|
||||
name: soloader
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.fresco:ui-common:+
|
||||
name: ui-common
|
||||
copyrightHolder: Original Author
|
||||
license: MIT
|
||||
licenseUrl: https://github.com/facebook/fresco/blob/master/LICENSE
|
||||
url: https://github.com/facebook/fresco
|
||||
- artifact: com.facebook.infer.annotation:infer-annotation:+
|
||||
name: infer-annotation
|
||||
copyrightHolder: Original Author
|
||||
license: BSD license
|
||||
license: MIT license
|
||||
licenseUrl: https://github.com/facebook/infer/blob/master/LICENSE
|
||||
url: http://fbinfer.com/
|
||||
- artifact: com.facebook.react:react-native:+
|
||||
name: react-native
|
||||
copyrightHolder: Original Author
|
||||
license: MIT License
|
||||
licenseUrl: https://github.com/facebook/react-native/blob/master/LICENSE
|
||||
licenseUrl: https://github.com/facebook/react-native/blob/HEAD/LICENSE
|
||||
url: https://github.com/facebook/react-native
|
||||
- artifact: com.facebook.soloader:annotation:+
|
||||
name: annotation
|
||||
@@ -494,21 +548,21 @@
|
||||
- artifact: com.squareup.okhttp3:okhttp-urlconnection:+
|
||||
name: okhttp-urlconnection
|
||||
copyrightHolder: Original Author
|
||||
license: Apache-2.0 License
|
||||
licenseUrl: https://github.com/square/okhttp/blob/master/LICENSE.txt
|
||||
url: https://github.com/square/okhttp
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://square.github.io/okhttp/
|
||||
- artifact: com.squareup.okhttp3:okhttp:+
|
||||
name: okhttp
|
||||
copyrightHolder: Original Author
|
||||
license: Apache-2.0 License
|
||||
licenseUrl: https://github.com/square/okhttp/blob/master/LICENSE.txt
|
||||
url: https://github.com/square/okhttp
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://square.github.io/okhttp/
|
||||
- artifact: com.squareup.okio:okio:+
|
||||
name: okio
|
||||
copyrightHolder: Original Author
|
||||
license: Apache-2.0 License
|
||||
licenseUrl: https://github.com/square/okio/blob/master/LICENSE.txt
|
||||
url: https://github.com/square/okio
|
||||
license: The Apache Software License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://github.com/square/okio/
|
||||
- artifact: javax.inject:javax.inject:+
|
||||
name: javax.inject
|
||||
copyrightHolder: Original Author
|
||||
@@ -563,12 +617,30 @@
|
||||
license: The Apache License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://kotlinlang.org/
|
||||
- artifact: org.jetbrains.kotlin:kotlin-reflect:+
|
||||
name: kotlin-reflect
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://kotlinlang.org/
|
||||
- artifact: org.jetbrains.kotlin:kotlin-stdlib-common:+
|
||||
name: kotlin-stdlib-common
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://kotlinlang.org/
|
||||
- artifact: org.jetbrains.kotlin:kotlin-stdlib-jdk7:+
|
||||
name: kotlin-stdlib-jdk7
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://kotlinlang.org/
|
||||
- artifact: org.jetbrains.kotlin:kotlin-stdlib-jdk8:+
|
||||
name: kotlin-stdlib-jdk8
|
||||
copyrightHolder: Original Author
|
||||
license: The Apache License, Version 2.0
|
||||
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
url: https://kotlinlang.org/
|
||||
- artifact: org.jetbrains.kotlin:kotlin-stdlib:+
|
||||
name: kotlin-stdlib
|
||||
copyrightHolder: Original Author
|
||||
|
||||
Reference in New Issue
Block a user