Skip to content

Commit f7d05d1

Browse files
committed
fixes
1 parent 9eb6777 commit f7d05d1

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

example/ios/Box2dExample.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
};
143143
};
144144
};
145-
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Box2DExample" */;
145+
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Box2dExample" */;
146146
compatibilityVersion = "Xcode 3.2";
147147
developmentRegion = en;
148148
hasScannedForEncodings = 0;
@@ -434,7 +434,7 @@
434434
defaultConfigurationIsVisible = 0;
435435
defaultConfigurationName = Release;
436436
};
437-
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Box2DExample" */ = {
437+
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Box2dExample" */ = {
438438
isa = XCConfigurationList;
439439
buildConfigurations = (
440440
83CBBA201A601CBA00E9B192 /* Debug */,

example/ios/FastCryptoExample/LaunchScreen.storyboard

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
33
<device id="retina4_7" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
77
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
88
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
99
</dependencies>
@@ -22,7 +22,7 @@
2222
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2323
<nil key="highlightedColor"/>
2424
</label>
25-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="react-native-fast-crypto-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
25+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="react-native-box2d-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
2626
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
2727
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2828
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -31,10 +31,11 @@
3131
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
3232
<rect key="frame" x="0.0" y="626" width="375" height="21"/>
3333
<fontDescription key="fontDescription" type="system" pointSize="17"/>
34-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
34+
<color key="textColor" systemColor="darkTextColor"/>
3535
<nil key="highlightedColor"/>
3636
</label>
3737
</subviews>
38+
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
3839
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3940
<constraints>
4041
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
@@ -47,12 +48,16 @@
4748
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
4849
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
4950
</constraints>
50-
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
5151
</view>
5252
</viewController>
5353
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
5454
</objects>
5555
<point key="canvasLocation" x="52.173913043478265" y="375"/>
5656
</scene>
5757
</scenes>
58+
<resources>
59+
<systemColor name="darkTextColor">
60+
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
61+
</systemColor>
62+
</resources>
5863
</document>

example/ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ SPEC CHECKSUMS:
485485
React-jsiexecutor: 6a05173dc0142abc582bd4edd2d23146b8cc218a
486486
React-jsinspector: be95ad424ba9f7b817aff22732eb9b1b810a000a
487487
React-logger: 9a9cd87d4ea681ae929b32ef580638ff1b50fb24
488-
react-native-box2d: c8edda50b1adb20c27eed423e9d36a710256356e
488+
react-native-box2d: b7f3277f68dad9db6a645c779739a9a51dd9148e
489489
react-native-safe-area-context: b456e1c40ec86f5593d58b275bd0e9603169daca
490490
react-native-skia: 860cc2544d03ef15884ed40480a7d7b4cae57b0d
491491
React-perflogger: 1f554c2b684e2f484f9edcdfdaeedab039fbaca8

package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"ios",
1515
"cpp",
1616
"react-native-box2d.podspec",
17+
"!externals",
1718
"!lib/typescript/example",
1819
"!android/build",
1920
"!ios/build",
@@ -24,9 +25,13 @@
2425
"scripts": {
2526
"typescript": "tsc --noEmit",
2627
"lint": "eslint \"**/*.{js,ts,tsx}\"",
27-
"prepare": "bob build",
28-
"release": "release-it",
29-
"pods": "cd example && pod-install --quiet"
28+
"pods": "cd example && pod-install --quiet",
29+
"copy-headers": "yarn rimraf cpp/box2d && cp -R externals/box2d/include/box2d cpp/box2d",
30+
"build-lib-android": "./scripts/android-build-n-copy-box2d.sh",
31+
"build-lib-ios": "./scripts/ios-build-n-copy-box2d.sh",
32+
"build-lib": "yarn copy-headers && yarn build-lib-android && yarn build-lib-ios",
33+
"prepare": "yarn build-lib && bob build",
34+
"release": "release-it"
3035
},
3136
"keywords": [
3237
"react-native",

react-native-box2d.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
2020
s.source_files = [
2121
"ios/**/*.{m,mm}",
2222
"cpp/**/*.{cpp,h}",
23-
"ios/FastCryptoModule.h"
23+
"ios/Box2dModule.h"
2424
]
2525
# Any private headers that are not globally unique should be mentioned here.
2626
# Otherwise there will be a nameclash, since CocoaPods flattens out any header directories

0 commit comments

Comments
 (0)