Commit eaeaa7c6 by Ramesh Babu Puvvadi

few changes

parent c62a2345
......@@ -90,5 +90,4 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:multidex:1.0.3'
}
......@@ -15,4 +15,7 @@
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault">
<item name="android:windowSwipeToDismiss">true</item>
</style>
</resources>
......@@ -167,7 +167,7 @@ SPEC CHECKSUMS:
FirebaseInstallations: cae95cab0f965ce05b805189de1d4c70b11c76fb
FirebaseMessaging: 0c0ae1eb722ef0c07f7801e5ded8dccd1357d6d4
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_inappwebview: acd4fc0f012cefd09015000c241137d82f01ba62
flutter_inappwebview: 3d32228f1304635e7c028b0d4252937730bbc6cf
flutter_sms: 91ce41530f55c85d6524d82307a5d555844c086a
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084
......
......@@ -211,7 +211,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
......@@ -341,7 +341,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
......@@ -358,16 +358,17 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = AX549G5V4E;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = 26J2TYD7PU;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = storemonitor;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonitorapp;
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonito;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
......@@ -423,7 +424,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
......@@ -472,7 +473,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
......@@ -491,16 +492,17 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = AX549G5V4E;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = 26J2TYD7PU;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = storemonitor;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonitorapp;
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonito;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
......@@ -518,16 +520,17 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = AX549G5V4E;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = 26J2TYD7PU;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = storemonitor;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonitorapp;
PRODUCT_BUNDLE_IDENTIFIER = com.sopt.storemonito;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
......
......@@ -2,65 +2,59 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Store Monitor</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>Store Monitor</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>NSCameraUsageDescription</key>
<string>Camera access is required to capture</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required to dial a call</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<!-- Firebase configurations -->
<key>FirebaseAppDelegateProxyEnabled</key>
<false/>
<!-- Replace with your own reversed client ID -->
<key>REVERSED_CLIENT_ID</key>
<string>d6689d068c6b4290aba903</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Store Monitor</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>Store Monitor</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>FirebaseAppDelegateProxyEnabled</key>
<false/>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>Camera access is required to capture</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required to dial a call</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library</string>
<key>REVERSED_CLIENT_ID</key>
<string>d6689d068c6b4290aba903</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
......@@ -10,13 +10,14 @@ import 'Constants.dart';
class CheckRegistration extends StatefulWidget {
String message;
CheckRegistration({super.key, required this.message});
@override
State<CheckRegistration> createState() => _CheckRegistration();
}
class _CheckRegistration extends State<CheckRegistration> {
final TextEditingController _empId = TextEditingController();
late final ImagePicker _picker = ImagePicker();
late final ImagePicker _picker = ImagePicker();
XFile? image;
File? newVideoFile;
var store = '';
......@@ -134,7 +135,8 @@ class _CheckRegistration extends State<CheckRegistration> {
});
if (Platform.isAndroid) {
image = await _picker.pickVideo(
source: ImageSource.camera, preferredCameraDevice: CameraDevice.rear);
source: ImageSource.camera,
preferredCameraDevice: CameraDevice.rear);
} else {
image = await _picker.pickVideo(
source: ImageSource.camera,
......@@ -151,14 +153,10 @@ class _CheckRegistration extends State<CheckRegistration> {
Map<String, dynamic> responseMap = jsonDecode(response);
//String res = response;
//bool isEqual = jsonEncode(jsonDecode(response)) == jsonEncode(jsonDecode('{message: VideoUploaded, status: Success}'));
String message = "$responseMap";
// Extract the status value from the message
// Extract the status value from the message
String status = message.split('status:').last.split('}').first.trim();
print(status);
if (status == 'Success') {
Navigator.pop(context);
file.delete();
......@@ -173,7 +171,6 @@ class _CheckRegistration extends State<CheckRegistration> {
file.delete();
//Navigator.of(context).pop();
}
if (kDebugMode) {
print(responseMap);
}
......@@ -183,7 +180,8 @@ class _CheckRegistration extends State<CheckRegistration> {
void getValidReg(String text) async {
var data = await RemoteData().getValidEmp(text);
if (data.statusCode != 200) {
Constants('Review', data.statusCode.toString()).showAlertDialog(context, false);
Constants('Review', data.statusCode.toString())
.showAlertDialog(context, false);
return;
}
Map<String, dynamic> responseMap = jsonDecode(data.body);
......
......@@ -129,9 +129,9 @@ class Constants {
);
static Future<void> showAlertDialog1(BuildContext context) async {
AlertDialog alert = AlertDialog(
AlertDialog alert = const AlertDialog(
content: Row(
children: const [
children: [
CircularProgressIndicator(),
],
),
......
......@@ -133,13 +133,25 @@ class _Home extends State<Home> {
),
body: SingleChildScrollView(
child: GestureDetector(
onHorizontalDragUpdate: (dragDetail) {
print('Testing');
if (dragDetail.delta.direction > 0) {
Navigator.pop(context);
print('Hitted =====>');
}
onForcePressUpdate: (details) {
print('force press update');
},
onHorizontalDragStart: (details) {
print('force press start');
},
onHorizontalDragDown: (details) {
print('force press down');
//Navigator.pop(context);
},
// onHorizontalDragUpdate: (dragDetail) {
// print('Testing');
// if (dragDetail.delta.direction > 0) {
// Navigator.pop(context);
// print('Hitted =====>');
// }
// },
child: Container(
margin: const EdgeInsets.all(12.0),
child: Column(
......
......@@ -442,7 +442,7 @@ class _CustomDialogState extends State<CustomDialog> {
print(userId);
print(_textFieldController1.text);
print(_textFieldController2.text);
//Navigator.pop(context);
//tor.Navigapop(context);
String res = await RemoteData().getChangePassword(
_textFieldController1.text,
......
......@@ -2,8 +2,6 @@ import 'dart:io';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:storemonitor/FirebaseApi.dart';
//import 'package:media_kit/media_kit.dart';
//import 'Screens/MyHomePage.dart';
import 'Screens/SplashScreen.dart';
Future<void> main() async {
......@@ -12,8 +10,9 @@ Future<void> main() async {
await Firebase.initializeApp();
await FirebaseApi().initNotifications();
}
runApp(const MaterialApp(
debugShowCheckedModeBanner: false,
home: SplashScreen(),
));
runApp(const MaterialApp(
debugShowCheckedModeBanner: false,
home: SplashScreen(),
)
);
}
......@@ -282,10 +282,10 @@ packages:
dependency: "direct main"
description:
name: flutter_inappwebview
sha256: f73505c792cf083d5566e1a94002311be497d984b5607f25be36d685cf6361cf
sha256: d198297060d116b94048301ee6749cd2e7d03c1f2689783f52d210a6b7aba350
url: "https://pub.dev"
source: hosted
version: "5.7.2+3"
version: "5.8.0"
flutter_launcher_icons:
dependency: "direct main"
description:
......
name: storemonitor
description: A new Flutter project.
publish_to: 'none'
version: 1.0.4+4
version: 1.0.5+5
environment:
sdk: '>=2.18.4 <3.0.0'
......@@ -23,7 +23,8 @@ dependencies:
#aws_s3_upload: ^1.5.0
# //flutter_webview_plugin: ^0.4.0
webview_flutter: ^4.2.4
flutter_inappwebview: ^5.7.2+3
flutter_inappwebview: ^5.8.0
#flutter_html: ^0.11.1
http_parser: ^4.0.0
#amazon_cognito_identity_dart_2: ^1.0.3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment