Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanfiq committed Jul 23, 2024
1 parent e1bffd8 commit d949062
Show file tree
Hide file tree
Showing 123 changed files with 471 additions and 3,314 deletions.
263 changes: 0 additions & 263 deletions .idea/other.xml

This file was deleted.

20 changes: 16 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
android:theme="@style/AppTheme.NoActionBar"
tools:targetApi="31">
<activity
android:name=".screens.PlayYoutubeActivity"
android:name=".presentation.screens.player.PlaySpotifyActivity"
android:exported="false" />
<activity
android:name=".presentation.screens.player.PlayYoutubeActivity"
android:exported="false" />
<activity
android:name=".ui.settings.about.AboutDetailsActivity"
Expand All @@ -32,10 +35,10 @@
android:name=".ui.search.soundcloud.PlaySoundcloudActivity"
android:exported="false" />
<activity
android:name=".screens.PlayAudiusActivity"
android:name=".presentation.screens.player.PlayAudiusActivity"
android:exported="false" />
<activity
android:name=".screens.PlaySoundcloudActivity"
android:name=".presentation.screens.player.PlaySoundcloudActivity"
android:exported="false" />
<activity
android:name=".ui.search.youtube.PlayYoutubeActivity"
Expand All @@ -46,9 +49,18 @@
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="streamfusion.com"
android:scheme="https"
android:path="/callback"
/>
</intent-filter>
</activity>
</application>

Expand Down
6 changes: 2 additions & 4 deletions app/src/main/java/com/yanfiq/streamfusion/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import androidx.compose.runtime.Composable
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.preferencesDataStore
import com.yanfiq.streamfusion.ui.theme.AppTheme
import com.yanfiq.streamfusion.presentation.screens.BottomNavigationBar
import com.yanfiq.streamfusion.presentation.ui.theme.AppTheme

val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "settings")

Expand All @@ -20,9 +21,6 @@ class MainActivity : AppCompatActivity() {
MainScreen(this@MainActivity)
}
// SpotifyApi.initialize(this)

// val themePref = ThemeUtils.getThemePreference(this)
// ThemeUtils.applyTheme(themePref)
}

@Composable
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.yanfiq.streamfusion.data.response.audius

import com.yanfiq.streamfusion.domain.model.audius.Track

data class AudiusResponse(val data: List<Track>)

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.yanfiq.streamfusion.data.response.spotify

import com.yanfiq.streamfusion.domain.model.spotify.Tracks

data class SpotifyResponse(val tracks: Tracks)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.yanfiq.streamfusion.data.response.youtube

import com.yanfiq.streamfusion.domain.model.youtube.VideoDetailsItem

data class VideoDetailsResponse(val items: List<VideoDetailsItem>)

This file was deleted.

Loading

0 comments on commit d949062

Please sign in to comment.