Skip to content

Commit 3e21607

Browse files
authored
chore: remove lefthook (#31)
* chore: remove lefthook * fix podspec name * chore: fix the lib to build on ios and droid
1 parent 504a345 commit 3e21607

40 files changed

Lines changed: 212 additions & 234 deletions

android/src/main/java/com/margelo/nitro/rive/HybridRiveView.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ object DefaultConfiguration {
4646
@Keep
4747
@DoNotStrip
4848
class HybridRiveView(val context: ThemedReactContext) : HybridRiveViewSpec() {
49+
companion object {
50+
private const val TAG = "HybridRiveView"
51+
}
52+
4953
//region State
5054
override val view: RiveReactNativeView = RiveReactNativeView(context)
5155
private var needsReload = false

example/ios/Podfile.lock

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,32 +1357,6 @@ PODS:
13571357
- React-jsiexecutor
13581358
- React-RCTFBReactNativeSpec
13591359
- ReactCommon/turbomodule/core
1360-
- react-native-rive (0.1.0):
1361-
- DoubleConversion
1362-
- glog
1363-
- hermes-engine
1364-
- NitroModules
1365-
- RCT-Folly (= 2024.11.18.00)
1366-
- RCTRequired
1367-
- RCTTypeSafety
1368-
- React-Core
1369-
- React-debug
1370-
- React-Fabric
1371-
- React-featureflags
1372-
- React-graphics
1373-
- React-hermes
1374-
- React-ImageManager
1375-
- React-jsi
1376-
- React-NativeModulesApple
1377-
- React-RCTFabric
1378-
- React-renderercss
1379-
- React-rendererdebug
1380-
- React-utils
1381-
- ReactCodegen
1382-
- ReactCommon/turbomodule/bridging
1383-
- ReactCommon/turbomodule/core
1384-
- RiveRuntime (= 6.12.0)
1385-
- Yoga
13861360
- react-native-safe-area-context (5.6.2):
13871361
- DoubleConversion
13881362
- glog
@@ -1713,6 +1687,32 @@ PODS:
17131687
- React-debug
17141688
- React-hermes
17151689
- React-jsi (= 0.79.2)
1690+
- react_native_rive (0.1.0):
1691+
- DoubleConversion
1692+
- glog
1693+
- hermes-engine
1694+
- NitroModules
1695+
- RCT-Folly (= 2024.11.18.00)
1696+
- RCTRequired
1697+
- RCTTypeSafety
1698+
- React-Core
1699+
- React-debug
1700+
- React-Fabric
1701+
- React-featureflags
1702+
- React-graphics
1703+
- React-hermes
1704+
- React-ImageManager
1705+
- React-jsi
1706+
- React-NativeModulesApple
1707+
- React-RCTFabric
1708+
- React-renderercss
1709+
- React-rendererdebug
1710+
- React-utils
1711+
- ReactCodegen
1712+
- ReactCommon/turbomodule/bridging
1713+
- ReactCommon/turbomodule/core
1714+
- RiveRuntime (= 6.12.0)
1715+
- Yoga
17161716
- ReactAppDependencyProvider (0.79.2):
17171717
- ReactCodegen
17181718
- ReactCodegen (0.79.2):
@@ -1874,7 +1874,6 @@ DEPENDENCIES:
18741874
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
18751875
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
18761876
- React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
1877-
- react-native-rive (from `../..`)
18781877
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
18791878
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
18801879
- React-oscompat (from `../node_modules/react-native/ReactCommon/oscompat`)
@@ -1904,6 +1903,7 @@ DEPENDENCIES:
19041903
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
19051904
- React-timing (from `../node_modules/react-native/ReactCommon/react/timing`)
19061905
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
1906+
- react_native_rive (from `../..`)
19071907
- ReactAppDependencyProvider (from `build/generated/ios`)
19081908
- ReactCodegen (from `build/generated/ios`)
19091909
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
@@ -1996,8 +1996,6 @@ EXTERNAL SOURCES:
19961996
:path: "../node_modules/react-native/ReactCommon"
19971997
React-microtasksnativemodule:
19981998
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
1999-
react-native-rive:
2000-
:path: "../.."
20011999
react-native-safe-area-context:
20022000
:path: "../node_modules/react-native-safe-area-context"
20032001
React-NativeModulesApple:
@@ -2056,6 +2054,8 @@ EXTERNAL SOURCES:
20562054
:path: "../node_modules/react-native/ReactCommon/react/timing"
20572055
React-utils:
20582056
:path: "../node_modules/react-native/ReactCommon/react/utils"
2057+
react_native_rive:
2058+
:path: "../.."
20592059
ReactAppDependencyProvider:
20602060
:path: build/generated/ios
20612061
ReactCodegen:
@@ -2109,7 +2109,6 @@ SPEC CHECKSUMS:
21092109
React-logger: 368570a253f00879a1e4fea24ed4047e72e7bbf3
21102110
React-Mapbuffer: c04fcda1c6281fc0a6824c7dcc1633dd217ac1ec
21112111
React-microtasksnativemodule: ca2804a25fdcefffa0aa942aa23ab53b99614a34
2112-
react-native-rive: 7e008c7a01eba3d71d98813f77b4221699290990
21132112
react-native-safe-area-context: bc59472155ffb889a1ffe16c19a04c0cd451562b
21142113
React-NativeModulesApple: 452b86b29fae99ed0a4015dca3ad9cd222f88abf
21152114
React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c
@@ -2139,6 +2138,7 @@ SPEC CHECKSUMS:
21392138
React-runtimescheduler: e917ab17ae08c204af1ebf8f669b7e411b0220c8
21402139
React-timing: a90f4654cbda9c628614f9bee68967f1768bd6a5
21412140
React-utils: 51c4e71608b8133fecc9a15801d244ae7bdf3758
2141+
react_native_rive: a6e6aa9ef2826c95aeaa7e40619a04f3887c8ac7
21422142
ReactAppDependencyProvider: d5dcc564f129632276bd3184e60f053fcd574d6b
21432143
ReactCodegen: fda99a79c866370190e162083a35602fdc314e5d
21442144
ReactCommon: 4d0da92a5eb8da86c08e3ec34bd23ab439fb2461

lefthook.yml

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

nitro.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://nitro.margelo.com/nitro.schema.json",
33
"cxxNamespace": ["rive"],
44
"ios": {
5-
"iosModuleName": "Rive"
5+
"iosModuleName": "react_native_rive"
66
},
77
"android": {
88
"androidNamespace": ["rive"],

nitrogen/generated/ios/c++/HybridRiveFileFactorySpecSwift.hpp

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/c++/HybridRiveFileSpecSwift.hpp

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/c++/HybridRiveSpecSwift.hpp

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/c++/HybridRiveViewSpecSwift.hpp

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/c++/HybridViewModelBooleanPropertySpecSwift.hpp

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)