├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ ├── xcshareddata │ └── xcschemes │ │ └── Runner.xcscheme │ └── project.pbxproj ├── lib ├── utils │ ├── dio_client.dart │ ├── theme.dart │ ├── colors.dart │ ├── routes.dart │ └── subreddits_list.dart ├── models │ ├── visible_item.dart │ ├── genre.dart │ ├── post.dart │ ├── playlist_item.dart │ └── playlist.dart ├── pages │ ├── home_page.dart │ ├── subreddit_page.dart │ └── global_page.dart ├── presenters │ ├── visibility │ │ └── go_back_button.dart │ ├── subreddits │ │ ├── subreddit_sort_wrap.dart │ │ ├── subreddit_genres_grid.dart │ │ ├── subreddit_selection_button.dart │ │ ├── subreddit_sort_button.dart │ │ ├── subreddit_genre_header.dart │ │ ├── subreddit_genre_card.dart │ │ ├── subreddits_list.dart │ │ ├── subreddit_genre_page.dart │ │ └── subreddit_header.dart │ ├── player │ │ ├── player_button_visibility.dart │ │ ├── playlist_title.dart │ │ ├── songs_list.dart │ │ ├── song_progression_bar.dart │ │ ├── current_song_title.dart │ │ ├── player_action_button.dart │ │ ├── player_bottom_sheet.dart │ │ └── player_controls.dart │ └── posts │ │ ├── posts_list.dart │ │ ├── posts_count.dart │ │ ├── post_tile.dart │ │ └── play_single_post_button.dart ├── states │ ├── loading_state.dart │ ├── posts_state.dart │ ├── subreddits_state.dart │ ├── global_state.dart │ └── player_state.dart ├── repositories │ └── posts_repository.dart ├── widgets │ ├── collapsed_player.dart │ ├── playlist_panel.dart │ ├── song_tile.dart │ └── loading_indicator.dart ├── services │ ├── play_audio_service.dart │ └── playlist_service.dart └── main.dart ├── assets ├── images │ ├── logo.png │ ├── other-music.jpg │ ├── rock-music.jpg │ ├── world-music.jpg │ ├── decades-music.jpg │ ├── hip-hop-music.jpg │ ├── classical-music.jpg │ ├── electronic-music.jpg │ └── logo.svg └── screens │ ├── home_screen.png │ ├── playing_screen.png │ ├── playlist_screen.png │ ├── subreddit_screen.png │ └── subreddits_screen.png ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-ldpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── dev │ │ │ │ │ └── cornet │ │ │ │ │ └── redditify │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── .metadata ├── test └── widget_test.dart ├── .gitignore ├── README.md ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /lib/utils/dio_client.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | 3 | Dio dio = Dio(); -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/logo.png -------------------------------------------------------------------------------- /assets/images/other-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/other-music.jpg -------------------------------------------------------------------------------- /assets/images/rock-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/rock-music.jpg -------------------------------------------------------------------------------- /assets/images/world-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/world-music.jpg -------------------------------------------------------------------------------- /assets/images/decades-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/decades-music.jpg -------------------------------------------------------------------------------- /assets/images/hip-hop-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/hip-hop-music.jpg -------------------------------------------------------------------------------- /assets/screens/home_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/screens/home_screen.png -------------------------------------------------------------------------------- /assets/images/classical-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/classical-music.jpg -------------------------------------------------------------------------------- /assets/images/electronic-music.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/images/electronic-music.jpg -------------------------------------------------------------------------------- /assets/screens/playing_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/screens/playing_screen.png -------------------------------------------------------------------------------- /assets/screens/playlist_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/screens/playlist_screen.png -------------------------------------------------------------------------------- /lib/models/visible_item.dart: -------------------------------------------------------------------------------- 1 | enum VisibleItem { SubredditGenresList, SubredditGenrePage, SubredditPage, LoadingIndicator } 2 | -------------------------------------------------------------------------------- /assets/screens/subreddit_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/screens/subreddit_screen.png -------------------------------------------------------------------------------- /assets/screens/subreddits_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/assets/screens/subreddits_screen.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | android.enableR8=true 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gloumy/music-from-reddit/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/models/genre.dart: -------------------------------------------------------------------------------- 1 | class Genre { 2 | final String title; 3 | final String asset; 4 | final List subreddits; 5 | 6 | Genre({ 7 | this.title, 8 | this.asset, 9 | this.subreddits, 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/utils/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/utils/colors.dart'; 3 | 4 | final ThemeData appTheme = ThemeData( 5 | scaffoldBackgroundColor: mediumGreyColor, 6 | appBarTheme: AppBarTheme( 7 | color: darkGreyColor, 8 | ) 9 | ); 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /lib/utils/colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const Color darkGreyColor = Color(0xFF303841); 4 | const Color mediumGreyColor = Color(0xFF3a4750); 5 | const Color lightGreyColor = Color(0xFFeeeeee); 6 | const Color blueColor = Color(0xFF00adb5); 7 | const Color redditOrange = Color(0xFFFF5700); 8 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: c382b8e990b6976f610764179f94e0416d82c057 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/models/post.dart: -------------------------------------------------------------------------------- 1 | class Post { 2 | final String title; 3 | final String url; 4 | final String thumbnailUrl; 5 | 6 | Post({ 7 | this.title, 8 | this.url, 9 | this.thumbnailUrl, 10 | }); 11 | 12 | factory Post.fromJson(Map json) => Post( 13 | title: json["title"], 14 | url: json["url"], 15 | thumbnailUrl: json["thumbnail"] 16 | ); 17 | } 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/dev/cornet/redditify/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package dev.cornet.redditify 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/models/playlist_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | enum PlaylistItemStatus { PENDING, PLAYING, PLAYED, ERROR } 4 | 5 | class PlaylistItem { 6 | final String title; 7 | final String audioStreamUrl; 8 | PlaylistItemStatus status; 9 | final String thumbnailUrl; 10 | 11 | PlaylistItem({ 12 | @required this.title, 13 | @required this.audioStreamUrl, 14 | @required this.thumbnailUrl, 15 | this.status = PlaylistItemStatus.PENDING, 16 | }); 17 | } 18 | -------------------------------------------------------------------------------- /lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/presenters/subreddits/subreddit_genres_grid.dart'; 3 | 4 | class HomePage extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Scaffold( 8 | appBar: AppBar( 9 | title: Image.asset("assets/images/logo.png",height: 60,), 10 | centerTitle: true, 11 | elevation: 5.0, 12 | ), 13 | body: SubredditGenresGrid(), 14 | ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /lib/utils/routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:redditify/pages/subreddit_page.dart'; 2 | import 'package:sailor/sailor.dart'; 3 | 4 | class Routes { 5 | static final sailor = Sailor(); 6 | 7 | static void createRoutes() { 8 | sailor.addRoute( 9 | SailorRoute( 10 | name: "/subreddit", 11 | builder: (context, args, params) { 12 | return SubredditPage(); 13 | }, 14 | params: [ 15 | SailorParam(name: "subreddit", isRequired: true), 16 | ], 17 | ), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/presenters/visibility/go_back_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/global_state.dart'; 4 | 5 | class GoBackButton extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return IconButton( 9 | icon: Icon( 10 | Icons.arrow_back_ios, 11 | color: Colors.white, 12 | ), 13 | onPressed: () { 14 | Provider.of(context).goBack(); 15 | }, 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /lib/states/loading_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoadingState with ChangeNotifier { 4 | bool _isLoading = false; 5 | String _mainText = "Please wait .."; 6 | String _subText = ""; 7 | 8 | bool get isLoading => _isLoading; 9 | String get mainText => _mainText; 10 | String get subText => _subText; 11 | 12 | void setBusy(bool value, 13 | {String mainText = "Please wait ..", String subText = ""}) { 14 | _isLoading = value; 15 | _mainText = mainText; 16 | _subText = subText; 17 | notifyListeners(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_sort_wrap.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/presenters/subreddits/subreddit_sort_button.dart'; 3 | 4 | class SubredditSortWrap extends StatelessWidget { 5 | final List _sortBys = ["new", "hot", "top", "rising"]; 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return Wrap( 10 | spacing: 3.0, 11 | children: [ 12 | for (String sortBy in _sortBys) 13 | SubredditSortButton( 14 | sortBy: sortBy, 15 | ) 16 | ], 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/presenters/player/player_button_visibility.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/presenters/player/player_action_button.dart'; 4 | import 'package:redditify/states/posts_state.dart'; 5 | 6 | class PlayerButtonVisibility extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Consumer( 10 | builder: (context, state, _) { 11 | return Visibility( 12 | visible: state.posts.isNotEmpty, 13 | child: PlayerActionButton(), 14 | ); 15 | }, 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/states/posts_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/models/post.dart'; 3 | import 'package:redditify/repositories/posts_repository.dart'; 4 | 5 | class PostsState with ChangeNotifier { 6 | List _posts = []; 7 | 8 | // Getters 9 | List get posts => List.from(_posts); 10 | int get postsLength => _posts.length; 11 | 12 | PostsRepository _postsRepository = PostsRepository(); 13 | 14 | Future retrievePosts(String subreddit, String sortBy) async { 15 | notifyListeners(); 16 | 17 | _posts = await _postsRepository.retrievePosts(subreddit, sortBy); 18 | 19 | notifyListeners(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/presenters/player/playlist_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/player_state.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | 6 | class PlaylistTitle extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Consumer( 10 | builder: (context, state, _) => Text( 11 | state.playlist.title != null 12 | ? "r/${state.playlist.title}" 13 | : "No current playlist", 14 | style: TextStyle( 15 | color: redditOrange, 16 | fontWeight: FontWeight.bold, 17 | fontSize: 18, 18 | ), 19 | ), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/presenters/posts/posts_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/presenters/posts/post_tile.dart'; 4 | import 'package:redditify/states/posts_state.dart'; 5 | 6 | class PostsList extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Consumer( 10 | builder: (context, state, _) { 11 | return Expanded( 12 | child: ListView.builder( 13 | shrinkWrap: true, 14 | itemCount: state.posts.length, 15 | itemBuilder: (context, index) { 16 | return PostTile(post: state.posts[index]); 17 | }, 18 | ), 19 | ); 20 | }, 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/presenters/posts/posts_count.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/posts_state.dart'; 4 | 5 | class PostsCount extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Consumer( 9 | builder: (context, state, _) { 10 | return Text( 11 | "${state.postsLength} titres", 12 | style: TextStyle( 13 | fontSize: 14, 14 | shadows: [ 15 | Shadow( 16 | offset: Offset(0.0, 0.0), 17 | blurRadius: 5.0, 18 | color: Color.fromARGB(255, 0, 0, 0), 19 | ), 20 | ], 21 | color: Colors.white, 22 | ), 23 | ); 24 | }, 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/models/playlist.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_exoplayer/audio_notification.dart'; 2 | import 'package:redditify/models/playlist_item.dart'; 3 | 4 | class Playlist { 5 | String title; 6 | List songs; 7 | 8 | List get streamUrls => songs.map((s) => s.audioStreamUrl).toList(); 9 | List get notifications { 10 | List _notifications = []; 11 | songs.forEach( 12 | (s) => _notifications.add( 13 | AudioNotification( 14 | title: s.title, 15 | smallIconFileName: "ic_launcher", 16 | isLocal: false, 17 | largeIconUrl: s.thumbnailUrl, 18 | ), 19 | ), 20 | ); 21 | 22 | return _notifications; 23 | } 24 | 25 | Playlist({ 26 | this.title, 27 | this.songs, 28 | }); 29 | 30 | factory Playlist.empty() => Playlist(songs: [], title: ""); 31 | } 32 | -------------------------------------------------------------------------------- /lib/repositories/posts_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:redditify/models/post.dart'; 3 | import 'package:redditify/utils/dio_client.dart'; 4 | 5 | class PostsRepository { 6 | Future> retrievePosts(String subreddit, String sortBy) async { 7 | Response response = await dio 8 | .get('http://www.reddit.com/r/$subreddit/$sortBy.json?limit=100'); 9 | 10 | List responseData = response.data["data"]["children"]; 11 | List posts = []; 12 | RegExp exp = RegExp( 13 | r"(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})"); 14 | 15 | // Directly filter posts matching youtube url 16 | responseData.forEach((p) { 17 | if (exp.hasMatch(p["data"]["url"])) posts.add(Post.fromJson(p["data"])); 18 | }); 19 | 20 | return posts; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/states/subreddits_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:redditify/models/genre.dart'; 3 | import 'package:redditify/utils/subreddits_list.dart'; 4 | 5 | class SubredditsState with ChangeNotifier { 6 | List _subreddits = subredditsList; 7 | String _selectedSubreddit; 8 | Genre _selectedGenre = Genre( 9 | asset: "assets/images/rock-music.jpg", 10 | title: "Rock Music", 11 | subreddits: []); 12 | String _sortBy = "new"; 13 | 14 | List get subreddits => List.from(_subreddits); 15 | String get selectedSubreddit => _selectedSubreddit; 16 | String get sortBy => _sortBy; 17 | Genre get selectedGenre => _selectedGenre; 18 | 19 | void selectSubreddit(String subreddit, String sortBy) { 20 | _selectedSubreddit = subreddit; 21 | _sortBy = sortBy; 22 | notifyListeners(); 23 | } 24 | 25 | void selectGenre(Genre genre) { 26 | _selectedGenre = genre; 27 | notifyListeners(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/presenters/player/songs_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/player_state.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | import 'package:redditify/widgets/song_tile.dart'; 6 | 7 | class SongsList extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return ListView.separated( 13 | separatorBuilder: (context, index) => Divider( 14 | color: mediumGreyColor, 15 | ), 16 | itemCount: state.playlist.songs.length, 17 | itemBuilder: (context, index) { 18 | return SongTile( 19 | song: state.playlist.songs[index], 20 | status: state.playlist.songs[index].status, 21 | index: index, 22 | ); 23 | }, 24 | ); 25 | }, 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_genres_grid.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/models/genre.dart'; 4 | import 'package:redditify/presenters/subreddits/subreddit_genre_card.dart'; 5 | import 'package:redditify/states/subreddits_state.dart'; 6 | 7 | class SubredditGenresGrid extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return GridView.count( 13 | crossAxisCount: 2, 14 | crossAxisSpacing: 5.0, 15 | mainAxisSpacing: 5.0, 16 | padding: EdgeInsets.all(5.0), 17 | children: [ 18 | for (Genre genre in state.subreddits) 19 | Card( 20 | child: SubredditGenreCard( 21 | genre: genre, 22 | ), 23 | ), 24 | ], 25 | ); 26 | }, 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/widgets/collapsed_player.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/presenters/player/current_song_title.dart'; 3 | import 'package:redditify/presenters/player/player_controls.dart'; 4 | import 'package:redditify/presenters/player/song_progression_bar.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class CollapsedPlayer extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Container( 11 | decoration: BoxDecoration( 12 | color: darkGreyColor, 13 | ), 14 | child: Column( 15 | children: [ 16 | SongProgressionBar(), 17 | Expanded( 18 | child: Row( 19 | children: [ 20 | CurrentSongTitle(), 21 | VerticalDivider( 22 | color: mediumGreyColor, 23 | thickness: 3.0, 24 | ), 25 | PlayerControls(), 26 | ], 27 | ), 28 | ), 29 | ], 30 | ), 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/widgets/playlist_panel.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/presenters/player/playlist_title.dart'; 3 | import 'package:redditify/presenters/player/songs_list.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | import 'package:redditify/widgets/collapsed_player.dart'; 6 | 7 | class PlaylistPanel extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Container( 11 | decoration: BoxDecoration( 12 | color: darkGreyColor, 13 | ), 14 | child: Column( 15 | children: [ 16 | // Filler container to save some space for drag down 17 | Container( 18 | height: 15.0, 19 | ), 20 | PlaylistTitle(), 21 | SizedBox( 22 | height: 10.0, 23 | ), 24 | Expanded( 25 | child: SongsList(), 26 | ), 27 | Container( 28 | child: CollapsedPlayer(), 29 | height: 75.0, 30 | ), 31 | ], 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.0' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.3.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | 13 | subprojects { 14 | project.configurations.all { 15 | resolutionStrategy.eachDependency { details -> 16 | if (details.requested.group == 'androidx.core' && 17 | !details.requested.name.contains('androidx')) { 18 | details.useVersion "1.0.1" 19 | } 20 | } 21 | } 22 | } 23 | } 24 | 25 | allprojects { 26 | repositories { 27 | google() 28 | jcenter() 29 | } 30 | } 31 | 32 | rootProject.buildDir = '../build' 33 | subprojects { 34 | project.buildDir = "${rootProject.buildDir}/${project.name}" 35 | } 36 | subprojects { 37 | project.evaluationDependsOn(':app') 38 | } 39 | 40 | task clean(type: Delete) { 41 | delete rootProject.buildDir 42 | } 43 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_selection_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/global_state.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | 6 | class SubredditSelectionButton extends StatelessWidget { 7 | final String subreddit; 8 | final bool isSelected; 9 | 10 | const SubredditSelectionButton({ 11 | Key key, 12 | this.subreddit, 13 | this.isSelected, 14 | }) : super(key: key); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Container( 19 | margin: EdgeInsetsDirectional.only(bottom: 3), 20 | child: RaisedButton( 21 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(35)), 22 | child: Text( 23 | "r/$subreddit", 24 | style: TextStyle(color: lightGreyColor), 25 | ), 26 | onPressed: () { 27 | Provider.of(context).selectSubreddit(subreddit); 28 | }, 29 | color: isSelected ? redditOrange : darkGreyColor, 30 | ), 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/presenters/posts/post_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/models/post.dart'; 3 | import 'package:redditify/presenters/posts/play_single_post_button.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | 6 | class PostTile extends StatelessWidget { 7 | final Post post; 8 | 9 | const PostTile({Key key, this.post}) : super(key: key); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Card( 14 | elevation: 3.0, 15 | color: darkGreyColor, 16 | child: Row( 17 | children: [ 18 | Expanded( 19 | child: Image.network(post.thumbnailUrl), 20 | flex: 2, 21 | ), 22 | SizedBox( 23 | width: 5.0, 24 | ), 25 | Expanded( 26 | flex: 4, 27 | child: Text( 28 | post.title, 29 | style: TextStyle(color: lightGreyColor), 30 | ), 31 | ), 32 | PlaySinglePostButton( 33 | post: post, 34 | ), 35 | ], 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/presenters/player/song_progression_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/player_state.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | 6 | class SongProgressionBar extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Consumer( 10 | builder: (context, state, _) { 11 | return LinearProgressIndicator( 12 | backgroundColor: mediumGreyColor, 13 | valueColor: AlwaysStoppedAnimation(blueColor), 14 | value: (state.currentSongPosition != null && 15 | state.currentSongMaxDuration != null && 16 | state.currentSongPosition.inMilliseconds > 0 && 17 | state.currentSongPosition.inMilliseconds < 18 | state.currentSongMaxDuration.inMilliseconds) 19 | ? (state.currentSongPosition.inMilliseconds / 20 | state.currentSongMaxDuration.inMilliseconds) 21 | : 0.0); 22 | }, 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/pages/subreddit_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:redditify/presenters/player/player_button_visibility.dart'; 3 | import 'package:redditify/presenters/posts/posts_list.dart'; 4 | import 'package:redditify/presenters/subreddits/subreddit_header.dart'; 5 | import 'package:redditify/presenters/visibility/go_back_button.dart'; 6 | 7 | class SubredditPage extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return SafeArea( 11 | child: Container( 12 | child: Column( 13 | children: [ 14 | Stack( 15 | overflow: Overflow.visible, 16 | children: [ 17 | SubredditHeader(), 18 | GoBackButton(), 19 | Positioned( 20 | child: PlayerButtonVisibility(), 21 | bottom: -10, 22 | right: 20, 23 | ), 24 | ], 25 | ), 26 | SizedBox( 27 | height: 12.0, 28 | ), 29 | PostsList(), 30 | ], 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/presenters/posts/play_single_post_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/models/post.dart'; 4 | import 'package:redditify/states/global_state.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class PlaySinglePostButton extends StatefulWidget { 8 | final Post post; 9 | 10 | const PlaySinglePostButton({ 11 | Key key, 12 | this.post, 13 | }) : super(key: key); 14 | 15 | @override 16 | _PlaySinglePostButtonState createState() => _PlaySinglePostButtonState(); 17 | } 18 | 19 | class _PlaySinglePostButtonState extends State { 20 | Post get _post => widget.post; 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Expanded( 25 | flex: 2, 26 | child: GestureDetector( 27 | child: Icon( 28 | // _playing ? Icons.pause_circle_outline : Icons.play_circle_outline), 29 | Icons.play_circle_outline, color: blueColor, 30 | ), 31 | onTap: () { 32 | Provider.of(context).playSong(_post); 33 | }, 34 | ), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:redditify/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/services/play_audio_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_exoplayer/audio_notification.dart'; 2 | import 'package:flutter_exoplayer/audioplayer.dart'; 3 | import 'package:redditify/models/playlist.dart'; 4 | import 'package:redditify/models/playlist_item.dart'; 5 | 6 | class PlayAudioService { 7 | AudioPlayer _audioPlayer = AudioPlayer(); 8 | 9 | AudioPlayer get audioPlayer => _audioPlayer; 10 | 11 | Future playAudio(PlaylistItem item) async { 12 | _audioPlayer.release(); 13 | await _audioPlayer.play( 14 | item.audioStreamUrl, 15 | playerMode: PlayerMode.FOREGROUND, 16 | respectAudioFocus: true, 17 | audioNotification: AudioNotification( 18 | smallIconFileName: "ic_launcher", 19 | title: item.title, 20 | largeIconUrl: item.thumbnailUrl, 21 | isLocal: false, 22 | ), 23 | ); 24 | } 25 | 26 | Future playSongsList(Playlist playlist) async { 27 | _audioPlayer.release(); 28 | _audioPlayer.playAll( 29 | playlist.streamUrls, 30 | audioNotifications: playlist.notifications, 31 | playerMode: PlayerMode.FOREGROUND, 32 | respectAudioFocus: true, 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_sort_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/global_state.dart'; 4 | import 'package:redditify/states/subreddits_state.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class SubredditSortButton extends StatelessWidget { 8 | final String sortBy; 9 | 10 | const SubredditSortButton({Key key, this.sortBy}) : super(key: key); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Consumer( 15 | builder: (context, state, _) { 16 | return GestureDetector( 17 | child: Chip( 18 | label: Text( 19 | sortBy, 20 | style: TextStyle( 21 | color: 22 | state.sortBy == sortBy ? lightGreyColor : redditOrange), 23 | ), 24 | backgroundColor: 25 | state.sortBy == sortBy ? redditOrange : lightGreyColor, 26 | ), 27 | onTap: () => Provider.of(context).selectSubreddit( 28 | state.selectedSubreddit, 29 | sortBy: sortBy, 30 | ), 31 | ); 32 | }, 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_genre_header.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/subreddits_state.dart'; 4 | 5 | class SubredditGenreHeader extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Consumer( 9 | builder: (context, state, _) { 10 | return Container( 11 | height: 150, 12 | decoration: BoxDecoration( 13 | image: DecorationImage( 14 | image: AssetImage(state.selectedGenre?.asset), 15 | fit: BoxFit.cover, 16 | ), 17 | ), 18 | child: Center( 19 | child: Text( 20 | state.selectedGenre?.title, 21 | style: TextStyle( 22 | fontSize: 24, 23 | fontWeight: FontWeight.bold, 24 | shadows: [ 25 | Shadow( 26 | offset: Offset(0.0, 0.0), 27 | blurRadius: 5.0, 28 | color: Color.fromARGB(255, 0, 0, 0), 29 | ), 30 | ], 31 | color: Colors.white, 32 | ), 33 | ), 34 | ), 35 | ); 36 | }, 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_genre_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/models/genre.dart'; 4 | import 'package:redditify/states/global_state.dart'; 5 | 6 | class SubredditGenreCard extends StatelessWidget { 7 | final Genre genre; 8 | 9 | const SubredditGenreCard({Key key, this.genre}) : super(key: key); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return GestureDetector( 14 | onTap: () { 15 | Provider.of(context).selectGenre(genre); 16 | }, 17 | child: Container( 18 | decoration: BoxDecoration( 19 | image: DecorationImage( 20 | image: AssetImage(genre.asset), fit: BoxFit.cover)), 21 | child: Center( 22 | child: Text( 23 | genre.title, 24 | style: TextStyle( 25 | fontSize: 18, 26 | fontWeight: FontWeight.bold, 27 | shadows: [ 28 | Shadow( 29 | offset: Offset(0.0, 0.0), 30 | blurRadius: 5.0, 31 | color: Color.fromARGB(255, 0, 0, 0), 32 | ), 33 | ], 34 | color: Colors.white, 35 | ), 36 | ), 37 | ), 38 | ), 39 | ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/presenters/player/current_song_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/player_state.dart'; 4 | import 'package:redditify/utils/colors.dart'; 5 | import 'package:sliding_up_panel/sliding_up_panel.dart'; 6 | 7 | class CurrentSongTitle extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return Expanded( 13 | flex: 8, 14 | child: GestureDetector( 15 | onTap: () { 16 | PanelController panelController = 17 | Provider.of(context, listen: false); 18 | if (panelController.isPanelOpen()) { 19 | panelController.close(); 20 | } else { 21 | panelController.open(); 22 | } 23 | }, 24 | child: Padding( 25 | padding: const EdgeInsets.all(8.0), 26 | child: Text( 27 | state.currentSongTitle ?? "No current song playing.", 28 | textAlign: TextAlign.center, 29 | style: TextStyle(color: lightGreyColor), 30 | ), 31 | ), 32 | ), 33 | ); 34 | }, 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/presenters/player/player_action_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/states/global_state.dart'; 4 | import 'package:redditify/states/player_state.dart'; 5 | import 'package:redditify/states/subreddits_state.dart'; 6 | import 'package:redditify/utils/colors.dart'; 7 | 8 | class PlayerActionButton extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Consumer(builder: (context, state, _) { 12 | return FloatingActionButton( 13 | backgroundColor: blueColor, 14 | child: state.isPlaying && 15 | state.playlist.title == 16 | Provider.of(context).selectedSubreddit 17 | ? Icon( 18 | Icons.stop, 19 | color: lightGreyColor, 20 | ) 21 | : Icon( 22 | Icons.playlist_play, 23 | color: lightGreyColor, 24 | ), 25 | onPressed: () => state.isPlaying && 26 | state.playlist.title == 27 | Provider.of(context).selectedSubreddit 28 | ? Provider.of(context).stopAudio() 29 | : Provider.of(context).playSongList(), 30 | ); 31 | }); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddits_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/models/genre.dart'; 4 | import 'package:redditify/presenters/subreddits/subreddit_selection_button.dart'; 5 | import 'package:redditify/states/subreddits_state.dart'; 6 | 7 | class SubredditsList extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return Expanded( 13 | child: ListView( 14 | children: [ 15 | for (Genre genre in state.subreddits) 16 | ExpansionTile( 17 | title: Center(child: Text(genre.title)), 18 | children: [ 19 | Wrap( 20 | alignment: WrapAlignment.center, 21 | spacing: 3.0, 22 | children: [ 23 | for (String subreddit in genre.subreddits) 24 | SubredditSelectionButton( 25 | subreddit: subreddit, 26 | isSelected: state.selectedSubreddit == subreddit, 27 | ) 28 | ], 29 | ), 30 | ], 31 | ) 32 | ], 33 | ), 34 | ); 35 | }, 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/widgets/song_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/models/playlist_item.dart'; 4 | import 'package:redditify/states/player_state.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class SongTile extends StatelessWidget { 8 | final PlaylistItem song; 9 | final PlaylistItemStatus status; 10 | final int index; 11 | 12 | const SongTile({ 13 | Key key, 14 | this.song, 15 | this.status, 16 | this.index, 17 | }) : super(key: key); 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | Color color; 22 | 23 | switch (status) { 24 | case PlaylistItemStatus.PENDING: 25 | color = lightGreyColor; 26 | break; 27 | case PlaylistItemStatus.PLAYING: 28 | color = redditOrange; 29 | break; 30 | case PlaylistItemStatus.PLAYED: 31 | color = mediumGreyColor; 32 | break; 33 | case PlaylistItemStatus.ERROR: 34 | color = Colors.red; 35 | break; 36 | default: 37 | print("Unrecognized status"); 38 | } 39 | 40 | return GestureDetector( 41 | onTap: () => Provider.of(context).jumpToSong(index), 42 | child: Container( 43 | margin: EdgeInsets.symmetric(horizontal: 6.0, vertical: 1.0), 44 | child: Text( 45 | song.title, 46 | style: TextStyle(color: color), 47 | ), 48 | ), 49 | ); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/pages/global_page.dart'; 4 | import 'package:redditify/states/global_state.dart'; 5 | import 'package:redditify/states/loading_state.dart'; 6 | import 'package:redditify/states/player_state.dart'; 7 | import 'package:redditify/states/posts_state.dart'; 8 | import 'package:redditify/states/subreddits_state.dart'; 9 | import 'package:redditify/utils/theme.dart'; 10 | 11 | void main() { 12 | runApp(MyApp()); 13 | } 14 | 15 | class MyApp extends StatelessWidget { 16 | final GlobalState _globalState = GlobalState(); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return MultiProvider( 21 | providers: [ 22 | ChangeNotifierProvider.value( 23 | value: _globalState, 24 | ), 25 | ChangeNotifierProvider.value( 26 | value: _globalState.subredditsState, 27 | ), 28 | ChangeNotifierProvider.value( 29 | value: _globalState.postsState, 30 | ), 31 | ChangeNotifierProvider.value( 32 | value: _globalState.playerState, 33 | ), 34 | ChangeNotifierProvider.value( 35 | value: _globalState.loadingState, 36 | ), 37 | ], 38 | child: MaterialApp( 39 | debugShowCheckedModeBanner: false, 40 | title: 'Music From Reddit', 41 | theme: appTheme, 42 | home: GlobalPage(), 43 | ), 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/presenters/player/player_bottom_sheet.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/presenters/player/current_song_title.dart'; 4 | import 'package:redditify/presenters/player/player_controls.dart'; 5 | import 'package:redditify/states/player_state.dart'; 6 | 7 | class PlayerBottomSheet extends StatefulWidget { 8 | @override 9 | _PlayerBottomSheetState createState() => _PlayerBottomSheetState(); 10 | } 11 | 12 | class _PlayerBottomSheetState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | return Consumer( 16 | builder: (context, state, _) { 17 | return Visibility( 18 | visible: state.isPlaying, 19 | child: Container( 20 | decoration: BoxDecoration( 21 | border: Border( 22 | top: BorderSide(width: 0.5, color: Colors.blueGrey), 23 | bottom: BorderSide(width: 0.3, color: Colors.blueGrey), 24 | ), 25 | ), 26 | height: 50.0, 27 | margin: EdgeInsets.symmetric(horizontal: 2.0), 28 | padding: EdgeInsets.symmetric(horizontal: 7.0), 29 | child: Row( 30 | children: [ 31 | CurrentSongTitle(), 32 | VerticalDivider( 33 | thickness: 3.0, 34 | ), 35 | PlayerControls(), 36 | ], 37 | ), 38 | ), 39 | ); 40 | }, 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | redditify 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_genre_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/presenters/subreddits/subreddit_genre_header.dart'; 4 | import 'package:redditify/presenters/subreddits/subreddit_selection_button.dart'; 5 | import 'package:redditify/presenters/visibility/go_back_button.dart'; 6 | import 'package:redditify/states/subreddits_state.dart'; 7 | 8 | class SubredditGenrePage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return SafeArea( 12 | child: Container( 13 | child: Column( 14 | children: [ 15 | Stack( 16 | children: [ 17 | SubredditGenreHeader(), 18 | GoBackButton(), 19 | ], 20 | ), 21 | Consumer( 22 | builder: (context, state, _) { 23 | return Expanded( 24 | child: ListView(children: [ 25 | Wrap( 26 | alignment: WrapAlignment.center, 27 | spacing: 3.0, 28 | children: [ 29 | for (String subreddit in state.selectedGenre.subreddits) 30 | SubredditSelectionButton( 31 | subreddit: subreddit, 32 | isSelected: state.selectedSubreddit == subreddit, 33 | ) 34 | ], 35 | ), 36 | ]), 37 | ); 38 | }, 39 | ) 40 | ], 41 | ), 42 | ), 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /lib/services/playlist_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:redditify/models/playlist.dart'; 5 | import 'package:redditify/models/playlist_item.dart'; 6 | import 'package:redditify/models/post.dart'; 7 | import 'package:youtube_explode_dart/youtube_explode_dart.dart' hide Playlist; 8 | 9 | class PlaylistService { 10 | final List posts; 11 | final String title; 12 | 13 | PlaylistService({ 14 | @required this.posts, 15 | @required this.title, 16 | }); 17 | 18 | StreamController streamController = StreamController(); 19 | 20 | Future createPlaylist() async { 21 | List _items = []; 22 | RegExp exp = RegExp( 23 | r"(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})"); 24 | for (var i = 0; i < posts.length; i++) { 25 | streamController.add(i + 1); 26 | String youtubeId = exp.firstMatch(posts[i].url).group(1); 27 | try { 28 | var yt = YoutubeExplode(); 29 | var video = await yt.videos.get(youtubeId); 30 | var manifest = await yt.videos.streamsClient.getManifest(youtubeId); 31 | var streamInfo = manifest.audioOnly.withHighestBitrate(); 32 | if (streamInfo.url != null) 33 | _items.add(PlaylistItem( 34 | title: video.title, 35 | audioStreamUrl: streamInfo.url.toString(), 36 | thumbnailUrl: posts[i].thumbnailUrl, 37 | )); 38 | } catch (e) { 39 | print("Couldn't add song ${posts[i].title}"); 40 | } 41 | } 42 | Playlist playlist = Playlist(title: title, songs: _items); 43 | 44 | return playlist; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /assets/images/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 10 | 14 | 15 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /lib/widgets/loading_indicator.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:redditify/states/loading_state.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class LoadingIndicator extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return Visibility( 13 | visible: state.isLoading, 14 | child: Center( 15 | child: Container( 16 | height: 150, 17 | width: 150, 18 | decoration: BoxDecoration( 19 | color: darkGreyColor, 20 | borderRadius: BorderRadius.all( 21 | Radius.circular(15.0), 22 | ), 23 | border: Border.all(color: mediumGreyColor, width: 2)), 24 | child: Column( 25 | mainAxisAlignment: MainAxisAlignment.spaceAround, 26 | children: [ 27 | SpinKitWave( 28 | type: SpinKitWaveType.start, 29 | duration: Duration(milliseconds: 1500), 30 | size: 50, 31 | color: redditOrange, 32 | ), 33 | Text( 34 | state.mainText, 35 | style: TextStyle(color: lightGreyColor), 36 | ), 37 | Text( 38 | state.subText, 39 | style: TextStyle(color: lightGreyColor), 40 | ) 41 | ], 42 | ), 43 | ), 44 | ), 45 | ); 46 | }, 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | .flutter-plugins-dependecies 32 | 33 | # Android related 34 | **/android/**/gradle-wrapper.jar 35 | **/android/.gradle 36 | **/android/captures/ 37 | **/android/gradlew 38 | **/android/gradlew.bat 39 | **/android/local.properties 40 | **/android/**/GeneratedPluginRegistrant.java 41 | 42 | # iOS/XCode related 43 | **/ios/**/*.mode1v3 44 | **/ios/**/*.mode2v3 45 | **/ios/**/*.moved-aside 46 | **/ios/**/*.pbxuser 47 | **/ios/**/*.perspectivev3 48 | **/ios/**/*sync/ 49 | **/ios/**/.sconsign.dblite 50 | **/ios/**/.tags* 51 | **/ios/**/.vagrant/ 52 | **/ios/**/DerivedData/ 53 | **/ios/**/Icon? 54 | **/ios/**/Pods/ 55 | **/ios/**/.symlinks/ 56 | **/ios/**/profile 57 | **/ios/**/xcuserdata 58 | **/ios/.generated/ 59 | **/ios/Flutter/App.framework 60 | **/ios/Flutter/Flutter.framework 61 | **/ios/Flutter/Generated.xcconfig 62 | **/ios/Flutter/app.flx 63 | **/ios/Flutter/app.zip 64 | **/ios/Flutter/flutter_assets/ 65 | **/ios/Flutter/flutter_export_environment.sh 66 | **/ios/ServiceDefinitions.json 67 | **/ios/Runner/GeneratedPluginRegistrant.* 68 | 69 | # Exceptions to above rules. 70 | !**/ios/**/default.mode1v3 71 | !**/ios/**/default.mode2v3 72 | !**/ios/**/default.pbxuser 73 | !**/ios/**/default.perspectivev3 74 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 75 | .flutter-plugins-dependencies 76 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Music From Reddit 2 | ![Logo](https://raw.githubusercontent.com/Gloumy/music-from-reddit/master/assets/images/logo.png) 3 | 4 | Listen to music from a large list of music subreddits 5 | 6 | ## Screenshots 7 | 8 | ![Home Screen](https://raw.githubusercontent.com/Gloumy/music-from-reddit/master/assets/screens/home_screen.png) 9 | ![Subreddits Screen](https://raw.githubusercontent.com/Gloumy/music-from-reddit/master/assets/screens/subreddits_screen.png) 10 | ![Playing Screen](https://raw.githubusercontent.com/Gloumy/music-from-reddit/master/assets/screens/playing_screen.png) 11 | 12 | ## How to run 13 | 14 | No additional configuration should be required, juste use `flutter run` or launch it via your IDE on an emulator or physical device. 15 | 16 | ## How does it work ? 17 | 1. Select your genre and then the subreddit you want to load from (Subreddits list copied from [r/music wiki](https://www.reddit.com/r/Music/wiki/musicsubreddits)) 18 | 2. The threads are loaded as a json simply via the r/subreddit.json url and filtered if the post have a youtube link 19 | 3. The youtube id is passed to the plugin YoutubeExtractor to get the audio stream url 20 | 4. The audio stream is played with AudioPlayers plugin 21 | 5. The user can enjoy a selection of music content curated by fellow redditors ! 22 | 23 | ## Current features 24 | - [x] Retrieve content from subreddits 25 | - [x] Play a single song (may not keep this one) 26 | - [x] Play a list of songs 27 | - [x] Basic player controls (play/pause/stop/previous/next) 28 | - [x] A proper and clean UI (at least to my linking it is !) 29 | 30 | ## Intended future features 31 | - [ ] Select a random subreddit 32 | - [ ] Random play 33 | - [ ] Combine multiple subreddits 34 | - [ ] A LOT of miscellaneous improvements 35 | 36 | ** Feel free to add constructive feedback and issues ! I'll try to keep working on it on my (somewhat limited) free time, and any help/contribution/ideas are very welcome !** -------------------------------------------------------------------------------- /lib/presenters/player/player_controls.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_exoplayer/audioplayer.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:redditify/states/player_state.dart'; 5 | import 'package:redditify/utils/colors.dart'; 6 | 7 | class PlayerControls extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return Expanded( 13 | flex: 4, 14 | child: Row( 15 | mainAxisAlignment: MainAxisAlignment.spaceAround, 16 | children: [ 17 | GestureDetector( 18 | child: Icon( 19 | Icons.skip_previous, 20 | color: state.canPlayPrevious ? blueColor : mediumGreyColor, 21 | ), 22 | onTap: () => state.playPreviousSong(), 23 | ), 24 | if (state.audioPlayerState == PlayerState.PAUSED || 25 | !state.isPlaying) 26 | GestureDetector( 27 | child: Icon( 28 | Icons.play_arrow, 29 | color: state.isPlaying ? blueColor : mediumGreyColor, 30 | ), 31 | onTap: () => state.resumeAudio(), 32 | ), 33 | if (state.audioPlayerState == PlayerState.PLAYING) 34 | GestureDetector( 35 | child: Icon( 36 | Icons.pause_circle_outline, 37 | color: blueColor, 38 | ), 39 | onTap: () => state.pauseAudio(), 40 | ), 41 | GestureDetector( 42 | child: Icon(Icons.stop, 43 | color: state.isPlaying ? blueColor : mediumGreyColor), 44 | onTap: () => state.stopAudio(), 45 | ), 46 | GestureDetector( 47 | child: Icon( 48 | Icons.skip_next, 49 | color: state.canPlayNext ? blueColor : mediumGreyColor, 50 | ), 51 | onTap: () => state.playNextSong(), 52 | ), 53 | ], 54 | ), 55 | ); 56 | }, 57 | ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "dev.cornet.redditify" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /lib/presenters/subreddits/subreddit_header.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/presenters/posts/posts_count.dart'; 4 | import 'package:redditify/presenters/subreddits/subreddit_sort_wrap.dart'; 5 | import 'package:redditify/states/subreddits_state.dart'; 6 | 7 | class SubredditHeader extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return Consumer( 11 | builder: (context, state, _) { 12 | return Container( 13 | height: 150, 14 | decoration: BoxDecoration( 15 | image: DecorationImage( 16 | image: AssetImage(state.selectedGenre?.asset), 17 | fit: BoxFit.cover, 18 | ), 19 | ), 20 | child: Center( 21 | child: Column( 22 | mainAxisAlignment: MainAxisAlignment.center, 23 | children: [ 24 | Text( 25 | state.selectedGenre?.title, 26 | style: TextStyle( 27 | fontSize: 24, 28 | fontWeight: FontWeight.bold, 29 | shadows: [ 30 | Shadow( 31 | offset: Offset(0.0, 0.0), 32 | blurRadius: 5.0, 33 | color: Color.fromARGB(255, 0, 0, 0), 34 | ), 35 | ], 36 | color: Colors.white, 37 | ), 38 | ), 39 | Text( 40 | "r/${state.selectedSubreddit}", 41 | style: TextStyle( 42 | fontSize: 20, 43 | fontWeight: FontWeight.bold, 44 | shadows: [ 45 | Shadow( 46 | offset: Offset(0.0, 0.0), 47 | blurRadius: 5.0, 48 | color: Color.fromARGB(255, 0, 0, 0), 49 | ), 50 | ], 51 | color: Colors.white, 52 | ), 53 | ), 54 | SubredditSortWrap(), 55 | PostsCount(), 56 | ], 57 | ), 58 | ), 59 | ); 60 | }, 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/pages/global_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:redditify/pages/home_page.dart'; 4 | import 'package:redditify/pages/subreddit_page.dart'; 5 | import 'package:redditify/presenters/subreddits/subreddit_genre_page.dart'; 6 | import 'package:redditify/states/global_state.dart'; 7 | import 'package:redditify/widgets/collapsed_player.dart'; 8 | import 'package:redditify/widgets/loading_indicator.dart'; 9 | import 'package:redditify/widgets/playlist_panel.dart'; 10 | import 'package:sliding_up_panel/sliding_up_panel.dart'; 11 | 12 | class GlobalPage extends StatelessWidget { 13 | final PanelController _panelController = PanelController(); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return WillPopScope( 18 | onWillPop: () async { 19 | if (_panelController.isPanelOpen()) { 20 | _panelController.close(); 21 | } else { 22 | Provider.of(context).goBack(); 23 | } 24 | 25 | return false; 26 | }, 27 | child: Scaffold( 28 | body: Provider.value( 29 | value: _panelController, 30 | child: SlidingUpPanel( 31 | minHeight: 75, 32 | body: Container( 33 | height: double.maxFinite, 34 | width: double.maxFinite, 35 | child: Consumer( 36 | builder: (context, state, _) { 37 | return Stack( 38 | children: [ 39 | IndexedStack( 40 | index: state.visibleIndex, 41 | children: [ 42 | HomePage(), 43 | SubredditGenrePage(), 44 | SubredditPage(), 45 | ], 46 | ), 47 | LoadingIndicator(), 48 | ], 49 | ); 50 | }, 51 | ), 52 | padding: EdgeInsets.only(bottom: 75), 53 | ), 54 | panel: PlaylistPanel(), 55 | collapsed: CollapsedPlayer(), 56 | controller: _panelController, 57 | backdropOpacity: 0.5, 58 | backdropEnabled: true, 59 | ), 60 | ), 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: redditify 2 | description: Get music from subreddits 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.1.0+1 15 | 16 | environment: 17 | sdk: ">=2.2.2 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | dio: ^3.0.10 23 | provider: ^3.1.0 24 | sailor: ^0.5.0 25 | 26 | # The following adds the Cupertino Icons font to your application. 27 | # Use with the CupertinoIcons class for iOS style icons. 28 | cupertino_icons: ^0.1.2 29 | youtube_extractor: ^1.0.4 # Obsolete, to be replaced by youtube_explode_dart 30 | youtube_explode_dart: ^1.4.2 31 | sliding_up_panel: ^0.3.6 32 | flutter_exoplayer: ^0.5.4 33 | flutter_spinkit: ^4.1.0 34 | 35 | dev_dependencies: 36 | flutter_test: 37 | sdk: flutter 38 | 39 | 40 | # For information on the generic Dart part of this file, see the 41 | # following page: https://dart.dev/tools/pub/pubspec 42 | 43 | # The following section is specific to Flutter. 44 | flutter: 45 | 46 | # The following line ensures that the Material Icons font is 47 | # included with your application, so that you can use the icons in 48 | # the material Icons class. 49 | uses-material-design: true 50 | 51 | # To add assets to your application, add an assets section, like this: 52 | assets: 53 | - assets/images/ 54 | # - images/a_dot_ham.jpeg 55 | 56 | # An image asset can refer to one or more resolution-specific "variants", see 57 | # https://flutter.dev/assets-and-images/#resolution-aware. 58 | 59 | # For details regarding adding assets from package dependencies, see 60 | # https://flutter.dev/assets-and-images/#from-packages 61 | 62 | # To add custom fonts to your application, add a fonts section here, 63 | # in this "flutter" section. Each entry in this list should have a 64 | # "family" key with the font family name, and a "fonts" key with a 65 | # list giving the asset and other descriptors for the font. For 66 | # example: 67 | # fonts: 68 | # - family: Schyler 69 | # fonts: 70 | # - asset: fonts/Schyler-Regular.ttf 71 | # - asset: fonts/Schyler-Italic.ttf 72 | # style: italic 73 | # - family: Trajan Pro 74 | # fonts: 75 | # - asset: fonts/TrajanPro.ttf 76 | # - asset: fonts/TrajanPro_Bold.ttf 77 | # weight: 700 78 | # 79 | # For details regarding fonts from package dependencies, 80 | # see https://flutter.dev/custom-fonts/#from-packages 81 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/states/global_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:redditify/models/genre.dart'; 3 | import 'package:redditify/models/playlist.dart'; 4 | import 'package:redditify/models/post.dart'; 5 | import 'package:redditify/models/visible_item.dart'; 6 | import 'package:redditify/services/playlist_service.dart'; 7 | import 'package:redditify/states/loading_state.dart'; 8 | import 'package:redditify/states/player_state.dart'; 9 | import 'package:redditify/states/posts_state.dart'; 10 | import 'package:redditify/states/subreddits_state.dart'; 11 | 12 | class GlobalState with ChangeNotifier { 13 | PostsState _postsState; 14 | SubredditsState _subredditsState; 15 | MyPlayerState _playerState; 16 | LoadingState _loadingState; 17 | int _visibleIndex = 0; 18 | 19 | PostsState get postsState => _postsState; 20 | SubredditsState get subredditsState => _subredditsState; 21 | MyPlayerState get playerState => _playerState; 22 | LoadingState get loadingState => _loadingState; 23 | int get visibleIndex => _visibleIndex; 24 | 25 | GlobalState() { 26 | _initializeStates(); 27 | } 28 | 29 | void _initializeStates() { 30 | _postsState = PostsState(); 31 | _subredditsState = SubredditsState(); 32 | _playerState = MyPlayerState(); 33 | _loadingState = LoadingState(); 34 | } 35 | 36 | void selectSubreddit(String subreddit, {String sortBy = "new"}) async { 37 | _subredditsState.selectSubreddit(subreddit, sortBy); 38 | _loadingState.setBusy(true, mainText: "Fetching threads .."); 39 | await _postsState.retrievePosts(subreddit, sortBy); 40 | _loadingState.setBusy(false); 41 | setVisibleIndex(VisibleItem.SubredditPage); 42 | notifyListeners(); 43 | } 44 | 45 | void playSong(Post post) async { 46 | _loadingState.setBusy(true, mainText: "Creating item .."); 47 | PlaylistService _playlistService = PlaylistService( 48 | title: _subredditsState.selectedSubreddit, posts: [post]); 49 | Playlist playlist = await _playlistService.createPlaylist(); 50 | _loadingState.setBusy(false); 51 | await _playerState.playSong(playlist.songs.first); 52 | } 53 | 54 | void playSongList() async { 55 | _loadingState.setBusy(true, mainText: "Creating playlist .."); 56 | PlaylistService _playlistService = PlaylistService( 57 | title: _subredditsState.selectedSubreddit, 58 | posts: List.from(postsState.posts)); 59 | Stream stream = _playlistService.streamController.stream; 60 | stream.listen((int value) { 61 | _loadingState.setBusy(true, 62 | mainText: "Creating playlist ..", 63 | subText: "${value.toString()}/${postsState.postsLength}"); 64 | }); 65 | Playlist playlist = await _playlistService.createPlaylist(); 66 | _loadingState.setBusy(false); 67 | playerState.playSongList(playlist); 68 | } 69 | 70 | void stopAudio() async { 71 | _playerState.stopAudio(); 72 | } 73 | 74 | void setVisibleIndex(VisibleItem item) { 75 | _visibleIndex = item.index; 76 | notifyListeners(); 77 | } 78 | 79 | void goBack() { 80 | if (_visibleIndex > 0) { 81 | _visibleIndex--; 82 | notifyListeners(); 83 | } 84 | } 85 | 86 | void selectGenre(Genre genre) { 87 | _subredditsState.selectGenre(genre); 88 | setVisibleIndex(VisibleItem.SubredditGenrePage); 89 | notifyListeners(); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/states/player_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_exoplayer/audio_notification.dart'; 2 | import 'package:flutter_exoplayer/audioplayer.dart'; 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:redditify/models/playlist.dart'; 5 | import 'package:redditify/models/playlist_item.dart'; 6 | import 'package:redditify/services/play_audio_service.dart'; 7 | 8 | class MyPlayerState with ChangeNotifier { 9 | final PlayAudioService _playAudioService = PlayAudioService(); 10 | bool _isPlaying = false; 11 | Playlist _playlist = Playlist.empty(); 12 | int _currentSongIndex; 13 | PlayerState _audioPlayerState; 14 | String _currentSongTitle; 15 | Duration _currentSongMaxDuration; 16 | Duration _currentSongPosition; 17 | 18 | PlayAudioService get playAudioService => _playAudioService; 19 | bool get isPlaying => _isPlaying; 20 | Playlist get playlist => _playlist; 21 | int get currentSongIndex => _currentSongIndex; 22 | PlayerState get audioPlayerState => _audioPlayerState; 23 | String get currentSongTitle => _currentSongTitle; 24 | Duration get currentSongMaxDuration => _currentSongMaxDuration; 25 | Duration get currentSongPosition => _currentSongPosition; 26 | 27 | bool get canPlayPrevious => 28 | _playlist.songs.isNotEmpty && _currentSongIndex > 0; 29 | bool get canPlayNext => 30 | _playlist.songs.isNotEmpty && _currentSongIndex < _playlist.songs.length; 31 | 32 | MyPlayerState() { 33 | _playAudioService.audioPlayer.onPlayerStateChanged 34 | .listen((PlayerState state) { 35 | _audioPlayerState = state; 36 | notifyListeners(); 37 | }); 38 | _playAudioService.audioPlayer.onDurationChanged.listen((Duration duration) { 39 | _currentSongMaxDuration = duration; 40 | notifyListeners(); 41 | }); 42 | _playAudioService.audioPlayer.onAudioPositionChanged 43 | .listen((Duration position) { 44 | _currentSongPosition = position; 45 | notifyListeners(); 46 | }); 47 | _playAudioService.audioPlayer.onCurrentAudioIndexChanged 48 | .listen((int index) { 49 | _currentSongIndex = index; 50 | _currentSongTitle = _playlist.songs[index].title; 51 | if (index > 0) 52 | _playlist.songs.sublist(0, index).forEach((s) { 53 | if (s.status != PlaylistItemStatus.ERROR) 54 | s.status = PlaylistItemStatus.PLAYED; 55 | }); 56 | _playlist.songs[index].status = PlaylistItemStatus.PLAYING; 57 | if (index <= _playlist.songs.length) 58 | _playlist.songs 59 | .sublist(index + 1) 60 | .forEach((s) => s.status = PlaylistItemStatus.PENDING); 61 | notifyListeners(); 62 | }); 63 | _playAudioService.audioPlayer.onPlayerError.listen((String error) { 64 | _playlist.songs[_currentSongIndex].status = PlaylistItemStatus.ERROR; 65 | print("ERROR : $error"); 66 | playNextSong(); 67 | }); 68 | _playAudioService.audioPlayer.onNotificationActionCallback 69 | .listen((NotificationActionName notificationAction) { 70 | switch (notificationAction) { 71 | case NotificationActionName.PAUSE: 72 | pauseAudio(); 73 | break; 74 | default: 75 | } 76 | }); 77 | } 78 | 79 | Future playSong(PlaylistItem item) async { 80 | _currentSongTitle = item.title; 81 | _isPlaying = true; 82 | notifyListeners(); 83 | 84 | _playAudioService.playAudio(item); 85 | } 86 | 87 | Future playSongList(Playlist playlist) async { 88 | _playlist = playlist; 89 | _currentSongIndex = 0; 90 | _currentSongTitle = _playlist.songs[_currentSongIndex].title; 91 | _playAudioService.playSongsList(playlist); 92 | _isPlaying = true; 93 | notifyListeners(); 94 | } 95 | 96 | Future stopAudio() async { 97 | _playAudioService.audioPlayer.release(); 98 | _currentSongIndex = 0; 99 | _currentSongTitle = null; 100 | _currentSongMaxDuration = null; 101 | _currentSongPosition = null; 102 | _isPlaying = false; 103 | notifyListeners(); 104 | } 105 | 106 | Future playNextSong() async { 107 | if (canPlayNext) { 108 | _playAudioService.audioPlayer.next(); 109 | } 110 | } 111 | 112 | Future playPreviousSong() async { 113 | if (canPlayPrevious) { 114 | _playAudioService.audioPlayer.previous(); 115 | } 116 | } 117 | 118 | Future pauseAudio() async { 119 | _playAudioService.audioPlayer.pause(); 120 | } 121 | 122 | Future resumeAudio() async { 123 | _playAudioService.audioPlayer.resume(); 124 | } 125 | 126 | Future jumpToSong(int index) async { 127 | _playAudioService.audioPlayer.seekIndex(index); 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.13" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.6.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.1" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.0.0" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.3" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.12" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.4" 60 | csslib: 61 | dependency: transitive 62 | description: 63 | name: csslib 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.16.2" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.2" 74 | dio: 75 | dependency: "direct main" 76 | description: 77 | name: dio 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "3.0.10" 81 | equatable: 82 | dependency: transitive 83 | description: 84 | name: equatable 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.2.3" 88 | flutter: 89 | dependency: "direct main" 90 | description: flutter 91 | source: sdk 92 | version: "0.0.0" 93 | flutter_exoplayer: 94 | dependency: "direct main" 95 | description: 96 | name: flutter_exoplayer 97 | url: "https://pub.dartlang.org" 98 | source: hosted 99 | version: "0.5.4" 100 | flutter_spinkit: 101 | dependency: "direct main" 102 | description: 103 | name: flutter_spinkit 104 | url: "https://pub.dartlang.org" 105 | source: hosted 106 | version: "4.1.0" 107 | flutter_test: 108 | dependency: "direct dev" 109 | description: flutter 110 | source: sdk 111 | version: "0.0.0" 112 | html: 113 | dependency: transitive 114 | description: 115 | name: html 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.14.0+3" 119 | http: 120 | dependency: transitive 121 | description: 122 | name: http 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.12.2" 126 | http_parser: 127 | dependency: transitive 128 | description: 129 | name: http_parser 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "3.1.3" 133 | image: 134 | dependency: transitive 135 | description: 136 | name: image 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "2.1.12" 140 | matcher: 141 | dependency: transitive 142 | description: 143 | name: matcher 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.12.6" 147 | meta: 148 | dependency: transitive 149 | description: 150 | name: meta 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.1.8" 154 | path: 155 | dependency: transitive 156 | description: 157 | name: path 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "1.6.4" 161 | pedantic: 162 | dependency: transitive 163 | description: 164 | name: pedantic 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "1.8.0+1" 168 | petitparser: 169 | dependency: transitive 170 | description: 171 | name: petitparser 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "2.4.0" 175 | provider: 176 | dependency: "direct main" 177 | description: 178 | name: provider 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "3.1.0" 182 | quiver: 183 | dependency: transitive 184 | description: 185 | name: quiver 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "2.1.3" 189 | sailor: 190 | dependency: "direct main" 191 | description: 192 | name: sailor 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "0.5.0" 196 | sky_engine: 197 | dependency: transitive 198 | description: flutter 199 | source: sdk 200 | version: "0.0.99" 201 | sliding_up_panel: 202 | dependency: "direct main" 203 | description: 204 | name: sliding_up_panel 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "0.3.6" 208 | source_span: 209 | dependency: transitive 210 | description: 211 | name: source_span 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.7.0" 215 | stack_trace: 216 | dependency: transitive 217 | description: 218 | name: stack_trace 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "1.9.3" 222 | stream_channel: 223 | dependency: transitive 224 | description: 225 | name: stream_channel 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "2.0.0" 229 | string_scanner: 230 | dependency: transitive 231 | description: 232 | name: string_scanner 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.0.5" 236 | term_glyph: 237 | dependency: transitive 238 | description: 239 | name: term_glyph 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.1.0" 243 | test_api: 244 | dependency: transitive 245 | description: 246 | name: test_api 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "0.2.15" 250 | typed_data: 251 | dependency: transitive 252 | description: 253 | name: typed_data 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "1.1.6" 257 | uuid: 258 | dependency: transitive 259 | description: 260 | name: uuid 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "2.0.2" 264 | vector_math: 265 | dependency: transitive 266 | description: 267 | name: vector_math 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.0.8" 271 | xml: 272 | dependency: transitive 273 | description: 274 | name: xml 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "3.6.1" 278 | youtube_explode_dart: 279 | dependency: "direct main" 280 | description: 281 | name: youtube_explode_dart 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "1.4.2" 285 | youtube_extractor: 286 | dependency: "direct main" 287 | description: 288 | name: youtube_extractor 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.0.4" 292 | sdks: 293 | dart: ">=2.6.0 <3.0.0" 294 | flutter: ">=0.1.4 <2.0.0" 295 | -------------------------------------------------------------------------------- /lib/utils/subreddits_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:redditify/models/genre.dart'; 2 | 3 | List subredditsList = [ 4 | Genre( 5 | title: "Classical music", 6 | asset: "assets/images/classical-music.jpg", 7 | subreddits: [ 8 | "composer", 9 | "baroque", 10 | "classicalmusic", 11 | "contemporary", 12 | "concertband", 13 | "choralmusic", 14 | "ChamberMusic", 15 | "EarlyMusic", 16 | "earlymusicalnotation", 17 | "ElitistClassical", 18 | "icm", 19 | "Opera", 20 | "orchestra" 21 | ], 22 | ), 23 | Genre( 24 | title: "Electronic music", 25 | asset: "assets/images/electronic-music.jpg", 26 | subreddits: [ 27 | "acidhouse", 28 | "ambientmusic", 29 | "AStateOfTrance", 30 | "AtmosphericDnB", 31 | "BigBeat", 32 | "boogiemusic ", 33 | "breakbeat", 34 | "breakcore", 35 | "chicagohouse", 36 | "chillout", 37 | "Chipbreak", 38 | "Chiptunes", 39 | "complextro", 40 | "cxd ", 41 | "darkstep", 42 | "deephouse", 43 | "DnB", 44 | "DubStep", 45 | "EDM", 46 | "EBM ", 47 | "electronicdancemusic", 48 | "ElectronicJazz", 49 | "ElectronicBlues", 50 | "electrohiphop", 51 | "electrohouse", 52 | "electronicmagic", 53 | "ElectronicMusic", 54 | "electropop", 55 | "electroswing", 56 | "ExperimentalMusic", 57 | "fidget", 58 | "filth", 59 | "frenchelectro", 60 | "frenchhouse", 61 | "funkhouse", 62 | "fusiondancemusic", 63 | "futurebeats", 64 | "FutureFunkAirlines", 65 | "FutureGarage", 66 | "futuresynth", 67 | "gabber", 68 | "glitch", 69 | "glitchop", 70 | "Grime", 71 | "happyhardcore", 72 | "hardhouse", 73 | "hardstyle", 74 | "house", 75 | "idm", 76 | "industrialmusic", 77 | "ItaloDisco", 78 | "latinhouse", 79 | "LiquidDubstep", 80 | "mashups", 81 | "melodichouse", 82 | "minimal", 83 | "mixes", 84 | "moombahcore", 85 | "nightstep", 86 | "OldskoolRave ", 87 | "Outrun", 88 | "theOverload ", 89 | "partymusic", 90 | "plunderphonics", 91 | "psybient", 92 | "PsyBreaks", 93 | "psytrance", 94 | "purplemusic", 95 | "raggajungle", 96 | "RealDubstep", 97 | "skweee", 98 | "swinghouse", 99 | "tech_house", 100 | "Techno", 101 | "Trance", 102 | "tranceandbass ", 103 | "trap", 104 | "tribalbeats", 105 | "TropicalHouse", 106 | "ukfunky", 107 | "witchhouse", 108 | "wuuB" 109 | ], 110 | ), 111 | Genre( 112 | title: "Rock/Metal", 113 | asset: "assets/images/rock-music.jpg", 114 | subreddits: [ 115 | "80sHardcorePunk", 116 | "90sAlternative", 117 | "90sPunk", 118 | "90sRock", 119 | "AlternativeRock", 120 | "AltCountry", 121 | "AORMelodic", 122 | "ausmetal ", 123 | "BlackMetal", 124 | "bluegrass", 125 | "Blues", 126 | "bluesrock", 127 | "Boneyard ", 128 | "CanadianClassicRock", 129 | "CanadianMusic", 130 | "ClassicRock", 131 | "country", 132 | "Christcore", 133 | "crunkcore", 134 | "deathcore", 135 | "deathmetal", 136 | "Djent", 137 | "DoomMetal", 138 | "Drone", 139 | "Emo", 140 | "EmoScreamo", 141 | "epicmetal", 142 | "flocked ", 143 | "folk", 144 | "folkmetal", 145 | "folkpunk", 146 | "folkrock", 147 | "folkunknown", 148 | "GaragePunk", 149 | "GothicMetal", 150 | "Grunge", 151 | "hardcore", 152 | "HardRock", 153 | "horrorpunk ", 154 | "indie_rock", 155 | "jrock", 156 | "krautrock", 157 | "LadiesofMetal", 158 | "MathRock", 159 | "melodicdeathmetal", 160 | "MelodicMetal", 161 | "MetalNews", 162 | "Metalmusic", 163 | "metal", 164 | "metalcore", 165 | "ModernRockMusic", 166 | "monsterfuzz", 167 | "neopsychedelia", 168 | "NewWave", 169 | "noiserock", 170 | "numetal", 171 | "pianorock", 172 | "poppunkers", 173 | "PostHardcore", 174 | "PostRock", 175 | "powermetal", 176 | "powerpop", 177 | "ProgMetal", 178 | "progrockmusic", 179 | "PsychedelicRock", 180 | "punk", 181 | "Punkskahardcore", 182 | "Punk_Rock", 183 | "raprock ", 184 | "Rock", 185 | "shoegaze", 186 | "stonerrock", 187 | "symphonicblackmetal", 188 | "symphonicmetal", 189 | "synthrock", 190 | "ThrowbackCore", 191 | "truethrash", 192 | "Truemetal", 193 | "OutlawCountry", 194 | "WomenRock" 195 | ], 196 | ), 197 | Genre( 198 | title: "Hip-Hop", 199 | asset: "assets/images/hip-hop-music.jpg", 200 | subreddits: [ 201 | "80sHipHop", 202 | "90sHipHop", 203 | "altrap", 204 | "asianrap", 205 | "backpacker", 206 | "backspin", 207 | "BayRap", 208 | "ChapHop", 209 | "ChiefKeef ", 210 | "DrillandBop", 211 | "Emo_Trap", 212 | "Gfunk", 213 | "hiphopheads", 214 | "hiphopheadsnorthwest", 215 | "hiphop101", 216 | "MemphisRap", 217 | "NYrap", 218 | "Rap", 219 | "raprock ", 220 | "rapverses", 221 | "rhymesandbeats", 222 | "trapmuzik", 223 | "ukhiphopheads", 224 | "undergroundchicago", 225 | "LofiHipHop" 226 | ], 227 | ), 228 | Genre( 229 | title: "Decades", 230 | asset: "assets/images/decades-music.jpg", 231 | subreddits: [ 232 | "2010smusic", 233 | "2000smusic", 234 | "90sMusic", 235 | "80sremixes", 236 | "80sMusic", 237 | "70sMusic", 238 | "60sMusic", 239 | "50sMusic" 240 | ], 241 | ), 242 | Genre( 243 | title: "By country/culture", 244 | asset: "assets/images/world-music.jpg", 245 | subreddits: [ 246 | "AfricanMusic", 247 | "afrobeat", 248 | "balkanbrass", 249 | "balkanmusic", 250 | "brazilianmusic", 251 | "britpop", 252 | "CroatianMusic", 253 | "Flamenco", 254 | "Irishmusic", 255 | "ItalianMusic", 256 | "jpop ", 257 | "KoreanRock", 258 | "kpop ", 259 | "RoMusic ", 260 | "spop ", 261 | "somluso ", 262 | "UKbands", 263 | "WorldMusic" 264 | ], 265 | ), 266 | Genre( 267 | title: "Other", 268 | asset: "assets/images/other-music.jpg", 269 | subreddits: [ 270 | "70s", 271 | "Acappella", 272 | "AcousticCovers", 273 | "ambientfolk", 274 | "animemusic", 275 | "BestOfDisney", 276 | "boomswing", 277 | "bossanova", 278 | "carmusic", 279 | "concerts", 280 | "chillmusic", 281 | "cpop", 282 | "Complextro", 283 | "dembow", 284 | "disco", 285 | "DreamPop", 286 | "dub", 287 | "Elephant6", 288 | "ETIMusic ", 289 | "Exotica", 290 | "FilmMusic", 291 | "FunkSouMusic", 292 | "gamemusic", 293 | "GamesMusicMixMash", 294 | "GunslingerMusic", 295 | "GypsyJazz", 296 | "IndieFolk", 297 | "jambands", 298 | "jazz", 299 | "JazzFusion", 300 | "JazzInfluence", 301 | "listentoconcerts", 302 | "klezmer", 303 | "lt10k ", 304 | "MedievalMusic", 305 | "MelancholyMusic", 306 | "minimalism_music", 307 | "motown", 308 | "MusicForConcentration", 309 | "muzyka", 310 | "NuDisco", 311 | "oldiemusic", 312 | "OldiesMusic ", 313 | "pianocovers", 314 | "PoptoRock", 315 | "QuietStorm", 316 | "rainymood", 317 | "recordstorefinds", 318 | "reggae", 319 | "remixxd ", 320 | "RetroMusic", 321 | "rnb", 322 | "rootsmusic", 323 | "SalsaMusic", 324 | "Ska", 325 | "Soca ", 326 | "songbooks", 327 | "Soulies", 328 | "SoulDivas", 329 | "SoundsVintage", 330 | "SpaceMusic", 331 | "SurfPunk", 332 | "swing", 333 | "Tango", 334 | "TheRealBookVideos", 335 | "TouhouMusic", 336 | "TraditionalMusic", 337 | "treemusic", 338 | "triphop", 339 | "vaporwave", 340 | "VintageObscura ", 341 | "vocaloid" 342 | ], 343 | ) 344 | ]; 345 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXCopyFilesBuildPhase section */ 24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 25 | isa = PBXCopyFilesBuildPhase; 26 | buildActionMask = 2147483647; 27 | dstPath = ""; 28 | dstSubfolderSpec = 10; 29 | files = ( 30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 32 | ); 33 | name = "Embed Frameworks"; 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXCopyFilesBuildPhase section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 9740EEB11CF90186004384FC /* Flutter */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 3B80C3931E831B6300D905FE /* App.framework */, 73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 97C146E51CF9000F007C117D = { 83 | isa = PBXGroup; 84 | children = ( 85 | 9740EEB11CF90186004384FC /* Flutter */, 86 | 97C146F01CF9000F007C117D /* Runner */, 87 | 97C146EF1CF9000F007C117D /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | 97C146EF1CF9000F007C117D /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 97C146EE1CF9000F007C117D /* Runner.app */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 97C146F01CF9000F007C117D /* Runner */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 105 | 97C147021CF9000F007C117D /* Info.plist */, 106 | 97C146F11CF9000F007C117D /* Supporting Files */, 107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 111 | ); 112 | path = Runner; 113 | sourceTree = ""; 114 | }; 115 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 97C146ED1CF9000F007C117D /* Runner */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 128 | buildPhases = ( 129 | 9740EEB61CF901F6004384FC /* Run Script */, 130 | 97C146EA1CF9000F007C117D /* Sources */, 131 | 97C146EB1CF9000F007C117D /* Frameworks */, 132 | 97C146EC1CF9000F007C117D /* Resources */, 133 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 135 | ); 136 | buildRules = ( 137 | ); 138 | dependencies = ( 139 | ); 140 | name = Runner; 141 | productName = Runner; 142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 143 | productType = "com.apple.product-type.application"; 144 | }; 145 | /* End PBXNativeTarget section */ 146 | 147 | /* Begin PBXProject section */ 148 | 97C146E61CF9000F007C117D /* Project object */ = { 149 | isa = PBXProject; 150 | attributes = { 151 | LastUpgradeCheck = 1020; 152 | ORGANIZATIONNAME = "The Chromium Authors"; 153 | TargetAttributes = { 154 | 97C146ED1CF9000F007C117D = { 155 | CreatedOnToolsVersion = 7.3.1; 156 | LastSwiftMigration = 0910; 157 | }; 158 | }; 159 | }; 160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 161 | compatibilityVersion = "Xcode 3.2"; 162 | developmentRegion = en; 163 | hasScannedForEncodings = 0; 164 | knownRegions = ( 165 | en, 166 | Base, 167 | ); 168 | mainGroup = 97C146E51CF9000F007C117D; 169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 170 | projectDirPath = ""; 171 | projectRoot = ""; 172 | targets = ( 173 | 97C146ED1CF9000F007C117D /* Runner */, 174 | ); 175 | }; 176 | /* End PBXProject section */ 177 | 178 | /* Begin PBXResourcesBuildPhase section */ 179 | 97C146EC1CF9000F007C117D /* Resources */ = { 180 | isa = PBXResourcesBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | }; 191 | /* End PBXResourcesBuildPhase section */ 192 | 193 | /* Begin PBXShellScriptBuildPhase section */ 194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 195 | isa = PBXShellScriptBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | inputPaths = ( 200 | ); 201 | name = "Thin Binary"; 202 | outputPaths = ( 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 207 | }; 208 | 9740EEB61CF901F6004384FC /* Run Script */ = { 209 | isa = PBXShellScriptBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | inputPaths = ( 214 | ); 215 | name = "Run Script"; 216 | outputPaths = ( 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | shellPath = /bin/sh; 220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 221 | }; 222 | /* End PBXShellScriptBuildPhase section */ 223 | 224 | /* Begin PBXSourcesBuildPhase section */ 225 | 97C146EA1CF9000F007C117D /* Sources */ = { 226 | isa = PBXSourcesBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | /* End PBXSourcesBuildPhase section */ 235 | 236 | /* Begin PBXVariantGroup section */ 237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 238 | isa = PBXVariantGroup; 239 | children = ( 240 | 97C146FB1CF9000F007C117D /* Base */, 241 | ); 242 | name = Main.storyboard; 243 | sourceTree = ""; 244 | }; 245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 97C147001CF9000F007C117D /* Base */, 249 | ); 250 | name = LaunchScreen.storyboard; 251 | sourceTree = ""; 252 | }; 253 | /* End PBXVariantGroup section */ 254 | 255 | /* Begin XCBuildConfiguration section */ 256 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 257 | isa = XCBuildConfiguration; 258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 259 | buildSettings = { 260 | ALWAYS_SEARCH_USER_PATHS = NO; 261 | CLANG_ANALYZER_NONNULL = YES; 262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 263 | CLANG_CXX_LIBRARY = "libc++"; 264 | CLANG_ENABLE_MODULES = YES; 265 | CLANG_ENABLE_OBJC_ARC = YES; 266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 267 | CLANG_WARN_BOOL_CONVERSION = YES; 268 | CLANG_WARN_COMMA = YES; 269 | CLANG_WARN_CONSTANT_CONVERSION = YES; 270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 272 | CLANG_WARN_EMPTY_BODY = YES; 273 | CLANG_WARN_ENUM_CONVERSION = YES; 274 | CLANG_WARN_INFINITE_RECURSION = YES; 275 | CLANG_WARN_INT_CONVERSION = YES; 276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 281 | CLANG_WARN_STRICT_PROTOTYPES = YES; 282 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 283 | CLANG_WARN_UNREACHABLE_CODE = YES; 284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 286 | COPY_PHASE_STRIP = NO; 287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 288 | ENABLE_NS_ASSERTIONS = NO; 289 | ENABLE_STRICT_OBJC_MSGSEND = YES; 290 | GCC_C_LANGUAGE_STANDARD = gnu99; 291 | GCC_NO_COMMON_BLOCKS = YES; 292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 294 | GCC_WARN_UNDECLARED_SELECTOR = YES; 295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 296 | GCC_WARN_UNUSED_FUNCTION = YES; 297 | GCC_WARN_UNUSED_VARIABLE = YES; 298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 299 | MTL_ENABLE_DEBUG_INFO = NO; 300 | SDKROOT = iphoneos; 301 | TARGETED_DEVICE_FAMILY = "1,2"; 302 | VALIDATE_PRODUCT = YES; 303 | }; 304 | name = Profile; 305 | }; 306 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 309 | buildSettings = { 310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 311 | CLANG_ENABLE_MODULES = YES; 312 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 313 | ENABLE_BITCODE = NO; 314 | FRAMEWORK_SEARCH_PATHS = ( 315 | "$(inherited)", 316 | "$(PROJECT_DIR)/Flutter", 317 | ); 318 | INFOPLIST_FILE = Runner/Info.plist; 319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 320 | LIBRARY_SEARCH_PATHS = ( 321 | "$(inherited)", 322 | "$(PROJECT_DIR)/Flutter", 323 | ); 324 | PRODUCT_BUNDLE_IDENTIFIER = dev.cornet.redditify; 325 | PRODUCT_NAME = "$(TARGET_NAME)"; 326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 327 | SWIFT_VERSION = 4.0; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INFINITE_RECURSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 357 | CLANG_WARN_STRICT_PROTOTYPES = YES; 358 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 359 | CLANG_WARN_UNREACHABLE_CODE = YES; 360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 362 | COPY_PHASE_STRIP = NO; 363 | DEBUG_INFORMATION_FORMAT = dwarf; 364 | ENABLE_STRICT_OBJC_MSGSEND = YES; 365 | ENABLE_TESTABILITY = YES; 366 | GCC_C_LANGUAGE_STANDARD = gnu99; 367 | GCC_DYNAMIC_NO_PIC = NO; 368 | GCC_NO_COMMON_BLOCKS = YES; 369 | GCC_OPTIMIZATION_LEVEL = 0; 370 | GCC_PREPROCESSOR_DEFINITIONS = ( 371 | "DEBUG=1", 372 | "$(inherited)", 373 | ); 374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 376 | GCC_WARN_UNDECLARED_SELECTOR = YES; 377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 378 | GCC_WARN_UNUSED_FUNCTION = YES; 379 | GCC_WARN_UNUSED_VARIABLE = YES; 380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 381 | MTL_ENABLE_DEBUG_INFO = YES; 382 | ONLY_ACTIVE_ARCH = YES; 383 | SDKROOT = iphoneos; 384 | TARGETED_DEVICE_FAMILY = "1,2"; 385 | }; 386 | name = Debug; 387 | }; 388 | 97C147041CF9000F007C117D /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_COMMA = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = dev.cornet.redditify; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 4.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = dev.cornet.redditify; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 4.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | 517 | }; 518 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 519 | } 520 | --------------------------------------------------------------------------------