Skip to content

Commit fdd7ea4

Browse files
committed
feat(deps): Upgrade to Expo 50
1 parent 2920b96 commit fdd7ea4

File tree

9 files changed

+12442
-10642
lines changed

9 files changed

+12442
-10642
lines changed

.github/workflows/build_and_release.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,49 @@ jobs:
3232
steps:
3333
- name: Checkout
3434
uses: actions/checkout@v4
35+
36+
- uses: actions/setup-java@v4
37+
with:
38+
distribution: 'temurin'
39+
java-version: '18'
40+
3541
- name: Setup Node.js
3642
uses: actions/setup-node@v4
3743
with:
3844
node-version: 20
45+
3946
- name: Making sure the android example app builds
4047
run: |
4148
npm install
49+
4250
cd example
43-
npx expo prebuild
51+
npm install
52+
npx expo prebuild --platform android
53+
4454
cd android
4555
./gradlew build
4656
4757
ios-example:
4858
name: iOS example app
49-
runs-on: macos-latest
59+
runs-on: macos-14
5060
needs: build
5161
steps:
5262
- name: Checkout
5363
uses: actions/checkout@v4
64+
5465
- name: Setup Node.js
5566
uses: actions/setup-node@v4
5667
with:
5768
node-version: 20
69+
5870
- name: Making sure the ios example app builds
5971
run: |
6072
npm install
73+
6174
cd example
62-
npx expo prebuild
75+
npm install
76+
npx expo prebuild --platform ios
77+
6378
cd ios
6479
xcodebuild build -workspace reactnativemcumanagerexample.xcworkspace -scheme reactnativemcumanagerexample CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
6580

android/build.gradle

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ apply plugin: 'maven-publish'
55
group = 'uk.co.playerdata.reactnativemcumanager'
66
version = '0.1.0'
77

8-
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9-
if (expoModulesCorePlugin.exists()) {
10-
apply from: expoModulesCorePlugin
11-
applyKotlinExpoModulesCorePlugin()
12-
// Remove this check, but keep the contents after SDK49 support is dropped
13-
if (safeExtGet("expoProvidesDefaultConfig", false)) {
14-
useExpoPublishing()
15-
useCoreDependencies()
8+
buildscript {
9+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10+
if (expoModulesCorePlugin.exists()) {
11+
apply from: expoModulesCorePlugin
12+
applyKotlinExpoModulesCorePlugin()
1613
}
17-
}
1814

19-
buildscript {
2015
// Simple helper that allows the root project to override versions declared by this library.
2116
ext.safeExtGet = { prop, fallback ->
2217
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -73,7 +68,7 @@ android {
7368
namespace "uk.co.playerdata.reactnativemcumanager"
7469
defaultConfig {
7570
minSdkVersion safeExtGet("minSdkVersion", 21)
76-
targetSdkVersion safeExtGet("targetSdkVersion", 33)
71+
targetSdkVersion safeExtGet("targetSdkVersion", 34)
7772
versionCode 1
7873
versionName "0.1.0"
7974
}

app.json

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

example/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'react-native-get-random-values';
2+
13
import { UpgradeMode } from '@playerdata/react-native-mcu-manager';
24
import React, { useState } from 'react';
35
import {
@@ -9,8 +11,6 @@ import {
911
StyleSheet,
1012
Text,
1113
View,
12-
PermissionsAndroid,
13-
Platform,
1414
} from 'react-native';
1515

1616
import useBluetoothDevices from './src/useBluetoothDevices';

0 commit comments

Comments
 (0)