Skip to content

Commit 5a224ee

Browse files
committed
chore: cleanup the default module and updating the prettier config
1 parent 337ac43 commit 5a224ee

13 files changed

Lines changed: 2152 additions & 77 deletions

File tree

android/src/main/java/com/haptics/HapticsModule.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ class HapticsModule(reactContext: ReactApplicationContext) :
1111
return NAME
1212
}
1313

14-
// Example method
15-
// See https://reactnative.dev/docs/native-modules-android
16-
override fun multiply(a: Double, b: Double): Double {
17-
return a * b
18-
}
19-
2014
companion object {
2115
const val NAME = "Haptics"
2216
}

example/Gemfile.lock

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
7+
rexml
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
15+
i18n (>= 1.6, < 2)
16+
logger (>= 1.4.2)
17+
minitest (>= 5.1)
18+
securerandom (>= 0.3)
19+
tzinfo (~> 2.0, >= 2.0.5)
20+
addressable (2.8.7)
21+
public_suffix (>= 2.0.2, < 7.0)
22+
algoliasearch (1.27.5)
23+
httpclient (~> 2.8, >= 2.8.3)
24+
json (>= 1.5.1)
25+
atomos (0.1.3)
26+
base64 (0.3.0)
27+
benchmark (0.4.1)
28+
bigdecimal (3.2.2)
29+
claide (1.1.0)
30+
cocoapods (1.15.2)
31+
addressable (~> 2.8)
32+
claide (>= 1.0.2, < 2.0)
33+
cocoapods-core (= 1.15.2)
34+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
35+
cocoapods-downloader (>= 2.1, < 3.0)
36+
cocoapods-plugins (>= 1.0.0, < 2.0)
37+
cocoapods-search (>= 1.0.0, < 2.0)
38+
cocoapods-trunk (>= 1.6.0, < 2.0)
39+
cocoapods-try (>= 1.1.0, < 2.0)
40+
colored2 (~> 3.1)
41+
escape (~> 0.0.4)
42+
fourflusher (>= 2.3.0, < 3.0)
43+
gh_inspector (~> 1.0)
44+
molinillo (~> 0.8.0)
45+
nap (~> 1.0)
46+
ruby-macho (>= 2.3.0, < 3.0)
47+
xcodeproj (>= 1.23.0, < 2.0)
48+
cocoapods-core (1.15.2)
49+
activesupport (>= 5.0, < 8)
50+
addressable (~> 2.8)
51+
algoliasearch (~> 1.0)
52+
concurrent-ruby (~> 1.1)
53+
fuzzy_match (~> 2.0.4)
54+
nap (~> 1.0)
55+
netrc (~> 0.11)
56+
public_suffix (~> 4.0)
57+
typhoeus (~> 1.0)
58+
cocoapods-deintegrate (1.0.5)
59+
cocoapods-downloader (2.1)
60+
cocoapods-plugins (1.0.0)
61+
nap
62+
cocoapods-search (1.0.1)
63+
cocoapods-trunk (1.6.0)
64+
nap (>= 0.8, < 2.0)
65+
netrc (~> 0.11)
66+
cocoapods-try (1.2.0)
67+
colored2 (3.1.2)
68+
concurrent-ruby (1.3.3)
69+
connection_pool (2.5.3)
70+
drb (2.2.3)
71+
escape (0.0.4)
72+
ethon (0.16.0)
73+
ffi (>= 1.15.0)
74+
ffi (1.17.2)
75+
fourflusher (2.3.1)
76+
fuzzy_match (2.0.4)
77+
gh_inspector (1.1.3)
78+
httpclient (2.9.0)
79+
mutex_m
80+
i18n (1.14.7)
81+
concurrent-ruby (~> 1.0)
82+
json (2.13.2)
83+
logger (1.7.0)
84+
minitest (5.25.5)
85+
molinillo (0.8.0)
86+
mutex_m (0.3.0)
87+
nanaimo (0.3.0)
88+
nap (1.1.0)
89+
netrc (0.11.0)
90+
nkf (0.2.0)
91+
public_suffix (4.0.7)
92+
rexml (3.4.1)
93+
ruby-macho (2.5.1)
94+
securerandom (0.4.1)
95+
typhoeus (1.4.1)
96+
ethon (>= 0.9.0)
97+
tzinfo (2.0.6)
98+
concurrent-ruby (~> 1.0)
99+
xcodeproj (1.25.1)
100+
CFPropertyList (>= 2.3.3, < 4.0)
101+
atomos (~> 0.1.3)
102+
claide (>= 1.0.2, < 2.0)
103+
colored2 (~> 3.1)
104+
nanaimo (~> 0.3.0)
105+
rexml (>= 3.3.6, < 4.0)
106+
107+
PLATFORMS
108+
ruby
109+
110+
DEPENDENCIES
111+
activesupport (>= 6.1.7.5, != 7.1.0)
112+
benchmark
113+
bigdecimal
114+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
115+
concurrent-ruby (< 1.3.4)
116+
logger
117+
mutex_m
118+
xcodeproj (< 1.26.0)
119+
120+
RUBY VERSION
121+
ruby 3.3.5p100
122+
123+
BUNDLED WITH
124+
2.5.18

example/babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const { getConfig } = require('react-native-builder-bob/babel-config');
2+
const {getConfig} = require('react-native-builder-bob/babel-config');
33
const pkg = require('../package.json');
44

55
const root = path.resolve(__dirname, '..');
@@ -8,5 +8,5 @@ module.exports = getConfig(
88
{
99
presets: ['module:@react-native/babel-preset'],
1010
},
11-
{ root, pkg }
11+
{root, pkg},
1212
);

example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AppRegistry } from 'react-native';
1+
import {AppRegistry} from 'react-native';
22
import App from './src/App';
3-
import { name as appName } from './app.json';
3+
import {name as appName} from './app.json';
44

55
AppRegistry.registerComponent(appName, () => App);

example/ios/HapticsExample.xcodeproj/project.pbxproj

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,12 @@
99
/* Begin PBXBuildFile section */
1010
0C80B921A6F3F58F76C31292 /* libPods-HapticsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-HapticsExample.a */; };
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12+
40574178AD767A5790FD228F /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
1213
761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
1314
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1415
/* End PBXBuildFile section */
1516

16-
/* Begin PBXContainerItemProxy section */
17-
00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
18-
isa = PBXContainerItemProxy;
19-
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
20-
proxyType = 1;
21-
remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
22-
remoteInfo = HapticsExample;
23-
};
24-
/* End PBXContainerItemProxy section */
25-
2617
/* Begin PBXFileReference section */
27-
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2818
13B07F961A680F5B00A75B9A /* HapticsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HapticsExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2919
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = HapticsExample/Images.xcassets; sourceTree = "<group>"; };
3020
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = HapticsExample/Info.plist; sourceTree = "<group>"; };
@@ -49,14 +39,6 @@
4939
/* End PBXFrameworksBuildPhase section */
5040

5141
/* Begin PBXGroup section */
52-
00E356F01AD99517003FC87E /* Supporting Files */ = {
53-
isa = PBXGroup;
54-
children = (
55-
00E356F11AD99517003FC87E /* Info.plist */,
56-
);
57-
name = "Supporting Files";
58-
sourceTree = "<group>";
59-
};
6042
13B07FAE1A68108700A75B9A /* HapticsExample */ = {
6143
isa = PBXGroup;
6244
children = (
@@ -172,19 +154,13 @@
172154
/* End PBXProject section */
173155

174156
/* Begin PBXResourcesBuildPhase section */
175-
00E356EC1AD99517003FC87E /* Resources */ = {
176-
isa = PBXResourcesBuildPhase;
177-
buildActionMask = 2147483647;
178-
files = (
179-
);
180-
runOnlyForDeploymentPostprocessing = 0;
181-
};
182157
13B07F8E1A680F5B00A75B9A /* Resources */ = {
183158
isa = PBXResourcesBuildPhase;
184159
buildActionMask = 2147483647;
185160
files = (
186161
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
187162
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
163+
40574178AD767A5790FD228F /* PrivacyInfo.xcprivacy in Resources */,
188164
);
189165
runOnlyForDeploymentPostprocessing = 0;
190166
};
@@ -276,14 +252,6 @@
276252
};
277253
/* End PBXSourcesBuildPhase section */
278254

279-
/* Begin PBXTargetDependency section */
280-
00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
281-
isa = PBXTargetDependency;
282-
target = 13B07F861A680F5B00A75B9A /* HapticsExample */;
283-
targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
284-
};
285-
/* End PBXTargetDependency section */
286-
287255
/* Begin XCBuildConfiguration section */
288256
13B07F941A680F5B00A75B9A /* Debug */ = {
289257
isa = XCBuildConfiguration;
@@ -305,7 +273,7 @@
305273
"-ObjC",
306274
"-lc++",
307275
);
308-
PRODUCT_BUNDLE_IDENTIFIER = "haptics.example";
276+
PRODUCT_BUNDLE_IDENTIFIER = haptics.example;
309277
PRODUCT_NAME = HapticsExample;
310278
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
311279
SWIFT_VERSION = 5.0;
@@ -332,7 +300,7 @@
332300
"-ObjC",
333301
"-lc++",
334302
);
335-
PRODUCT_BUNDLE_IDENTIFIER = "haptics.example";
303+
PRODUCT_BUNDLE_IDENTIFIER = haptics.example;
336304
PRODUCT_NAME = HapticsExample;
337305
SWIFT_VERSION = 5.0;
338306
VERSIONING_SYSTEM = "apple-generic";
@@ -408,7 +376,14 @@
408376
"-DFOLLY_CFG_NO_COROUTINES=1",
409377
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
410378
);
379+
OTHER_LDFLAGS = (
380+
"$(inherited)",
381+
" ",
382+
);
383+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
411384
SDKROOT = iphoneos;
385+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
386+
USE_HERMES = true;
412387
};
413388
name = Debug;
414389
};
@@ -473,7 +448,13 @@
473448
"-DFOLLY_CFG_NO_COROUTINES=1",
474449
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
475450
);
451+
OTHER_LDFLAGS = (
452+
"$(inherited)",
453+
" ",
454+
);
455+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
476456
SDKROOT = iphoneos;
457+
USE_HERMES = true;
477458
VALIDATE_PRODUCT = YES;
478459
};
479460
name = Release;

example/ios/HapticsExample.xcworkspace/contents.xcworkspacedata

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

0 commit comments

Comments
 (0)