diff --git a/README.md b/README.md index c91be80..8bb383f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,16 @@ # Humm App for sharing music -Humm is an app for sharing playlists across multiple streaming services, both for yourself and with friends + +Hum is an IOS application that allows users to share playlists across music streaming platforms. Our application currently supports the conversion of apple music to Spotify and vice versa. + +## Motivation +### Example +Emily and her best friend Elena are always sharing their playlists. However, Emily uses apple music and Elena uses spotify. So they currently screenshot their playlist and message it to the other person. They then have to search through their respective music streaming service for each song and add it to a playlist. +## Resolution +Now with Humm, Emily and Elena log in to our app, and connect their music screaming service. All of their playlists are imported and they add each other as friends. They then share individual playlists with one another. Once Emily or Elena accepts the playlist request, the playlist gets downloaded to spotify or apple. The playlist shows up under their shared playlists view in our app as well as on their spotify or apple music account. With Humm you can also convert your own playlists from one service to another. ## Future Features: - YouTube support - Collaborative Playlists - In-App music streaming + + diff --git a/ios/Controllers/MediaLibraryManager.swift b/ios/Controllers/MediaLibraryManager.swift index cb58f21..c08d6d8 100644 --- a/ios/Controllers/MediaLibraryManager.swift +++ b/ios/Controllers/MediaLibraryManager.swift @@ -174,6 +174,7 @@ class MediaLibraryManager: NSObject { struct Playlist: Codable { var name: String var songs: [Song] + var id: String } @@ -184,6 +185,7 @@ class MediaLibraryManager: NSObject { let playlists = myPlaylistQuery.collections for playlist in playlists! { + let playlistId = String(describing: playlist.value(forProperty: MPMediaItemPropertyPersistentID)!) let songs = playlist.items var songsInPlaylist: [Song] = [] for song in songs { @@ -207,7 +209,7 @@ class MediaLibraryManager: NSObject { // task.resume() } let playlistName = String(describing: playlist.value(forProperty: MPMediaPlaylistPropertyName)!) - allPlaylists.append(Playlist(name: playlistName, songs: songsInPlaylist)) + allPlaylists.append(Playlist(name: playlistName, songs: songsInPlaylist, id: playlistId)) } let jsonEncoder = JSONEncoder() diff --git a/ios/HumClient.xcodeproj/xcshareddata/xcschemes/HumClient.xcscheme b/ios/HumClient.xcodeproj/xcshareddata/xcschemes/HumClient.xcscheme index d22b913..fd59bb7 100644 --- a/ios/HumClient.xcodeproj/xcshareddata/xcschemes/HumClient.xcscheme +++ b/ios/HumClient.xcodeproj/xcshareddata/xcschemes/HumClient.xcscheme @@ -81,7 +81,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - Hum + Humm CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -45,7 +45,7 @@ NSAppleMusicUsageDescription Give Hum Authorization NSLocationWhenInUseUsageDescription - + UIAppFonts Entypo.ttf diff --git a/js/components/home/index.js b/js/components/home/index.js index cb33939..d201d16 100644 --- a/js/components/home/index.js +++ b/js/components/home/index.js @@ -30,9 +30,8 @@ export default class Home extends Component { colors={['#FF5A5F', '#FC642D', '#ebcbb9']} style={styles.container} > - Back to the basics - HUM - of sharing music + HUMM + Welcome to HUMM.