Skip to content

Commit f78bea0

Browse files
authored
Remove AndroidNativeExample (#1585)
1 parent a914edb commit f78bea0

File tree

115 files changed

+22
-674
lines changed

Some content is hidden

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

115 files changed

+22
-674
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"parser": "@typescript-eslint/parser",
1414
"parserOptions": {
15-
"project": ["./tsconfig.json", "./examples/Example/tsconfig.json"]
15+
"project": ["./tsconfig.json", "./example/tsconfig.json"]
1616
},
1717
"env": { "browser": true, "node": true, "jest/globals": true },
1818
"plugins": ["jest"],

.github/workflows/android-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
env:
13-
WORKING_DIRECTORY: examples/Example
13+
WORKING_DIRECTORY: example
1414
concurrency:
1515
group: android-${{ github.ref }}
1616
cancel-in-progress: true

.github/workflows/ios-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: macos-latest
1212
env:
13-
WORKING_DIRECTORY: examples/Example
13+
WORKING_DIRECTORY: example
1414
concurrency:
1515
group: ios-${{ github.ref }}
1616
cancel-in-progress: true

.github/workflows/static-example-app-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Test Example App TypeScript and Lint
22
on:
33
pull_request:
44
paths:
5-
- 'examples/Example/**'
5+
- 'example/**'
66
push:
77
branches:
88
- master
99
jobs:
1010
check:
1111
runs-on: ubuntu-latest
1212
env:
13-
WORKING_DIRECTORY: examples/Example
13+
WORKING_DIRECTORY: example
1414
concurrency:
1515
group: static-example-${{ github.ref }}
1616
cancel-in-progress: true
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/Example/android/app/build.gradle renamed to example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ dependencies {
204204
}
205205

206206
if (enableHermes) {
207-
def hermesPath = "../../node_modules/hermes-engine/android/";
207+
def hermesPath = "../node_modules/hermes-engine/android/";
208208
debugImplementation files(hermesPath + "hermes-debug.aar")
209209
releaseImplementation files(hermesPath + "hermes-release.aar")
210210
} else {
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/Example/android/settings.gradle renamed to example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ rootProject.name = 'Example'
22
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
33
include ':app'
44
include ':react-native-gesture-handler'
5-
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../../../android')
5+
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../../android')

examples/Example/babel.config.js renamed to example/babel.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ module.exports = {
88
extensions: ['.js', '.ts', '.tsx'],
99
alias: {
1010
'react-native-gesture-handler/DrawerLayout':
11-
'../../src/components/DrawerLayout',
11+
'../src/components/DrawerLayout',
1212
'react-native-gesture-handler/Swipeable':
13-
'../../src/components/Swipeable',
14-
'react-native-gesture-handler': '../../src/index',
13+
'../src/components/Swipeable',
14+
'react-native-gesture-handler': '../src/index',
1515
'react': './node_modules/react',
1616
'react-native': './node_modules/react-native',
1717
'@babel': './node_modules/@babel',

examples/Example/babel.config.web.js renamed to example/babel.config.web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
{
77
extensions: ['.js', '.ts', '.tsx'],
88
alias: {
9-
'react-native-gesture-handler': '../../src/index',
9+
'react-native-gesture-handler': '../src/index',
1010
'react': './node_modules/react',
1111
},
1212
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/Example/ios/Podfile renamed to example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ target 'Example' do
88

99
use_react_native!(:path => config["reactNativePath"])
1010

11-
pod 'RNGestureHandler', :path => '../../..'
11+
pod 'RNGestureHandler', :path => '../..'
1212

1313
target 'ExampleTests' do
1414
inherit! :complete

examples/Example/ios/Podfile.lock renamed to example/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ DEPENDENCIES:
385385
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
386386
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
387387
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
388-
- RNGestureHandler (from `../../..`)
388+
- RNGestureHandler (from `../..`)
389389
- RNScreens (from `../node_modules/react-native-screens`)
390390
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
391391

@@ -468,7 +468,7 @@ EXTERNAL SOURCES:
468468
RNCMaskedView:
469469
:path: "../node_modules/@react-native-community/masked-view"
470470
RNGestureHandler:
471-
:path: "../../.."
471+
:path: "../.."
472472
RNScreens:
473473
:path: "../node_modules/react-native-screens"
474474
Yoga:
@@ -479,7 +479,7 @@ SPEC CHECKSUMS:
479479
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
480480
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
481481
FBLazyVector: 7b423f9e248eae65987838148c36eec1dbfe0b53
482-
FBReactNativeSpec: a5ef33553bbb1e5eb71ee5a5456dffd2ac8a0324
482+
FBReactNativeSpec: 1bd717f1941d53703966699ed5e854e15fae4ec5
483483
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
484484
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
485485
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
@@ -522,6 +522,6 @@ SPEC CHECKSUMS:
522522
Yoga: a7de31c64fe738607e7a3803e3f591a4b1df7393
523523
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
524524

525-
PODFILE CHECKSUM: 445d514b4108c196c5095ef88ba37292b547818b
525+
PODFILE CHECKSUM: c5cad3f1900ecbc34bc9e43f27009643ff38f575
526526

527527
COCOAPODS: 1.10.2

examples/Example/metro.config.js renamed to example/metro.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const glob = require('glob-to-regexp');
55

66
function getBlacklist() {
7-
const rootDir = path.resolve(__dirname, '../..')
7+
const rootDir = path.resolve(__dirname, '..')
88
const currentDir = path.resolve(__dirname)
99
const nodeModuleDirs = [
1010
glob(`${rootDir}/node_modules/*`),
@@ -25,7 +25,7 @@ module.exports = {
2525
blocklist: getBlacklist(),
2626
resolverMainFields: ['browser', 'react-native', 'main'],
2727
},
28-
watchFolders: [path.resolve(__dirname, '../..')],
28+
watchFolders: [path.resolve(__dirname, '..')],
2929
transformer: {
3030
getTransformOptions: async () => ({
3131
transform: {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/Example/tsconfig.json renamed to example/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
55
"baseUrl": ".",
66
"paths": {
7-
"react-native-gesture-handler": ["../../src/index.ts"],
7+
"react-native-gesture-handler": ["../src/index.ts"],
88
"react-native-gesture-handler/Swipeable": [
9-
"../../src/components/Swipeable.tsx"
9+
"../src/components/Swipeable.tsx"
1010
],
1111
"react-native-gesture-handler/DrawerLayout": [
12-
"../../src/components/DrawerLayout.tsx"
12+
"../src/components/DrawerLayout.tsx"
1313
]
1414
}
1515
},
File renamed without changes.
File renamed without changes.

examples/AndroidNativeExample/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/AndroidNativeExample/app/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/AndroidNativeExample/app/build.gradle

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/AndroidNativeExample/app/proguard-rules.pro

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/AndroidNativeExample/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)