Skip to content

Commit 6132591

Browse files
Update demo application
1 parent 92debc9 commit 6132591

File tree

8 files changed

+94
-101
lines changed

8 files changed

+94
-101
lines changed

demo/.flowconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ node_modules/react-native/flow/
2323
[options]
2424
emoji=true
2525

26-
esproposal.optional_chaining=enable
27-
esproposal.nullish_coalescing=enable
28-
2926
exact_by_default=true
3027

3128
module.file_ext=.js
@@ -63,4 +60,4 @@ untyped-import
6360
untyped-type-import
6461

6562
[version]
66-
^0.137.0
63+
^0.149.0

demo/android/app/build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ android {
125125

126126
compileSdkVersion rootProject.ext.compileSdkVersion
127127

128-
compileOptions {
129-
sourceCompatibility JavaVersion.VERSION_1_8
130-
targetCompatibility JavaVersion.VERSION_1_8
131-
}
132-
133128
defaultConfig {
134129
applicationId "com.userreportreactnativesdk"
135130
minSdkVersion rootProject.ext.minSdkVersion
@@ -215,7 +210,7 @@ dependencies {
215210
// Run this once to be able to run the application with BUCK
216211
// puts all compile dependencies into folder libs for BUCK to use
217212
task copyDownloadableDepsToLibs(type: Copy) {
218-
from configurations.compile
213+
from configurations.implementation
219214
into 'libs'
220215
}
221216

demo/android/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "29.0.3"
5+
buildToolsVersion = "30.0.2"
66
minSdkVersion = 21
7-
compileSdkVersion = 29
8-
targetSdkVersion = 29
7+
compileSdkVersion = 30
8+
targetSdkVersion = 30
99
ndkVersion = "20.1.5948944"
1010
}
1111
repositories {
1212
google()
13-
jcenter()
13+
mavenCentral()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:4.1.0")
16+
classpath("com.android.tools.build:gradle:4.2.1")
1717
// NOTE: Do not place your application dependencies here; they belong
1818
// in the individual module build.gradle files
1919
}
2020
}
2121

2222
allprojects {
2323
repositories {
24+
mavenCentral()
2425
mavenLocal()
2526
maven {
2627
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
@@ -32,7 +33,6 @@ allprojects {
3233
}
3334

3435
google()
35-
jcenter()
3636
maven { url 'https://www.jitpack.io' }
3737
}
3838
}

demo/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.75.1
28+
FLIPPER_VERSION=0.93.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

demo/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative '../node_modules/react-native/scripts/react_native_pods'
22
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33

4-
platform :ios, '10.0'
4+
platform :ios, '11.0'
55

66
target 'UserReportReactNativeSDK' do
77
config = use_native_modules!
@@ -26,4 +26,4 @@ target 'UserReportReactNativeSDK' do
2626
post_install do |installer|
2727
react_native_post_install(installer)
2828
end
29-
end
29+
end

demo/ios/UserReportReactNativeSDK.xcodeproj/project.pbxproj

Lines changed: 75 additions & 75 deletions
Large diffs are not rendered by default.

demo/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "UserReportReactNativeSDK",
2+
"name": "userreportreactnativesdk",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
@@ -11,9 +11,9 @@
1111
},
1212
"dependencies": {
1313
"@audienceproject/react-native-userreport-sdk": "file:..",
14-
"react": "17.0.1",
15-
"react-native": "0.64.0",
16-
"react-native-device-info": "^8.0.6"
14+
"react": "17.0.2",
15+
"react-native": "0.65.1",
16+
"react-native-device-info": "8.3.1"
1717
},
1818
"devDependencies": {
1919
"@babel/core": "^7.12.9",
@@ -22,8 +22,9 @@
2222
"babel-jest": "^26.6.3",
2323
"eslint": "7.14.0",
2424
"jest": "^26.6.3",
25-
"metro-react-native-babel-preset": "^0.64.0",
26-
"react-test-renderer": "17.0.1"
25+
"metro-react-native-babel-preset": "^0.66.0",
26+
"react-native-codegen": "^0.0.7",
27+
"react-test-renderer": "17.0.2"
2728
},
2829
"jest": {
2930
"preset": "react-native"

0 commit comments

Comments
 (0)