-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
2,562 additions
and
2,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
{ | ||
"expo": { | ||
"name": "lissen-mobile", | ||
"slug": "lissen-mobile", | ||
"displayName": "Lissen", | ||
"version": "0.1.5", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"displayLogo": "./assets/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"package": "com.lissenmobile" | ||
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
}, | ||
"runtimeVersion": { | ||
"policy": "appVersion" | ||
}, | ||
"updates": { | ||
"url": "https://u.expo.dev/edf2085f-2a08-4fbe-990f-e33ee757f0d6" | ||
}, | ||
"owner": "0x0is1", | ||
"extra": { | ||
"eas": { | ||
"projectId": "edf2085f-2a08-4fbe-990f-e33ee757f0d6" | ||
} | ||
} | ||
} | ||
"expo": { | ||
"name": "lissen-mobile", | ||
"slug": "lissen-mobile", | ||
"displayName": "Lissen", | ||
"version": "0.1.5", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"displayLogo": "./assets/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"ios": { | ||
"supportsTablet": true | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"package": "com.lissenmobile" | ||
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
}, | ||
"runtimeVersion": { | ||
"policy": "appVersion" | ||
}, | ||
"updates": { | ||
"url": "https://u.expo.dev/edf2085f-2a08-4fbe-990f-e33ee757f0d6" | ||
}, | ||
"owner": "0x0is1", | ||
"extra": { | ||
"eas": { | ||
"projectId": "edf2085f-2a08-4fbe-990f-e33ee757f0d6" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ["babel-preset-expo"], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{ | ||
"cli": { | ||
"version": ">= 7.6.1" | ||
}, | ||
"build": { | ||
"development": { | ||
"developmentClient": true, | ||
"distribution": "internal", | ||
"channel": "development" | ||
}, | ||
"preview": { | ||
"distribution": "internal", | ||
"channel": "preview" | ||
}, | ||
"production": { | ||
"channel": "production" | ||
} | ||
}, | ||
"submit": { | ||
"production": {} | ||
} | ||
"cli": { | ||
"version": ">= 7.6.1" | ||
}, | ||
"build": { | ||
"development": { | ||
"developmentClient": true, | ||
"distribution": "internal", | ||
"channel": "development" | ||
}, | ||
"preview": { | ||
"distribution": "internal", | ||
"channel": "preview" | ||
}, | ||
"production": { | ||
"channel": "production" | ||
} | ||
}, | ||
"submit": { | ||
"production": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"target": "ES2022", | ||
"jsx": "react", | ||
"allowImportingTsExtensions": true, | ||
"strictNullChecks": true, | ||
"strictFunctionTypes": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"**/node_modules/*" | ||
] | ||
} | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"target": "ES2022", | ||
"jsx": "react", | ||
"allowImportingTsExtensions": true, | ||
"strictNullChecks": true, | ||
"strictFunctionTypes": true | ||
}, | ||
"exclude": ["node_modules", "**/node_modules/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
{ | ||
"name": "lissen-mobile", | ||
"version": "0.1.4", | ||
"main": "./src/index.js", | ||
"repository": { | ||
"url": "https://github.com/0x0is1/lissen-mobile" | ||
}, | ||
"scripts": { | ||
"start": "expo start", | ||
"android": "expo run:android", | ||
"ios": "expo run:ios", | ||
"web": "expo start --web" | ||
}, | ||
"dependencies": { | ||
"@react-native-async-storage/async-storage": "1.23.1", | ||
"@react-native-community/datetimepicker": "8.0.1", | ||
"@react-native-community/progress-bar-android": "^1.0.5", | ||
"@react-native-community/slider": "^4.5.2", | ||
"@react-native-picker/picker": "2.7.5", | ||
"@react-native-seoul/masonry-list": "^1.4.2", | ||
"@react-navigation/drawer": "^6.7.2", | ||
"@react-navigation/native": "^6.1.18", | ||
"@react-navigation/stack": "^6.4.1", | ||
"axios": "^1.7.3", | ||
"expo": "~51.0.34", | ||
"expo-dev-client": "~4.0.27", | ||
"expo-font": "^12.0.10", | ||
"expo-status-bar": "~1.12.1", | ||
"expo-updates": "~0.25.25", | ||
"html-entities": "^2.5.2", | ||
"react": "18.2.0", | ||
"react-native": "0.74.5", | ||
"react-native-chart-kit": "^6.12.0", | ||
"react-native-circular-progress": "^1.4.0", | ||
"react-native-gesture-handler": "~2.16.1", | ||
"react-native-linear-gradient": "^2.8.3", | ||
"react-native-masonry-list": "^2.16.2", | ||
"react-native-reanimated": "~3.10.1", | ||
"react-native-reanimated-carousel": "^3.5.1", | ||
"react-native-safe-area-context": "4.10.5", | ||
"react-native-screens": "3.31.1", | ||
"react-native-snap-carousel": "^3.9.1", | ||
"react-native-svg": "^15.2.0", | ||
"react-native-switch-selector": "^2.3.0", | ||
"react-native-track-player": "^4.1.1", | ||
"react-native-vector-icons": "^10.1.0", | ||
"rn-circular-slider": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.0", | ||
"@types/react": "~18.2.79", | ||
"@types/react-native-vector-icons": "^6.4.18" | ||
}, | ||
"private": true | ||
"name": "lissen-mobile", | ||
"version": "0.1.4", | ||
"main": "./src/index.js", | ||
"repository": { | ||
"url": "https://github.com/0x0is1/lissen-mobile" | ||
}, | ||
"scripts": { | ||
"start": "expo start", | ||
"android": "expo run:android", | ||
"ios": "expo run:ios", | ||
"web": "expo start --web" | ||
}, | ||
"dependencies": { | ||
"@react-native-async-storage/async-storage": "1.23.1", | ||
"@react-native-community/datetimepicker": "8.0.1", | ||
"@react-native-community/progress-bar-android": "^1.0.5", | ||
"@react-native-community/slider": "^4.5.2", | ||
"@react-native-picker/picker": "2.7.5", | ||
"@react-native-seoul/masonry-list": "^1.4.2", | ||
"@react-navigation/drawer": "^6.7.2", | ||
"@react-navigation/native": "^6.1.18", | ||
"@react-navigation/stack": "^6.4.1", | ||
"axios": "^1.7.3", | ||
"expo": "~51.0.34", | ||
"expo-dev-client": "~4.0.27", | ||
"expo-font": "^12.0.10", | ||
"expo-status-bar": "~1.12.1", | ||
"expo-updates": "~0.25.25", | ||
"html-entities": "^2.5.2", | ||
"react": "18.2.0", | ||
"react-native": "0.74.5", | ||
"react-native-chart-kit": "^6.12.0", | ||
"react-native-circular-progress": "^1.4.0", | ||
"react-native-gesture-handler": "~2.16.1", | ||
"react-native-linear-gradient": "^2.8.3", | ||
"react-native-masonry-list": "^2.16.2", | ||
"react-native-reanimated": "~3.10.1", | ||
"react-native-reanimated-carousel": "^3.5.1", | ||
"react-native-safe-area-context": "4.10.5", | ||
"react-native-screens": "3.31.1", | ||
"react-native-snap-carousel": "^3.9.1", | ||
"react-native-svg": "^15.2.0", | ||
"react-native-switch-selector": "^2.3.0", | ||
"react-native-track-player": "^4.1.1", | ||
"react-native-vector-icons": "^10.1.0", | ||
"rn-circular-slider": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.0", | ||
"@types/react": "~18.2.79", | ||
"@types/react-native-vector-icons": "^6.4.18" | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,68 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import { createStackNavigator } from '@react-navigation/stack'; | ||
import PlayerScreen from './screens/PlayerScreen/PlayerScreen'; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import { PlayerProvider } from './contexts/PlayerContext'; | ||
import AlbumsScreen from './screens/AlbumsScreen/AlbumsScreen'; | ||
import React, { useEffect, useState } from "react"; | ||
import { NavigationContainer } from "@react-navigation/native"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import PlayerScreen from "./screens/PlayerScreen/PlayerScreen"; | ||
import { StatusBar } from "expo-status-bar"; | ||
import { PlayerProvider } from "./contexts/PlayerContext"; | ||
import AlbumsScreen from "./screens/AlbumsScreen/AlbumsScreen"; | ||
import setupPlayer from "./utils/setupPlayer"; | ||
import TrackPlayer from 'react-native-track-player'; | ||
import SearchScreen from './screens/SearchScreen/SearchScreen'; | ||
import DashboardScreen from './screens/DashboardScreen/DashboardScreen'; | ||
import AlbumViewerScreen from './screens/AlbumViewerScreen/AlbumViewerScreen'; | ||
import Constants from './constants/constants'; | ||
import TrackPlayer from "react-native-track-player"; | ||
import SearchScreen from "./screens/SearchScreen/SearchScreen"; | ||
import DashboardScreen from "./screens/DashboardScreen/DashboardScreen"; | ||
import AlbumViewerScreen from "./screens/AlbumViewerScreen/AlbumViewerScreen"; | ||
import Constants from "./constants/constants"; | ||
|
||
const Stack = createStackNavigator(); | ||
const constants = new Constants(); | ||
|
||
export default function App() { | ||
const [playerInitialized, setPlayerInitialized] = useState(false); | ||
const [playerInitialized, setPlayerInitialized] = useState(false); | ||
|
||
useEffect(() => { | ||
const initializePlayer = async () => { | ||
try { | ||
if (!playerInitialized) { | ||
await setupPlayer(); | ||
setPlayerInitialized(true); | ||
return async () => await TrackPlayer.destroy(); | ||
} | ||
} catch (error) { | ||
console.error('Error setting up player', error); | ||
} | ||
}; | ||
initializePlayer(); | ||
}, [playerInitialized]); | ||
useEffect(() => { | ||
const initializePlayer = async () => { | ||
try { | ||
if (!playerInitialized) { | ||
await setupPlayer(); | ||
setPlayerInitialized(true); | ||
return async () => await TrackPlayer.destroy(); | ||
} | ||
} catch (error) { | ||
console.error("Error setting up player", error); | ||
} | ||
}; | ||
initializePlayer(); | ||
}, [playerInitialized]); | ||
|
||
return ( | ||
<PlayerProvider> | ||
<StatusBar backgroundColor={'transparent'} translucent /> | ||
<NavigationContainer> | ||
<Stack.Navigator screenOptions={{ headerShown: false }} initialRouteName={constants.screenRoutes.DASHBOARDSCREEN}> | ||
<Stack.Screen name={constants.screenRoutes.PLAYERSCREEN} component={PlayerScreen} /> | ||
<Stack.Screen name={constants.screenRoutes.ALBUMSCREEN} component={AlbumsScreen} /> | ||
<Stack.Screen name={constants.screenRoutes.SEARCHSCREEN} component={SearchScreen} /> | ||
<Stack.Screen name={constants.screenRoutes.DASHBOARDSCREEN} component={DashboardScreen} /> | ||
<Stack.Screen name={constants.screenRoutes.ALBUMVIEWERSCREEN} component={AlbumViewerScreen} /> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
</PlayerProvider> | ||
); | ||
return ( | ||
<PlayerProvider> | ||
<StatusBar backgroundColor={"transparent"} translucent /> | ||
<NavigationContainer> | ||
<Stack.Navigator | ||
screenOptions={{ headerShown: false }} | ||
initialRouteName={constants.screenRoutes.DASHBOARDSCREEN} | ||
> | ||
<Stack.Screen | ||
name={constants.screenRoutes.PLAYERSCREEN} | ||
component={PlayerScreen} | ||
/> | ||
<Stack.Screen | ||
name={constants.screenRoutes.ALBUMSCREEN} | ||
component={AlbumsScreen} | ||
/> | ||
<Stack.Screen | ||
name={constants.screenRoutes.SEARCHSCREEN} | ||
component={SearchScreen} | ||
/> | ||
<Stack.Screen | ||
name={constants.screenRoutes.DASHBOARDSCREEN} | ||
component={DashboardScreen} | ||
/> | ||
<Stack.Screen | ||
name={constants.screenRoutes.ALBUMVIEWERSCREEN} | ||
component={AlbumViewerScreen} | ||
/> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
</PlayerProvider> | ||
); | ||
} |
Oops, something went wrong.