init branch
This commit is contained in:
16
front/Dockerfile.buildandroid
Normal file
16
front/Dockerfile.buildandroid
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM ubuntu:22.04 as buildandroid
|
||||||
|
|
||||||
|
# Install dependencies (yarn, nodejs, git, etc.)
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
gnupg \
|
||||||
|
unzip \
|
||||||
|
zip \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
||||||
|
|
||||||
|
RUN npm install -g expo-cli
|
||||||
|
RUN eas login --non-interactive --username $EAS_USERNAME --password $EAS_PASSWORD
|
||||||
|
RUN eas:configure -p android
|
||||||
@@ -17,6 +17,7 @@ const CardGridCustom = <T extends Record<string, unknown>>(props: CardGridCustom
|
|||||||
<VStack space={5}>
|
<VStack space={5}>
|
||||||
{heading && <Heading>{heading}</Heading>}
|
{heading && <Heading>{heading}</Heading>}
|
||||||
<FlatGrid
|
<FlatGrid
|
||||||
|
nestedScrollEnabled
|
||||||
maxItemsPerRow={maxItemsPerRow}
|
maxItemsPerRow={maxItemsPerRow}
|
||||||
additionalRowStyle={style ?? { justifyContent: 'flex-start' }}
|
additionalRowStyle={style ?? { justifyContent: 'flex-start' }}
|
||||||
data={content}
|
data={content}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ const SongCardGrid = (props: SongCardGrid) => {
|
|||||||
<VStack space={5}>
|
<VStack space={5}>
|
||||||
<Heading>{props.heading}</Heading>
|
<Heading>{props.heading}</Heading>
|
||||||
<FlatGrid
|
<FlatGrid
|
||||||
|
nestedScrollEnabled
|
||||||
maxItemsPerRow={props.maxItemsPerRow}
|
maxItemsPerRow={props.maxItemsPerRow}
|
||||||
additionalRowStyle={props.style ?? { justifyContent: 'flex-start' }}
|
additionalRowStyle={props.style ?? { justifyContent: 'flex-start' }}
|
||||||
data={props.songs}
|
data={props.songs}
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ function MusicListComponent({
|
|||||||
// FlatList: Renders list efficiently, only rendering visible items.
|
// FlatList: Renders list efficiently, only rendering visible items.
|
||||||
return (
|
return (
|
||||||
<FlatList
|
<FlatList
|
||||||
|
nestedScrollEnabled
|
||||||
style={styles.container}
|
style={styles.container}
|
||||||
ListHeaderComponent={headerComponent}
|
ListHeaderComponent={headerComponent}
|
||||||
data={musicListState.displayedMusics}
|
data={musicListState.displayedMusics}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ const ScaffoldAuth: FunctionComponent<ScaffoldAuthProps> = ({
|
|||||||
<Wrap space={4} direction="row" style={{ padding: 16, paddingBottom: 0 }}>
|
<Wrap space={4} direction="row" style={{ padding: 16, paddingBottom: 0 }}>
|
||||||
<Row space={2} flex={1}>
|
<Row space={2} flex={1}>
|
||||||
<Image
|
<Image
|
||||||
source={{ uri: logo }}
|
// source={{ uri: logo }}
|
||||||
style={{
|
style={{
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
width: 32,
|
width: 32,
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ const styles = StyleSheet.create({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
paddingHorizontal: 12 + 20 + 12,
|
paddingHorizontal: 12 + 20 + 12,
|
||||||
paddingVertical: 12,
|
paddingVertical: 12,
|
||||||
outlineStyle: 'none',
|
// outlineStyle: 'none',
|
||||||
},
|
},
|
||||||
iconContainerLeft: {
|
iconContainerLeft: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
@@ -173,7 +173,7 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
iconContainerRight: {
|
iconContainerRight: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
outlineStyle: 'none',
|
// outlineStyle: 'none',
|
||||||
right: 12,
|
right: 12,
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
"distribution": "internal"
|
"distribution": "internal"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"EXPO_PUBLIC_API_URL": "https://chroma.octohub.app/api",
|
"EXPO_PUBLIC_API_URL": "https://nightly.chroma.octohub.app/api",
|
||||||
"EXPO_PUBLIC_SCORO_URL": "wss://chroma.octohub.app/ws"
|
"EXPO_PUBLIC_SCORO_URL": "wss://nightly.chroma.octohub.app/ws"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"production": {
|
"production": {
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
"distribution": "internal"
|
"distribution": "internal"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"EXPO_PUBLIC_API_URL": "https://chroma.octohub.app/api",
|
"EXPO_PUBLIC_API_URL": "https://nightly.chroma.octohub.app/api",
|
||||||
"EXPO_PUBLIC_SCORO_URL": "wss://chroma.octohub.app/ws"
|
"EXPO_PUBLIC_SCORO_URL": "wss://nightly.chroma.octohub.app/ws"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import { RootState } from '../state/Store';
|
|||||||
import { Translate, translate } from '../i18n/i18n';
|
import { Translate, translate } from '../i18n/i18n';
|
||||||
import { ColorSchemeType } from 'native-base/lib/typescript/components/types';
|
import { ColorSchemeType } from 'native-base/lib/typescript/components/types';
|
||||||
import { useStopwatch } from 'react-use-precision-timer';
|
import { useStopwatch } from 'react-use-precision-timer';
|
||||||
import { MIDIAccess, MIDIMessageEvent, requestMIDIAccess } from '@arthi-chaud/react-native-midi';
|
// import { MIDIAccess, MIDIMessageEvent, requestMIDIAccess } from '@arthi-chaud/react-native-midi';
|
||||||
import * as Linking from 'expo-linking';
|
import * as Linking from 'expo-linking';
|
||||||
import url from 'url';
|
import url from 'url';
|
||||||
import { PianoCanvasContext } from '../models/PianoGame';
|
import { PianoCanvasContext } from '../models/PianoGame';
|
||||||
@@ -62,14 +62,14 @@ if (process.env.NODE_ENV != 'development' && Platform.OS === 'web') {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseMidiMessage(message: MIDIMessageEvent) {
|
// function parseMidiMessage(message: MIDIMessageEvent) {
|
||||||
return {
|
// return {
|
||||||
command: message.data.at(0)! >> 4,
|
// command: message.data.at(0)! >> 4,
|
||||||
channel: message.data.at(0)! & 0xf,
|
// channel: message.data.at(0)! & 0xf,
|
||||||
note: message.data.at(1)!,
|
// note: message.data.at(1)!,
|
||||||
velocity: message.data.at(2)! / 127,
|
// velocity: message.data.at(2)! / 127,
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
|
|
||||||
//create a context with an array of number
|
//create a context with an array of number
|
||||||
export const PianoCC = createContext<PianoCanvasContext>({
|
export const PianoCC = createContext<PianoCanvasContext>({
|
||||||
@@ -300,7 +300,7 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (song.data && !webSocket.current && partitionRendered) {
|
if (song.data && !webSocket.current && partitionRendered) {
|
||||||
requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure);
|
// requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure);
|
||||||
}
|
}
|
||||||
}, [song.data, partitionRendered]);
|
}, [song.data, partitionRendered]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user