Skip to content

Commit

Permalink
3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya committed Sep 21, 2021
1 parent 7f8b0b4 commit fd098da
Show file tree
Hide file tree
Showing 41 changed files with 459 additions and 397 deletions.
2 changes: 2 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
11 changes: 9 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 30

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.aditya.sneakerx"
minSdkVersion 23
targetSdkVersion 30
Expand All @@ -57,5 +65,4 @@ flutter {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

}
2 changes: 1 addition & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.sneakerx.sneakerx">
package="com.aditya.sneakerx">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.sneakerx.sneakerx">
package="com.aditya.sneakerx">
<application
android:label="sneakerx"
android:icon="@mipmap/ic_launcher">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aditya.sneakerx.sneakerx
package com.aditya.sneakerx

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.sneakerx.sneakerx">
package="com.aditya.sneakerx">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.5.31'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -15,7 +15,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
</dict>
</plist>
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx.sneakerx;
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -415,7 +415,7 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx.sneakerx;
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -434,7 +434,7 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx.sneakerx;
PRODUCT_BUNDLE_IDENTIFIER = com.aditya.sneakerx;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
6 changes: 0 additions & 6 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Need to product upload image</string>
<key>NSCameraUsageDescription</key>
<string>Need to upload product image</string>
<key>NSMicrophoneUsageDescription</key>
<string>Need to record videos</string>
</dict>
</plist>
4 changes: 3 additions & 1 deletion lib/loading.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';

class Loading extends StatelessWidget {
const Loading({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Container(
color: Color(0xFF1a191c),
color: const Color(0xFF1a191c),
child: Center(child: Lottie.asset("assets/lottie/loading.json")),
);
}
Expand Down
24 changes: 14 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:sneakerx/services/AuthenticationService.dart';
import 'package:sneakerx/services/authentication_service.dart';
import 'package:sneakerx/wrapper.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
));
runApp(App());
runApp(const App());
}

class App extends StatefulWidget {
const App({Key? key}) : super(key: key);

@override
_AppState createState() => _AppState();
}
Expand All @@ -31,23 +33,25 @@ class _AppState extends State<App> {
title: "Sneaker Store",
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme:
ThemeData().colorScheme.copyWith(primary: Color(0xFFF68A0A)),
appBarTheme: AppBarTheme(
colorScheme: ThemeData()
.colorScheme
.copyWith(primary: const Color(0xFFF68A0A)),
appBarTheme: const AppBarTheme(
elevation: 0,
color: Color(0xFFF4F5FC),
centerTitle: true,
iconTheme: IconThemeData(color: Colors.black),
titleTextStyle: TextStyle(color: Color(0xFF1A191C)),
),
scaffoldBackgroundColor: Color(0xFFF4F5FC),
scaffoldBackgroundColor: const Color(0xFFF4F5FC),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
primary: Color(0xFFF4F5FC),
primary: const Color(0xFFF4F5FC),
)),
primaryColor: Color(0xFFF68A0A),
primaryColor: const Color(0xFFF68A0A),
fontFamily: "Futura",
),
home: Wrapper(),
home: const Wrapper(),
),
);
}
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit fd098da

Please sign in to comment.