Skip to content

Commit c66dd04

Browse files
committed
Add BasicExample app
1 parent 4ec5f5f commit c66dd04

303 files changed

Lines changed: 5120 additions & 55577 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/BasicExample/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: '../../.eslintrc.json',
3+
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ yarn-error.log
6868

6969
# Yarn
7070
.yarn/*
71-
!.yarn/cache
7271
!.yarn/patches
7372
!.yarn/plugins
7473
!.yarn/releases
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ ruby ">= 2.6.10"
55

66
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8-
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
1010
gem 'concurrent-ruby', '< 1.3.4'
1111

1212
# Ruby 3.4.0 has removed some libraries from the standard library.
1313
gem 'bigdecimal'
1414
gem 'logger'
1515
gem 'benchmark'
16-
gem 'mutex_m'
16+
gem 'mutex_m'
Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.0.8.6)
9-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
activesupport (7.2.2.1)
9+
base64
10+
benchmark (>= 0.3)
11+
bigdecimal
12+
concurrent-ruby (~> 1.0, >= 1.3.1)
13+
connection_pool (>= 2.2.5)
14+
drb
1015
i18n (>= 1.6, < 2)
16+
logger (>= 1.4.2)
1117
minitest (>= 5.1)
12-
tzinfo (~> 2.0)
18+
securerandom (>= 0.3)
19+
tzinfo (~> 2.0, >= 2.0.5)
1320
addressable (2.8.7)
1421
public_suffix (>= 2.0.2, < 7.0)
1522
algoliasearch (1.27.5)
@@ -59,28 +66,32 @@ GEM
5966
cocoapods-try (1.2.0)
6067
colored2 (3.1.2)
6168
concurrent-ruby (1.3.3)
69+
connection_pool (2.5.1)
70+
drb (2.2.1)
6271
escape (0.0.4)
6372
ethon (0.16.0)
6473
ffi (>= 1.15.0)
65-
ffi (1.17.0-arm64-darwin)
74+
ffi (1.17.2)
6675
fourflusher (2.3.1)
6776
fuzzy_match (2.0.4)
6877
gh_inspector (1.1.3)
69-
httpclient (2.8.3)
70-
i18n (1.14.6)
78+
httpclient (2.9.0)
79+
mutex_m
80+
i18n (1.14.7)
7181
concurrent-ruby (~> 1.0)
72-
json (2.8.1)
73-
logger (1.6.6)
74-
minitest (5.25.1)
82+
json (2.10.2)
83+
logger (1.7.0)
84+
minitest (5.25.5)
7585
molinillo (0.8.0)
7686
mutex_m (0.3.0)
7787
nanaimo (0.3.0)
7888
nap (1.1.0)
7989
netrc (0.11.0)
8090
nkf (0.2.0)
8191
public_suffix (4.0.7)
82-
rexml (3.3.9)
92+
rexml (3.4.1)
8393
ruby-macho (2.5.1)
94+
securerandom (0.4.1)
8495
typhoeus (1.4.1)
8596
ethon (>= 0.9.0)
8697
tzinfo (2.0.6)
@@ -94,11 +105,10 @@ GEM
94105
rexml (>= 3.3.6, < 4.0)
95106

96107
PLATFORMS
97-
arm64-darwin-21
98-
arm64-darwin-23
108+
ruby
99109

100110
DEPENDENCIES
101-
activesupport (>= 6.1.7.5, < 7.1.0)
111+
activesupport (>= 6.1.7.5, != 7.1.0)
102112
benchmark
103113
bigdecimal
104114
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
@@ -108,7 +118,7 @@ DEPENDENCIES
108118
xcodeproj (< 1.26.0)
109119

110120
RUBY VERSION
111-
ruby 2.7.5p203
121+
ruby 3.3.5p100
112122

113123
BUNDLED WITH
114-
2.4.7
124+
2.5.23

apps/BasicExample/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Basic Gesture Handler example app
2+
3+
This app shows basic capabilities of Gesture Handler. It doesn't depend on any other package - this makes it easier to confirm that Gesture Handler works correctly.
4+
5+
## Installing & running application
6+
7+
Before running application you need to install all dependencies. To do that:
8+
9+
- In project's root directory run `yarn`
10+
11+
### Android
12+
13+
You can run this application by `yarn run android` or from Android Studio.
14+
15+
### iOS
16+
17+
To run on iOS first go to `BasicExample/ios` and run `pod install`.
18+
19+
Then in `BasicExample` run `yarn run ios` or run application from Xcode.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
/**
2+
* @format
3+
*/
4+
15
import React from 'react';
26
import ReactTestRenderer from 'react-test-renderer';
3-
import App from '../src/App';
7+
import App from '../App';
48

59
test('renders correctly', async () => {
610
await ReactTestRenderer.act(() => {

apps/FabricExample/android/app/build.gradle renamed to apps/BasicExample/android/app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ react {
1111
// The root of your project, i.e. where "package.json" lives. Default is '../..'
1212
// root = file("../../")
1313
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14-
// reactNativeDir = file("../../node_modules/react-native")
14+
reactNativeDir = file("../../../../node_modules/react-native")
1515
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16-
// codegenDir = file("../../node_modules/@react-native/codegen")
16+
codegenDir = file("../../../../node_modules/@react-native/codegen")
1717
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18-
// cliFile = file("../../node_modules/react-native/cli.js")
18+
cliFile = file("../../../../node_modules/react-native/cli.js")
1919

2020
/* Variants */
2121
// The list of variants to that are debuggable. For those we're going to
@@ -45,7 +45,7 @@ react {
4545

4646
/* Hermes Commands */
4747
// The hermes compiler command to run. By default it is 'hermesc'
48-
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
48+
hermesCommand = "../../node_modules/react-native/sdks/hermesc/osx-bin/hermesc"
4949
//
5050
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5151
// hermesFlags = ["-O", "-output-source-map"]
@@ -63,7 +63,7 @@ def enableProguardInReleaseBuilds = false
6363
* The preferred build flavor of JavaScriptCore (JSC)
6464
*
6565
* For example, to use the international variant, you can use:
66-
* `def jscFlavor = 'io.github.react-native-community:jsc-android-intl:2026004.+'`
66+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
6767
*
6868
* The international variant includes ICU i18n library and necessary data
6969
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
@@ -77,9 +77,9 @@ android {
7777
buildToolsVersion rootProject.ext.buildToolsVersion
7878
compileSdk rootProject.ext.compileSdkVersion
7979

80-
namespace "com.fabricexample"
80+
namespace "com.basicexample"
8181
defaultConfig {
82-
applicationId "com.fabricexample"
82+
applicationId "com.basicexample"
8383
minSdkVersion rootProject.ext.minSdkVersion
8484
targetSdkVersion rootProject.ext.targetSdkVersion
8585
versionCode 1
File renamed without changes.

0 commit comments

Comments
 (0)