This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| import 'package:firebase_dynamic_links/firebase_dynamic_links.dart'; | |
| import 'package:get_storage/get_storage.dart'; | |
| import 'package:get/get.dart'; | |
| import 'package:flutter/material.dart'; | |
| final pref = GetStorage(); | |
| final _profileController = Get.put(ProfileController()); | |
| class DynamicLinkService { |
NewerOlder