Skip to content

Commit

Permalink
Change name and prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
benbd5 committed Sep 3, 2024
1 parent c1fffab commit c6d8730
Show file tree
Hide file tree
Showing 54 changed files with 204 additions and 204 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# movies_app
# yeez

Stay up to date on the latest movies

Expand Down
21 changes: 18 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ plugins {
id "dev.flutter.flutter-gradle-plugin"
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand All @@ -23,7 +29,7 @@ if (flutterVersionName == null) {
}

android {
namespace "com.benb.movies_app"
namespace "yeez"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand All @@ -42,7 +48,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.benb.movies_app"
applicationId "com.app.yeez"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand All @@ -51,11 +57,20 @@ android {
versionName flutterVersionName
}

signingConfigs {
release {
keyAlias = keystoreProperties['keyAlias']
keyPassword = keystoreProperties['keyPassword']
storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword = keystoreProperties['storePassword']
}
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}
}
Expand Down
19 changes: 8 additions & 11 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.yeez">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="movies_app"
android:label="yeez"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand All @@ -18,20 +20,15 @@
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme"/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data android:name="flutterEmbedding" android:value="2"/>
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility?hl=en and
Expand Down
5 changes: 5 additions & 0 deletions android/app/src/main/kotlin/com/app/yeez/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.app.yeez

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity()

This file was deleted.

6 changes: 6 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 46 additions & 46 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Movies App</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>movies_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>yeez</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>yeez</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
40 changes: 16 additions & 24 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:isar/isar.dart';
import 'package:movies_app/enum/type_enum.dart';
import 'package:movies_app/models/movie_list.dart';
import 'package:movies_app/views/movies/carousel_movies.dart';
import 'package:movies_app/views/movies/detail.dart';
import 'package:movies_app/views/movies/list.dart';
import 'package:movies_app/views/profile/watchlist.dart';
import 'package:movies_app/views/search/animated_search_view.dart';
import 'package:movies_app/views/tv_shows.dart';
import 'package:movies_app/views/tv_shows/detail.dart';
import 'package:movies_app/views/widgets/bottom_navigation_bar.dart';
import 'package:movies_app/views/widgets/shimmer_carousel_loader.dart';
import 'package:movies_app/views/widgets/shimmer_loader.dart';
import 'package:yeez/enum/type_enum.dart';
import 'package:yeez/models/movie_list.dart';
import 'package:yeez/views/movies/carousel_movies.dart';
import 'package:yeez/views/movies/detail.dart';
import 'package:yeez/views/movies/list.dart';
import 'package:yeez/views/profile/watchlist.dart';
import 'package:yeez/views/search/animated_search_view.dart';
import 'package:yeez/views/tv_shows.dart';
import 'package:yeez/views/tv_shows/detail.dart';
import 'package:yeez/views/widgets/bottom_navigation_bar.dart';
import 'package:yeez/views/widgets/shimmer_carousel_loader.dart';
import 'package:yeez/views/widgets/shimmer_loader.dart';
import 'utils/tmdb_api/movie_api.dart';
import 'models/genre.dart';

Expand Down Expand Up @@ -131,9 +131,7 @@ class _MoviesState extends State<HomePage> {
setState(() {
genres = getGenres;
});
} catch (e) {
print('Error: $e');
}
} catch (e) {}
}

Future<void> getPopularMovies() async {
Expand All @@ -142,9 +140,7 @@ class _MoviesState extends State<HomePage> {
setState(() {
popularMovies = getMovies;
});
} catch (e) {
print('Error: $e');
}
} catch (e) {}
}

Future<void> getUpcomingMovies() async {
Expand All @@ -153,9 +149,7 @@ class _MoviesState extends State<HomePage> {
setState(() {
discoverMovies = getMovies;
});
} catch (e) {
print('Error: $e');
}
} catch (e) {}
}

Future<void> getNowPlayingMovies() async {
Expand All @@ -164,9 +158,7 @@ class _MoviesState extends State<HomePage> {
setState(() {
nowPlayingMovies = getMovies;
});
} catch (e) {
print('Error: $e');
}
} catch (e) {}
}

@override
Expand Down
4 changes: 2 additions & 2 deletions lib/models/carousel_list.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:movies_app/enum/type_enum.dart';
import 'package:yeez/enum/type_enum.dart';

class CarouselList {
final int id;
final String posterPath;
final String? posterPath;
final TypeEnum type;
final int length;

Expand Down
6 changes: 3 additions & 3 deletions lib/models/movie.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:isar/isar.dart';
import 'package:movies_app/models/genre.dart';
import 'package:movies_app/models/movie_list.dart';
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/models/genre.dart';
import 'package:yeez/models/movie_list.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

part 'movie.g.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/models/movie_list.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

import 'movie.dart';

Expand Down Expand Up @@ -35,7 +35,7 @@ class MovieList {

factory MovieList.fromMovie(Movie movie) {
return MovieList(
id: movie.tmdbId!,
id: movie.tmdbId,
title: movie.title,
overview: movie.overview,
releaseDate: movie.releaseDate,
Expand Down
4 changes: 2 additions & 2 deletions lib/models/search_movies_list.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

import 'movie.dart';

Expand Down Expand Up @@ -47,7 +47,7 @@ class SearchList {

factory SearchList.fromMovie(Movie movie) {
return SearchList(
id: movie.tmdbId!,
id: movie.tmdbId,
title: movie.title,
overview: movie.overview,
releaseDate: movie.releaseDate,
Expand Down
2 changes: 1 addition & 1 deletion lib/models/season.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

import 'episode.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/models/season_list.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

class SeasonList {
final int id;
Expand Down
6 changes: 3 additions & 3 deletions lib/models/tv_show.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:isar/isar.dart';
import 'package:movies_app/models/genre.dart';
import 'package:movies_app/models/season_list.dart';
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/models/genre.dart';
import 'package:yeez/models/season_list.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

part 'tv_show.g.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/models/tv_show_list.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:movies_app/models/tv_show.dart';
import 'package:movies_app/utils/tmdb_api/tmdb_config.dart';
import 'package:yeez/models/tv_show.dart';
import 'package:yeez/utils/tmdb_api/tmdb_config.dart';

class TvShowList {
final int id;
Expand Down
6 changes: 3 additions & 3 deletions lib/utils/isar_service.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:isar/isar.dart';
import 'package:movies_app/enum/type_enum.dart';
import 'package:movies_app/models/movie.dart';
import 'package:movies_app/models/tv_show.dart';
import 'package:yeez/enum/type_enum.dart';
import 'package:yeez/models/movie.dart';
import 'package:yeez/models/tv_show.dart';
import 'package:path_provider/path_provider.dart';

class IsarService {
Expand Down
6 changes: 3 additions & 3 deletions lib/utils/tmdb_api/movie_api.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:http/http.dart' as http;
import 'package:movies_app/models/genre.dart';
import 'package:movies_app/models/movie_list.dart';
import 'package:movies_app/models/search_movies_list.dart';
import 'package:yeez/models/genre.dart';
import 'package:yeez/models/movie_list.dart';
import 'package:yeez/models/search_movies_list.dart';
import 'dart:convert';

import '../tmdb_api/tmdb_config.dart';
Expand Down
Loading

0 comments on commit c6d8730

Please sign in to comment.