Skip to content

Commit a3a6e86

Browse files
ian-wdiBotPeaches
authored andcommitted
feat: autolink example modules
1 parent f0cb1eb commit a3a6e86

File tree

7 files changed

+70
-24
lines changed

7 files changed

+70
-24
lines changed

example/android/app/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ dependencies {
279279
} else {
280280
implementation jscFlavor
281281
}
282-
283-
implementation project(':@react-native-sketch-canvas')
284-
implementation project(':react-native-camera')
285282
}
286283

287284
if (isNewArchitectureEnabled()) {

example/android/app/src/main/java/com/example/MainApplication.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import com.example.newarchitecture.MainApplicationReactNativeHost;
1313
import java.lang.reflect.InvocationTargetException;
1414
import java.util.List;
15-
import com.terrylinla.rnsketchcanvas.SketchCanvasPackage;
16-
import org.reactnative.camera.RNCameraPackage;
1715

1816
public class MainApplication extends Application implements ReactApplication {
1917

@@ -30,8 +28,6 @@ protected List<ReactPackage> getPackages() {
3028
List<ReactPackage> packages = new PackageList(this).getPackages();
3129
// Packages that cannot be autolinked yet can be added manually here, for example:
3230
// packages.add(new MyReactNativePackage());
33-
packages.add(new SketchCanvasPackage());
34-
packages.add(new RNCameraPackage());
3531
return packages;
3632
}
3733

example/android/settings.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,3 @@ if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true")
99
include(":ReactAndroid:hermes-engine")
1010
project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine')
1111
}
12-
13-
include ':@react-native-sketch-canvas'
14-
project(':@react-native-sketch-canvas').projectDir = new File(rootProject.projectDir, '../../android')
15-
16-
include ':react-native-camera'
17-
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../../node_modules/react-native-camera/android')

example/ios/Podfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ target 'example' do
2626
:app_path => "#{Pod::Config.instance.installation_root}/.."
2727
)
2828

29-
pod 'react-native-camera', :path => '../../node_modules/react-native-camera'
30-
pod 'RNSketchCanvas', :path => '../..'
31-
3229
target 'exampleTests' do
3330
inherit! :complete
3431
# Pods for testing

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ DEPENDENCIES:
430430
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
431431
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
432432
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
433-
- react-native-camera (from `../../node_modules/react-native-camera`)
433+
- react-native-camera (from `../node_modules/react-native-camera`)
434434
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
435435
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
436436
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
@@ -443,7 +443,7 @@ DEPENDENCIES:
443443
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
444444
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
445445
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
446-
- RNSketchCanvas (from `../..`)
446+
- "RNSketchCanvas (from `../node_modules/@sourcetoad/react-native-sketch-canvas`)"
447447
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
448448

449449
SPEC REPOS:
@@ -508,7 +508,7 @@ EXTERNAL SOURCES:
508508
React-logger:
509509
:path: "../node_modules/react-native/ReactCommon/logger"
510510
react-native-camera:
511-
:path: "../../node_modules/react-native-camera"
511+
:path: "../node_modules/react-native-camera"
512512
React-perflogger:
513513
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
514514
React-RCTActionSheet:
@@ -534,7 +534,7 @@ EXTERNAL SOURCES:
534534
ReactCommon:
535535
:path: "../node_modules/react-native/ReactCommon"
536536
RNSketchCanvas:
537-
:path: "../.."
537+
:path: "../node_modules/@sourcetoad/react-native-sketch-canvas"
538538
Yoga:
539539
:path: "../node_modules/react-native/ReactCommon/yoga"
540540

@@ -591,6 +591,6 @@ SPEC CHECKSUMS:
591591
Yoga: 1f02ef4ce4469aefc36167138441b27d988282b1
592592
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
593593

594-
PODFILE CHECKSUM: 8586834ad461ad53144d789d760fd51d75fc4a5e
594+
PODFILE CHECKSUM: e9774a3132cc2072013fd07ec1ade8155544b823
595595

596596
COCOAPODS: 1.11.3

example/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
},
1212
"dependencies": {
1313
"react": "18.1.0",
14-
"react-native": "0.70.4"
14+
"react-native": "0.70.4",
15+
"@sourcetoad/react-native-sketch-canvas": "../",
16+
"react-native-camera": "https://github.com/sourcetoad/react-native-camera#ee265b22c7a3544a720478a6397d0e547430ff93"
1517
},
1618
"devDependencies": {
1719
"@babel/core": "^7.12.9",

example/yarn.lock

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,11 @@
12671267
resolved "https://registry.yarnpkg.com/@react-native/assets/-/assets-1.0.0.tgz#c6f9bf63d274bafc8e970628de24986b30a55c8e"
12681268
integrity sha512-KrwSpS1tKI70wuKl68DwJZYEvXktDHdZMG0k2AXD/rJVSlB23/X2CB2cutVR0HwNMJIal9HOUOBB2rVfa6UGtQ==
12691269

1270+
"@react-native/normalize-color@*":
1271+
version "2.1.0"
1272+
resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.1.0.tgz#939b87a9849e81687d3640c5efa2a486ac266f91"
1273+
integrity sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==
1274+
12701275
"@react-native/normalize-color@2.0.0":
12711276
version "2.0.0"
12721277
resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567"
@@ -1313,6 +1318,14 @@
13131318
dependencies:
13141319
"@sinonjs/commons" "^1.7.0"
13151320

1321+
"@sourcetoad/react-native-sketch-canvas@../":
1322+
version "1.0.0"
1323+
dependencies:
1324+
"@types/react" "^18.0.24"
1325+
"@types/react-native" "^0.70.6"
1326+
deprecated-react-native-prop-types "^2.3.0"
1327+
prop-types "^15.8.1"
1328+
13161329
"@tootallnate/once@1":
13171330
version "1.1.2"
13181331
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
@@ -1402,6 +1415,32 @@
14021415
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e"
14031416
integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow==
14041417

1418+
"@types/prop-types@*":
1419+
version "15.7.5"
1420+
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
1421+
integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
1422+
1423+
"@types/react-native@^0.70.6":
1424+
version "0.70.6"
1425+
resolved "https://registry.yarnpkg.com/@types/react-native/-/react-native-0.70.6.tgz#0d1bc3014111f64f13e0df643aec2ab03f021fdb"
1426+
integrity sha512-ynQ2jj0km9d7dbnyKqVdQ6Nti7VQ8SLTA/KKkkS5+FnvGyvij2AOo1/xnkBR/jnSNXuzrvGVzw2n0VWfppmfKw==
1427+
dependencies:
1428+
"@types/react" "*"
1429+
1430+
"@types/react@*", "@types/react@^18.0.24":
1431+
version "18.0.24"
1432+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.24.tgz#2f79ed5b27f08d05107aab45c17919754cc44c20"
1433+
integrity sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q==
1434+
dependencies:
1435+
"@types/prop-types" "*"
1436+
"@types/scheduler" "*"
1437+
csstype "^3.0.2"
1438+
1439+
"@types/scheduler@*":
1440+
version "0.16.2"
1441+
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
1442+
integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==
1443+
14051444
"@types/stack-utils@^2.0.0":
14061445
version "2.0.1"
14071446
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
@@ -2327,6 +2366,11 @@ cssstyle@^2.3.0:
23272366
dependencies:
23282367
cssom "~0.3.6"
23292368

2369+
csstype@^3.0.2:
2370+
version "3.1.1"
2371+
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
2372+
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
2373+
23302374
data-urls@^2.0.0:
23312375
version "2.0.0"
23322376
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b"
@@ -2437,6 +2481,15 @@ depd@2.0.0:
24372481
resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
24382482
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
24392483

2484+
deprecated-react-native-prop-types@^2.3.0:
2485+
version "2.3.0"
2486+
resolved "https://registry.yarnpkg.com/deprecated-react-native-prop-types/-/deprecated-react-native-prop-types-2.3.0.tgz#c10c6ee75ff2b6de94bb127f142b814e6e08d9ab"
2487+
integrity sha512-pWD0voFtNYxrVqvBMYf5gq3NA2GCpfodS1yNynTPc93AYA/KEMGeWDqqeUB6R2Z9ZofVhks2aeJXiuQqKNpesA==
2488+
dependencies:
2489+
"@react-native/normalize-color" "*"
2490+
invariant "*"
2491+
prop-types "*"
2492+
24402493
destroy@1.2.0:
24412494
version "1.2.0"
24422495
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
@@ -3432,7 +3485,7 @@ internal-slot@^1.0.3:
34323485
has "^1.0.3"
34333486
side-channel "^1.0.4"
34343487

3435-
invariant@^2.2.4:
3488+
invariant@*, invariant@^2.2.4:
34363489
version "2.2.4"
34373490
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
34383491
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
@@ -5413,7 +5466,7 @@ prompts@^2.0.1, prompts@^2.4.0:
54135466
kleur "^3.0.3"
54145467
sisteransi "^1.0.5"
54155468

5416-
prop-types@^15.8.1:
5469+
prop-types@*, prop-types@^15.6.2, prop-types@^15.8.1:
54175470
version "15.8.1"
54185471
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
54195472
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@@ -5473,6 +5526,13 @@ react-is@^17.0.1:
54735526
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
54745527
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
54755528

5529+
"react-native-camera@https://github.com/sourcetoad/react-native-camera#ee265b22c7a3544a720478a6397d0e547430ff93":
5530+
version "4.2.1"
5531+
resolved "https://github.com/sourcetoad/react-native-camera#ee265b22c7a3544a720478a6397d0e547430ff93"
5532+
dependencies:
5533+
deprecated-react-native-prop-types "^2.3.0"
5534+
prop-types "^15.6.2"
5535+
54765536
react-native-codegen@^0.70.6:
54775537
version "0.70.6"
54785538
resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb"

0 commit comments

Comments
 (0)