Skip to content

Commit e337800

Browse files
committed
fixme: Temp hack to test changes to upstream iOS MCU Mgr
1 parent bf41363 commit e337800

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

example/app.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ const config: ExpoConfig = {
3535
android: {
3636
minSdkVersion: 26,
3737
},
38+
ios: {
39+
extraPods: [
40+
{
41+
name: 'iOSMcuManagerLibrary',
42+
git: 'https://github.com/PlayerData/IOS-nRF-Connect-Device-Manager',
43+
branch: 'correct-settings-write',
44+
},
45+
],
46+
},
3847
},
3948
],
4049
],

example/src/app/settings.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,13 @@ export default function settings() {
8888
try {
8989
setSettingError(null);
9090

91-
<<<<<<< HEAD
92-
const valueB64 = await readSetting(selectedDeviceId, settingName);
93-
=======
9491
const valueB64 = await readSetting(
9592
selectedDevice?.deviceId || '',
9693
settingName
9794
);
95+
9896
console.log('valueB64', valueB64);
99-
>>>>>>> c97bf6a67 (fixup! feat: adding settings capabilities)
97+
10098
const decodedValue = Buffer.from(valueB64, 'base64').toString(
10199
'binary'
102100
);
@@ -119,9 +117,13 @@ export default function settings() {
119117
try {
120118
setSettingError(null);
121119

122-
const encodedValue = Buffer.from(settingValue, 'binary').toString(
123-
'base64'
124-
);
120+
const encodedValue = Buffer.from(
121+
settingValue,
122+
'binary'
123+
).toString('base64');
124+
125+
console.log('encodedValue', encodedValue);
126+
125127
await writeSetting(
126128
selectedDevice?.deviceId || '',
127129
settingName,

react-native-mcu-manager/ios/ReactNativeMcuManager.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.static_framework = true
1717

1818
s.dependency 'ExpoModulesCore'
19-
s.dependency 'iOSMcuManagerLibrary', '1.7.3'
19+
s.dependency 'iOSMcuManagerLibrary'
2020

2121
# Swift/Objective-C compatibility
2222
s.pod_target_xcconfig = {

0 commit comments

Comments
 (0)