Skip to content

Instantly share code, notes, and snippets.

View sumitchavan8070's full-sized avatar
🫡
Working at cognustechnology

Sumit Chavan sumitchavan8070

🫡
Working at cognustechnology
View GitHub Profile
# Automate Shorebird installation & app build process (Updated)
# Author: [Sumit Chavan]
echo "🔵 Starting Shorebird installation & build automation..."
# Check if shorebird is installed
if ! command -v shorebird &> /dev/null
then
echo "👉 Shorebird not found, installing Shorebird CLI..."
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:firebase_auth/firebase_auth.dart';
class VerificationScreen extends StatefulWidget {
const VerificationScreen({super.key});
@override
_VerificationScreenState createState() => _VerificationScreenState();
}
import 'dart:math';
import 'package:flutter/material.dart';
class MeteorDemo extends StatelessWidget {
const MeteorDemo({super.key});
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
bool _isTokenExpired(String token) {
formatDate(currentTime) {
final currentDate = DateTime.fromMillisecondsSinceEpoch(currentTime * 1000);
final currentFormatted = DateFormat('ddMMyy').format(currentDate);
return currentFormatted;
}
try {
final parts = token.split('.');
if (parts.length != 3) {
#!/bin/bash
# Prompt the user to input the app name
read -p "Which app path do you want to update: " appName
# Echo the selected app name
echo "App selected: $appName"
# Set the appropriate packagesPath based on the app name
if [ "$appName" == "gradding" ]; then
@sumitchavan8070
sumitchavan8070 / send_push_nbotification.php
Created September 17, 2024 12:39
for sednig the fcm to app
public function sendPushNotification()
{
$postData = json_decode(file_get_contents('php://input'), true);
if (!$postData || !isset($postData['args'])) {
$response = [
"status" => 0,
"message" => "Invalid request: Missing args"
];
echo json_encode($response);
# Ask the user if they want to upload to the App shared folder
read -p "Do you want to upload the APK to the App shared folder on Google Drive? (y/n): " upload_choice
# Build the Flutter APK
flutter clean
flutter build apk --release
# Check if the build was successful
if [ $? -ne 0 ]; then
echo "Flutter build failed"
# Options for selection
#ask developer which app do yoo want to build
first_options=("GAH" "GAH_AU" "IAH" "IAH_AU" "AD" "AP")
second_options=("PLAGIARISM" "GRAMMAR" "ESSAY" "PARAPHRASE" "")
# Function to display options and get the user's selection
select_option() {
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:in_app_update/in_app_update.dart';
import 'package:package_info/package_info.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:get/get.dart';
import 'package:utilities/auth_module/model/app_updte_model.dart';
import 'package:utilities/constants/custom_dialog.dart';