diff --git a/cping-old/.gitignore b/cping-old/.gitignore new file mode 100644 index 0000000..544fe57 --- /dev/null +++ b/cping-old/.gitignore @@ -0,0 +1,50 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release + +.fvm/ + +/android/gradle.properties \ No newline at end of file diff --git a/cping/.gradle/6.1.1/executionHistory/executionHistory.lock b/cping-old/.gradle/6.1.1/executionHistory/executionHistory.lock similarity index 100% rename from cping/.gradle/6.1.1/executionHistory/executionHistory.lock rename to cping-old/.gradle/6.1.1/executionHistory/executionHistory.lock diff --git a/cping/.gradle/6.1.1/fileChanges/last-build.bin b/cping-old/.gradle/6.1.1/fileChanges/last-build.bin similarity index 100% rename from cping/.gradle/6.1.1/fileChanges/last-build.bin rename to cping-old/.gradle/6.1.1/fileChanges/last-build.bin diff --git a/cping/.gradle/6.1.1/fileHashes/fileHashes.lock b/cping-old/.gradle/6.1.1/fileHashes/fileHashes.lock similarity index 100% rename from cping/.gradle/6.1.1/fileHashes/fileHashes.lock rename to cping-old/.gradle/6.1.1/fileHashes/fileHashes.lock diff --git a/cping/.gradle/6.1.1/gc.properties b/cping-old/.gradle/6.1.1/gc.properties similarity index 100% rename from cping/.gradle/6.1.1/gc.properties rename to cping-old/.gradle/6.1.1/gc.properties diff --git a/cping/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/cping-old/.gradle/buildOutputCleanup/buildOutputCleanup.lock similarity index 100% rename from cping/.gradle/buildOutputCleanup/buildOutputCleanup.lock rename to cping-old/.gradle/buildOutputCleanup/buildOutputCleanup.lock diff --git a/cping/.gradle/buildOutputCleanup/cache.properties b/cping-old/.gradle/buildOutputCleanup/cache.properties similarity index 100% rename from cping/.gradle/buildOutputCleanup/cache.properties rename to cping-old/.gradle/buildOutputCleanup/cache.properties diff --git a/cping/.gradle/checksums/checksums.lock b/cping-old/.gradle/checksums/checksums.lock similarity index 100% rename from cping/.gradle/checksums/checksums.lock rename to cping-old/.gradle/checksums/checksums.lock diff --git a/cping/.gradle/vcs-1/gc.properties b/cping-old/.gradle/vcs-1/gc.properties similarity index 100% rename from cping/.gradle/vcs-1/gc.properties rename to cping-old/.gradle/vcs-1/gc.properties diff --git a/cping-old/.metadata b/cping-old/.metadata new file mode 100644 index 0000000..0301ca1 --- /dev/null +++ b/cping-old/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: 0b5d99eae6174b54ecca0a3fef6ba69228adc552 + channel: master + +project_type: app diff --git a/cping-old/analysis_options.yaml b/cping-old/analysis_options.yaml new file mode 100644 index 0000000..61b6c4d --- /dev/null +++ b/cping-old/analysis_options.yaml @@ -0,0 +1,29 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at + # https://dart-lang.github.io/linter/lints/index.html. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/cping-old/android/.gitignore b/cping-old/android/.gitignore new file mode 100644 index 0000000..606f576 --- /dev/null +++ b/cping-old/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +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 \ No newline at end of file diff --git a/cping/android/android/.gradle/6.7/fileHashes/fileHashes.lock b/cping-old/android/android/.gradle/6.7/fileHashes/fileHashes.lock similarity index 100% rename from cping/android/android/.gradle/6.7/fileHashes/fileHashes.lock rename to cping-old/android/android/.gradle/6.7/fileHashes/fileHashes.lock diff --git a/cping/android/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/cping-old/android/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock similarity index 100% rename from cping/android/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock rename to cping-old/android/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock diff --git a/cping/android/android/.gradle/buildOutputCleanup/cache.properties b/cping-old/android/android/.gradle/buildOutputCleanup/cache.properties similarity index 100% rename from cping/android/android/.gradle/buildOutputCleanup/cache.properties rename to cping-old/android/android/.gradle/buildOutputCleanup/cache.properties diff --git a/cping/android/android/.gradle/checksums/checksums.lock b/cping-old/android/android/.gradle/checksums/checksums.lock similarity index 100% rename from cping/android/android/.gradle/checksums/checksums.lock rename to cping-old/android/android/.gradle/checksums/checksums.lock diff --git a/cping/android/android/.gradle/checksums/md5-checksums.bin b/cping-old/android/android/.gradle/checksums/md5-checksums.bin similarity index 100% rename from cping/android/android/.gradle/checksums/md5-checksums.bin rename to cping-old/android/android/.gradle/checksums/md5-checksums.bin diff --git a/cping/android/android/.gradle/checksums/sha1-checksums.bin b/cping-old/android/android/.gradle/checksums/sha1-checksums.bin similarity index 100% rename from cping/android/android/.gradle/checksums/sha1-checksums.bin rename to cping-old/android/android/.gradle/checksums/sha1-checksums.bin diff --git a/cping/android/android/gradlew b/cping-old/android/android/gradlew similarity index 100% rename from cping/android/android/gradlew rename to cping-old/android/android/gradlew diff --git a/cping/android/android/gradlew.bat b/cping-old/android/android/gradlew.bat similarity index 100% rename from cping/android/android/gradlew.bat rename to cping-old/android/android/gradlew.bat diff --git a/cping/android/android/local.properties b/cping-old/android/android/local.properties similarity index 100% rename from cping/android/android/local.properties rename to cping-old/android/android/local.properties diff --git a/cping-old/android/app/build.gradle b/cping-old/android/app/build.gradle new file mode 100644 index 0000000..79a3ec9 --- /dev/null +++ b/cping-old/android/app/build.gradle @@ -0,0 +1,78 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + +android { + compileSdkVersion 32 + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.neumannics.cping" + minSdkVersion 21 + targetSdkVersion 32 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + signingConfigs { + release { + storeFile file(RELEASE_STORE_FILE) + storePassword RELEASE_STORE_PASSWORD + keyAlias RELEASE_KEY_ALIAS + keyPassword RELEASE_KEY_PASSWORD + } + } + buildTypes { + release { + signingConfig signingConfigs.release + } + } +} + +flutter { + source '../..' +} + +apply plugin: 'com.google.gms.google-services' +dependencies { + // Import the Firebase BoM + implementation platform('com.google.firebase:firebase-bom:30.2.0') + // Add the dependency for the Firebase SDK for Google Analytics + // When using the BoM, don't specify versions in Firebase dependencies + implementation 'com.google.firebase:firebase-analytics' + // Add the dependencies for any other desired Firebase products + // https://firebase.google.com/docs/android/setup#available-libraries +} \ No newline at end of file diff --git a/cping-old/android/app/google-services.json b/cping-old/android/app/google-services.json new file mode 100644 index 0000000..8625713 --- /dev/null +++ b/cping-old/android/app/google-services.json @@ -0,0 +1,47 @@ +{ + "project_info": { + "project_number": "846569139481", + "project_id": "cping-7e228", + "storage_bucket": "cping-7e228.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:846569139481:android:38a3dfcaefbcd12984a988", + "android_client_info": { + "package_name": "com.neumannics.cping" + } + }, + "oauth_client": [ + { + "client_id": "846569139481-7qccckk5ej59cin6ni6sdgamio1gqn3j.apps.googleusercontent.com", + "client_type": 1, + "android_info": { + "package_name": "com.neumannics.cping", + "certificate_hash": "bf8a619416ee6a27008c8226a5e073dbc4661448" + } + }, + { + "client_id": "846569139481-sebc60nlbsigmhb633b6k4gojsgac481.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBdZMzl5Q9ebbCVECLdbB6K9M6OOBj4uiY" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "846569139481-sebc60nlbsigmhb633b6k4gojsgac481.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/cping/android/app/release-key.keystore b/cping-old/android/app/release-key.keystore similarity index 100% rename from cping/android/app/release-key.keystore rename to cping-old/android/app/release-key.keystore diff --git a/cping-old/android/app/src/debug/AndroidManifest.xml b/cping-old/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..889f331 --- /dev/null +++ b/cping-old/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/cping/android/app/src/debug/gen/com/kid116sashank/cp_ing/BuildConfig.java b/cping-old/android/app/src/debug/gen/com/kid116sashank/cp_ing/BuildConfig.java similarity index 100% rename from cping/android/app/src/debug/gen/com/kid116sashank/cp_ing/BuildConfig.java rename to cping-old/android/app/src/debug/gen/com/kid116sashank/cp_ing/BuildConfig.java diff --git a/cping-old/android/app/src/main/AndroidManifest.xml b/cping-old/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..5205ee1 --- /dev/null +++ b/cping-old/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cping/android/app/src/main/gen/com/kid116sashank/cp_ing/BuildConfig.java b/cping-old/android/app/src/main/gen/com/kid116sashank/cp_ing/BuildConfig.java similarity index 100% rename from cping/android/app/src/main/gen/com/kid116sashank/cp_ing/BuildConfig.java rename to cping-old/android/app/src/main/gen/com/kid116sashank/cp_ing/BuildConfig.java diff --git a/cping/android/app/src/main/java/com/neumannics/cping/MainActivity.java b/cping-old/android/app/src/main/java/com/neumannics/cping/MainActivity.java similarity index 100% rename from cping/android/app/src/main/java/com/neumannics/cping/MainActivity.java rename to cping-old/android/app/src/main/java/com/neumannics/cping/MainActivity.java diff --git a/cping-old/android/app/src/main/res/drawable-v21/launch_background.xml b/cping-old/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/cping-old/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/cping-old/android/app/src/main/res/drawable/launch_background.xml b/cping-old/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/cping-old/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/cping/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/cping-old/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from cping/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to cping-old/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..a9978bf Binary files /dev/null and b/cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png b/cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png rename to cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png diff --git a/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png b/cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png rename to cping-old/android/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png diff --git a/cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..86abc22 Binary files /dev/null and b/cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png b/cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png rename to cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png diff --git a/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png b/cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png rename to cping-old/android/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png diff --git a/cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..7d5c190 Binary files /dev/null and b/cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png b/cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png rename to cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png diff --git a/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png b/cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png rename to cping-old/android/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png diff --git a/cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..43c3c8f Binary files /dev/null and b/cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png b/cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png rename to cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png diff --git a/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png b/cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png rename to cping-old/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png diff --git a/cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..670e9cf Binary files /dev/null and b/cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png b/cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png rename to cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png diff --git a/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png b/cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png similarity index 100% rename from cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png rename to cping-old/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png diff --git a/cping-old/android/app/src/main/res/values-night/styles.xml b/cping-old/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..449a9f9 --- /dev/null +++ b/cping-old/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/cping-old/android/app/src/main/res/values/styles.xml b/cping-old/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..d74aa35 --- /dev/null +++ b/cping-old/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/cping-old/android/app/src/profile/AndroidManifest.xml b/cping-old/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..889f331 --- /dev/null +++ b/cping-old/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/cping/android/app/src/profile/gen/com/kid116sashank/cp_ing/BuildConfig.java b/cping-old/android/app/src/profile/gen/com/kid116sashank/cp_ing/BuildConfig.java similarity index 100% rename from cping/android/app/src/profile/gen/com/kid116sashank/cp_ing/BuildConfig.java rename to cping-old/android/app/src/profile/gen/com/kid116sashank/cp_ing/BuildConfig.java diff --git a/cping-old/android/build.gradle b/cping-old/android/build.gradle new file mode 100644 index 0000000..b84ce19 --- /dev/null +++ b/cping-old/android/build.gradle @@ -0,0 +1,35 @@ +buildscript { + repositories { + google() + mavenCentral() + maven { + url 'https://maven.google.com/' + name 'Google' + } + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.2.1' + classpath 'com.google.gms:google-services:4.3.13' + } +} + +allprojects { + repositories { + mavenCentral() + maven { + url 'https://maven.google.com/' + name 'Google' + } + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/cping-old/android/gradle/wrapper/gradle-wrapper.properties b/cping-old/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..aa991fc --- /dev/null +++ b/cping-old/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/cping/android/ios/Flutter/Generated.xcconfig b/cping-old/android/ios/Flutter/Generated.xcconfig similarity index 100% rename from cping/android/ios/Flutter/Generated.xcconfig rename to cping-old/android/ios/Flutter/Generated.xcconfig diff --git a/cping/android/ios/Flutter/flutter_export_environment.sh b/cping-old/android/ios/Flutter/flutter_export_environment.sh similarity index 100% rename from cping/android/ios/Flutter/flutter_export_environment.sh rename to cping-old/android/ios/Flutter/flutter_export_environment.sh diff --git a/cping/android/ios/Runner/GeneratedPluginRegistrant.h b/cping-old/android/ios/Runner/GeneratedPluginRegistrant.h similarity index 100% rename from cping/android/ios/Runner/GeneratedPluginRegistrant.h rename to cping-old/android/ios/Runner/GeneratedPluginRegistrant.h diff --git a/cping/android/ios/Runner/GeneratedPluginRegistrant.m b/cping-old/android/ios/Runner/GeneratedPluginRegistrant.m similarity index 100% rename from cping/android/ios/Runner/GeneratedPluginRegistrant.m rename to cping-old/android/ios/Runner/GeneratedPluginRegistrant.m diff --git a/cping-old/android/settings.gradle b/cping-old/android/settings.gradle new file mode 100644 index 0000000..44e62bc --- /dev/null +++ b/cping-old/android/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/cping-old/assets/images/atcoder_icon.png b/cping-old/assets/images/atcoder_icon.png new file mode 100644 index 0000000..6e91a0c Binary files /dev/null and b/cping-old/assets/images/atcoder_icon.png differ diff --git a/cping-old/assets/images/bg_one.jpg b/cping-old/assets/images/bg_one.jpg new file mode 100644 index 0000000..725d939 Binary files /dev/null and b/cping-old/assets/images/bg_one.jpg differ diff --git a/cping-old/assets/images/bg_two.jpg b/cping-old/assets/images/bg_two.jpg new file mode 100644 index 0000000..725d939 Binary files /dev/null and b/cping-old/assets/images/bg_two.jpg differ diff --git a/cping-old/assets/images/cc_icon.png b/cping-old/assets/images/cc_icon.png new file mode 100644 index 0000000..7cd4547 Binary files /dev/null and b/cping-old/assets/images/cc_icon.png differ diff --git a/cping-old/assets/images/codechef_icon.png b/cping-old/assets/images/codechef_icon.png new file mode 100644 index 0000000..4645130 Binary files /dev/null and b/cping-old/assets/images/codechef_icon.png differ diff --git a/cping-old/assets/images/codeforces_icon.png b/cping-old/assets/images/codeforces_icon.png new file mode 100644 index 0000000..6cd0a36 Binary files /dev/null and b/cping-old/assets/images/codeforces_icon.png differ diff --git a/cping-old/assets/images/cp_ing.png b/cping-old/assets/images/cp_ing.png new file mode 100644 index 0000000..83e7d8d Binary files /dev/null and b/cping-old/assets/images/cp_ing.png differ diff --git a/cping-old/assets/images/empty.png b/cping-old/assets/images/empty.png new file mode 100644 index 0000000..e612cb0 Binary files /dev/null and b/cping-old/assets/images/empty.png differ diff --git a/cping-old/assets/images/empty.svg b/cping-old/assets/images/empty.svg new file mode 100644 index 0000000..773f4bc --- /dev/null +++ b/cping-old/assets/images/empty.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/cping-old/assets/images/error.png b/cping-old/assets/images/error.png new file mode 100644 index 0000000..aae58ca Binary files /dev/null and b/cping-old/assets/images/error.png differ diff --git a/cping-old/assets/images/google.png b/cping-old/assets/images/google.png new file mode 100644 index 0000000..001e1a2 Binary files /dev/null and b/cping-old/assets/images/google.png differ diff --git a/cping-old/assets/images/robot.png b/cping-old/assets/images/robot.png new file mode 100644 index 0000000..bec166a Binary files /dev/null and b/cping-old/assets/images/robot.png differ diff --git a/cping/lib/blocs/authentication/bloc.dart b/cping-old/lib/blocs/authentication/bloc.dart similarity index 100% rename from cping/lib/blocs/authentication/bloc.dart rename to cping-old/lib/blocs/authentication/bloc.dart diff --git a/cping/lib/blocs/authentication/event.dart b/cping-old/lib/blocs/authentication/event.dart similarity index 100% rename from cping/lib/blocs/authentication/event.dart rename to cping-old/lib/blocs/authentication/event.dart diff --git a/cping/lib/blocs/authentication/state.dart b/cping-old/lib/blocs/authentication/state.dart similarity index 100% rename from cping/lib/blocs/authentication/state.dart rename to cping-old/lib/blocs/authentication/state.dart diff --git a/cping/lib/blocs/website/bloc.dart b/cping-old/lib/blocs/website/bloc.dart similarity index 100% rename from cping/lib/blocs/website/bloc.dart rename to cping-old/lib/blocs/website/bloc.dart diff --git a/cping/lib/blocs/website/event.dart b/cping-old/lib/blocs/website/event.dart similarity index 100% rename from cping/lib/blocs/website/event.dart rename to cping-old/lib/blocs/website/event.dart diff --git a/cping/lib/blocs/website/state.dart b/cping-old/lib/blocs/website/state.dart similarity index 100% rename from cping/lib/blocs/website/state.dart rename to cping-old/lib/blocs/website/state.dart diff --git a/cping/lib/calendar/client.dart b/cping-old/lib/calendar/client.dart similarity index 100% rename from cping/lib/calendar/client.dart rename to cping-old/lib/calendar/client.dart diff --git a/cping-old/lib/config/colors.dart b/cping-old/lib/config/colors.dart new file mode 100644 index 0000000..a0ad502 --- /dev/null +++ b/cping-old/lib/config/colors.dart @@ -0,0 +1,7 @@ +import 'dart:ui'; + +class MyColors { + static const cyan = Color.fromRGBO(14, 245, 225, 1); + static const deepBlue = Color.fromRGBO(32, 27, 50, 1); + static const navyBlue = Color.fromRGBO(57, 48, 79, 1); +} \ No newline at end of file diff --git a/cping-old/lib/config/theme.dart b/cping-old/lib/config/theme.dart new file mode 100644 index 0000000..b36a1aa --- /dev/null +++ b/cping-old/lib/config/theme.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; + +ThemeData darkTheme = ThemeData( + highlightColor: const Color(0xffee6c4d), + indicatorColor: const Color(0xff57e126), + colorScheme: ColorScheme.fromSwatch().copyWith( + background: const Color(0xff293241), + primary: const Color(0xff3d5a80), + onPrimary: Colors.white, + onSecondary: const Color(0xff293241), + secondary: const Color(0xff98c1d9), + brightness: Brightness.dark, + ), + textTheme:TextTheme( + headline1: GoogleFonts.poppins( + color: Colors.white, + fontSize: 36, + fontWeight: FontWeight.w800, + ) + ) +); diff --git a/cping/lib/firestore/cache.dart b/cping-old/lib/firestore/cache.dart similarity index 100% rename from cping/lib/firestore/cache.dart rename to cping-old/lib/firestore/cache.dart diff --git a/cping/lib/firestore/user_data.dart b/cping-old/lib/firestore/user_data.dart similarity index 78% rename from cping/lib/firestore/user_data.dart rename to cping-old/lib/firestore/user_data.dart index a80545a..a0c015d 100644 --- a/cping/lib/firestore/user_data.dart +++ b/cping-old/lib/firestore/user_data.dart @@ -15,7 +15,7 @@ class UserDatabase { }) async { final email = FirebaseAuth.instance.currentUser!.email; DocumentReference newContestDoc = - userCollection.doc(email).collection('registeredContests').doc(); + userCollection.doc(email).collection('registeredContests').doc(); int days = length.inDays; int hours = length.inHours - days * 24; @@ -33,9 +33,7 @@ class UserDatabase { "length": lengthMap }; - await newContestDoc - .set(data) - .catchError((e) => debugPrint(e)); + await newContestDoc.set(data).catchError((e) => debugPrint(e)); return newContestDoc.id; } @@ -43,7 +41,7 @@ class UserDatabase { static Stream readContests() { final email = FirebaseAuth.instance.currentUser!.email; CollectionReference registeredContests = - userCollection.doc(email).collection('registeredContests'); + userCollection.doc(email).collection('registeredContests'); return registeredContests.snapshots(); } @@ -52,10 +50,8 @@ class UserDatabase { }) async { final email = FirebaseAuth.instance.currentUser!.email; DocumentReference registeredContest = - userCollection.doc(email).collection('registeredContests').doc(docId); + userCollection.doc(email).collection('registeredContests').doc(docId); - await registeredContest - .delete() - .catchError((e) => debugPrint(e)); + await registeredContest.delete().catchError((e) => debugPrint(e)); } -} \ No newline at end of file +} diff --git a/cping-old/lib/main.dart b/cping-old/lib/main.dart new file mode 100644 index 0000000..3b59ea7 --- /dev/null +++ b/cping-old/lib/main.dart @@ -0,0 +1,57 @@ +import 'package:firebase_app_check/firebase_app_check.dart'; +import 'package:firebase_auth/firebase_auth.dart'; +import 'package:firebase_core/firebase_core.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; + +import 'pages/home.dart'; +import 'pages/sign_in.dart'; +import 'blocs/authentication/bloc.dart'; + +Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + await Firebase.initializeApp(); + await FirebaseAppCheck.instance.activate( + webRecaptchaSiteKey: '6LdqlusgAAAAAKaBWWsn0Pf5KoUJJNy5JX2M6IOu', + ); + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return MultiBlocProvider( + providers: [ + BlocProvider( + create: (context) => AuthenticationBloc(), + ), + ], + child: MaterialApp( + debugShowCheckedModeBanner: false, + title: 'CPing', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: StreamBuilder( + stream: FirebaseAuth.instance.authStateChanges(), + builder: (context, snapshot) { + if (snapshot.connectionState == ConnectionState.waiting) { + return const Center( + child: CircularProgressIndicator(), + ); + } else if (snapshot.hasError) { + return const Center( + child: Text("Error"), + ); + } else if (snapshot.hasData) { + return const HomePage(); + } else { + return const SignInPage(); + } + }), + ), + ); + } +} diff --git a/cping/lib/models/contest.dart b/cping-old/lib/models/contest.dart similarity index 100% rename from cping/lib/models/contest.dart rename to cping-old/lib/models/contest.dart diff --git a/cping/lib/pages/home.dart b/cping-old/lib/pages/home.dart similarity index 100% rename from cping/lib/pages/home.dart rename to cping-old/lib/pages/home.dart diff --git a/cping/lib/pages/sign_in.dart b/cping-old/lib/pages/sign_in.dart similarity index 100% rename from cping/lib/pages/sign_in.dart rename to cping-old/lib/pages/sign_in.dart diff --git a/cping/lib/pages/website.dart b/cping-old/lib/pages/website.dart similarity index 100% rename from cping/lib/pages/website.dart rename to cping-old/lib/pages/website.dart diff --git a/cping/lib/repositories/website.dart b/cping-old/lib/repositories/website.dart similarity index 100% rename from cping/lib/repositories/website.dart rename to cping-old/lib/repositories/website.dart diff --git a/cping/lib/widgets/contest_card.dart b/cping-old/lib/widgets/contest_card.dart similarity index 100% rename from cping/lib/widgets/contest_card.dart rename to cping-old/lib/widgets/contest_card.dart diff --git a/cping/local.properties b/cping-old/local.properties similarity index 100% rename from cping/local.properties rename to cping-old/local.properties diff --git a/cping-old/pubspec.lock b/cping-old/pubspec.lock new file mode 100644 index 0000000..033cbed --- /dev/null +++ b/cping-old/pubspec.lock @@ -0,0 +1,962 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _discoveryapis_commons: + dependency: transitive + description: + name: _discoveryapis_commons + sha256: "50d83f715747fd9f41bcdc87eec93fa300c63dd9ca16bb884bbe7864a2a547bd" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: "6824874a3ddeb1530a8b59c8f3cb1181f38717d0c88ff920962125ffbd65babe" + url: "https://pub.dev" + source: hosted + version: "41.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: "33f7fdac2d5f7cd0a34adb9ec09282edd45c87135b176174dbf3c83388a9934e" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + args: + dependency: transitive + description: + name: args + sha256: b003c3098049a51720352d219b0bb5f219b60fbfb68e7a4748139a06a5676515 + url: "https://pub.dev" + source: hosted + version: "2.3.1" + async: + dependency: transitive + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + bloc: + dependency: transitive + description: + name: bloc + sha256: "318e6cc6803d93b8d2de5f580e452ca565bcaa44f724d5156c71961426b88e03" + url: "https://pub.dev" + source: hosted + version: "8.0.3" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + build: + dependency: transitive + description: + name: build + sha256: "29a03af98de60b4eb9136acd56608a54e989f6da238a80af739415b05589d6df" + url: "https://pub.dev" + source: hosted + version: "2.3.0" + build_config: + dependency: transitive + description: + name: build_config + sha256: ad77deb6e9c143a3f550fbb4c5c1e0c6aadabe24274898d06b9526c61b9cf4fb + url: "https://pub.dev" + source: hosted + version: "1.0.0" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: "6bc5544ea6ce4428266e7ea680e945c68806c4aae2da0eb5e9ccf38df8d6acbf" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + build_resolvers: + dependency: transitive + description: + name: build_resolvers + sha256: "9aae031a54ab0beebc30a888c93e900d15ae2fd8883d031dbfbd5ebdb57f5a4c" + url: "https://pub.dev" + source: hosted + version: "2.0.9" + build_runner: + dependency: "direct dev" + description: + name: build_runner + sha256: "361d73f37cd48c47a81a61421eb1cc4cfd2324516fbb52f1bc4c9a01834ef2de" + url: "https://pub.dev" + source: hosted + version: "2.1.11" + build_runner_core: + dependency: transitive + description: + name: build_runner_core + sha256: f4d6244cc071ba842c296cb1c4ee1b31596b9f924300647ac7a1445493471a3f + url: "https://pub.dev" + source: hosted + version: "7.2.3" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: "9334e4d598ea41862dd812f64b6ce959e83afab265e59d3248802c05d7cef109" + url: "https://pub.dev" + source: hosted + version: "8.3.3" + characters: + dependency: transitive + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: dd007e4fb8270916820a0d66e24f619266b60773cddd082c6439341645af2659 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + clock: + dependency: transitive + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + cloud_firestore: + dependency: "direct main" + description: + name: cloud_firestore + sha256: "1e8c8ffca5a543cf26dea2d5b408d0df9783e02415bfec2405e7ddd08ba93016" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + cloud_firestore_platform_interface: + dependency: transitive + description: + name: cloud_firestore_platform_interface + sha256: "72cdaa9ca869725d4370c59175d0264d66f2cd1e02f972de92a6cd30fe677264" + url: "https://pub.dev" + source: hosted + version: "5.5.10" + cloud_firestore_web: + dependency: transitive + description: + name: cloud_firestore_web + sha256: "62868db09f6cb6e5c68f73124d80fb33395d6ec76076d6a5b122427e55f058a5" + url: "https://pub.dev" + source: hosted + version: "2.6.19" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: bdb1ab29be158c4784d7f9b7b693745a0719c5899e31c01112782bb1cb871e80 + url: "https://pub.dev" + source: hosted + version: "4.1.0" + collection: + dependency: transitive + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + colorful_iconify_flutter: + dependency: transitive + description: + name: colorful_iconify_flutter + sha256: "5ebc63d10c3e97279849162b415fda8e71b7ff24ddd663539d7328279dae9c1d" + url: "https://pub.dev" + source: hosted + version: "0.0.2" + convert: + dependency: transitive + description: + name: convert + sha256: "196284f26f69444b7f5c50692b55ec25da86d9e500451dc09333bf2e3ad69259" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + crypto: + dependency: transitive + description: + name: crypto + sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + url: "https://pub.dev" + source: hosted + version: "3.0.2" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be + url: "https://pub.dev" + source: hosted + version: "1.0.5" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: "8aff82f9b26fd868992e5430335a9d773bfef01e1d852d7ba71bf4c5d9349351" + url: "https://pub.dev" + source: hosted + version: "2.2.3" + equatable: + dependency: "direct main" + description: + name: equatable + sha256: c6094fd1efad3046334a9c40bee022147e55c25401ccd89b94e373e3edadd375 + url: "https://pub.dev" + source: hosted + version: "2.0.3" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + ffi: + dependency: transitive + description: + name: ffi + sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + file: + dependency: transitive + description: + name: file + sha256: b69516f2c26a5bcac4eee2e32512e1a5205ab312b3536c1c1227b2b942b5f9ad + url: "https://pub.dev" + source: hosted + version: "6.1.2" + firebase_app_check: + dependency: "direct main" + description: + name: firebase_app_check + sha256: "187e233738c2e41576c547860453300809153a764eacb533c022862c60f69bf6" + url: "https://pub.dev" + source: hosted + version: "0.0.6+17" + firebase_app_check_platform_interface: + dependency: transitive + description: + name: firebase_app_check_platform_interface + sha256: "7671fd1a6fedf7b1e7b4f5beea7fe4426229eefd1edd8de5db45ba8883c8e3cf" + url: "https://pub.dev" + source: hosted + version: "0.0.4+11" + firebase_app_check_web: + dependency: transitive + description: + name: firebase_app_check_web + sha256: f399d0dc6b4e5a51ce21cf0ed337dc81798d250f9d2eb2bf7bfc216a08fe54a5 + url: "https://pub.dev" + source: hosted + version: "0.0.6" + firebase_auth: + dependency: "direct main" + description: + name: firebase_auth + sha256: f60f19dc91aacaac2f0c1f8ada801f0630a1ef036cd8c582329dc91a8235165a + url: "https://pub.dev" + source: hosted + version: "3.4.1" + firebase_auth_platform_interface: + dependency: transitive + description: + name: firebase_auth_platform_interface + sha256: "981c4840d063531b9fbd0df1cbbae6c7a1de6d6ca3317bc80448b6a685bb4fcb" + url: "https://pub.dev" + source: hosted + version: "6.3.1" + firebase_auth_web: + dependency: transitive + description: + name: firebase_auth_web + sha256: "2569fb466a015fe944dd71927f8ddc09fc11a577dc45a480cc68ac1cee9930a4" + url: "https://pub.dev" + source: hosted + version: "3.3.19" + firebase_core: + dependency: transitive + description: + name: firebase_core + sha256: "776fc0d7a0da72adfb7e486c6be05798b7f4290a8be4819cb1e6cc93077e60f2" + url: "https://pub.dev" + source: hosted + version: "1.19.0" + firebase_core_platform_interface: + dependency: transitive + description: + name: firebase_core_platform_interface + sha256: "195560eedebc480157aa60fc75d1a81e881a5c417482387ff60be2ca4a2fe645" + url: "https://pub.dev" + source: hosted + version: "4.4.3" + firebase_core_web: + dependency: transitive + description: + name: firebase_core_web + sha256: "69a95a15d0452aff672214993323a7a472cbac93fe51d60f3612e26de7e75869" + url: "https://pub.dev" + source: hosted + version: "1.7.0" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: "04be3e934c52e082558cc9ee21f42f5c1cd7a1262f4c63cd0357c08d5bba81ec" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_bloc: + dependency: "direct main" + description: + name: flutter_bloc + sha256: "7b84d9777db3e30a5051c6718331be57e4cfc0c2424be82ac1771392cad7dbe8" + url: "https://pub.dev" + source: hosted + version: "8.0.1" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 + url: "https://pub.dev" + source: hosted + version: "1.0.4" + flutter_spinkit: + dependency: "direct main" + description: + name: flutter_spinkit + sha256: "77a2117c0517ff909221f3160b8eb20052ab5216107581168af574ac1f05dff8" + url: "https://pub.dev" + source: hosted + version: "5.1.0" + flutter_svg: + dependency: transitive + description: + name: flutter_svg + sha256: "69043137413dbe1e5daa557c840af307fd784da0f2a89e1e25b3cd8edd788d3e" + url: "https://pub.dev" + source: hosted + version: "1.1.1+1" + flutter_test: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + fluttertoast: + dependency: "direct main" + description: + name: fluttertoast + sha256: b528e78a4e69957bb8a33d9e8ceaa728801bb7c6ce599e811e49cf6d94d17fef + url: "https://pub.dev" + source: hosted + version: "8.0.9" + font_awesome_flutter: + dependency: "direct main" + description: + name: font_awesome_flutter + sha256: "7811c8b4e7455d2f60ef30022a6a07376de2858b47aecbe2861965b348fe2016" + url: "https://pub.dev" + source: hosted + version: "10.1.0" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + sha256: "4f4a162323c86ffc1245765cfe138872b8f069deb42f7dbb36115fa27f31469b" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + glob: + dependency: transitive + description: + name: glob + sha256: c51b4fdfee4d281f49b8c957f1add91b815473597f76bcf07377987f66a55729 + url: "https://pub.dev" + source: hosted + version: "2.1.0" + google_fonts: + dependency: "direct main" + description: + name: google_fonts + sha256: "8729bcb3d4226758859855dd7b9124a49d6acb4d197f58a18a34597ca10056e8" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + google_sign_in: + dependency: "direct main" + description: + name: google_sign_in + sha256: a8a411a395935e0cef56172298dfeaa7f3556babc56912d98a3b761106a470c2 + url: "https://pub.dev" + source: hosted + version: "5.4.0" + google_sign_in_android: + dependency: transitive + description: + name: google_sign_in_android + sha256: "23f5f2ac9c007bf0cf02380baaa67fff039efbf38b7a2a285c376c753f9767fa" + url: "https://pub.dev" + source: hosted + version: "6.0.1" + google_sign_in_ios: + dependency: transitive + description: + name: google_sign_in_ios + sha256: "8b80074ccda41b62553010b311506f5022f7d2701e4f22765546b3125450f9f3" + url: "https://pub.dev" + source: hosted + version: "5.4.0" + google_sign_in_platform_interface: + dependency: transitive + description: + name: google_sign_in_platform_interface + sha256: "252d0fadcd1e7939f1e00602eca1020b585d448aaa4b87c33137ca8717cd9e87" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + google_sign_in_web: + dependency: transitive + description: + name: google_sign_in_web + sha256: "5b35c221169a7b3e0fc15043ac09102ef542300ef92f2e1f05d5d8efde263af5" + url: "https://pub.dev" + source: hosted + version: "0.10.2" + googleapis: + dependency: "direct main" + description: + name: googleapis + sha256: "0140b42e942daf5fcf316645435c572fe968233c9e6841208b4ed28184ead48e" + url: "https://pub.dev" + source: hosted + version: "9.1.0" + graphs: + dependency: transitive + description: + name: graphs + sha256: ae0b3d956ff324c6f8671f08dcb2dbd71c99cdbf2aa3ca63a14190c47aa6679c + url: "https://pub.dev" + source: hosted + version: "2.1.0" + http: + dependency: "direct main" + description: + name: http + sha256: "2ed163531e071c2c6b7c659635112f24cb64ecbebf6af46b550d536c0b1aa112" + url: "https://pub.dev" + source: hosted + version: "0.13.4" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: db3060f22889f3d9d55f6a217565486737037eec3609f7f3eca4d0c67ee0d8a0 + url: "https://pub.dev" + source: hosted + version: "4.0.1" + iconify_flutter: + dependency: "direct main" + description: + name: iconify_flutter + sha256: "28e41d51ad4f1551c4105e007c200a3872532621a368ecf28fbad6c707a61acf" + url: "https://pub.dev" + source: hosted + version: "0.0.4" + intl: + dependency: transitive + description: + name: intl + sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" + url: "https://pub.dev" + source: hosted + version: "0.17.0" + io: + dependency: transitive + description: + name: io + sha256: "0d4c73c3653ab85bf696d51a9657604c900a370549196a91f33e4c39af760852" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + js: + dependency: transitive + description: + name: js + sha256: a5e201311cb08bf3912ebbe9a2be096e182d703f881136ec1e81a2338a9e120d + url: "https://pub.dev" + source: hosted + version: "0.6.4" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: cb314f00b2488de7bc575207e54402cd2f92363f333a7933fd1b0631af226baa + url: "https://pub.dev" + source: hosted + version: "4.6.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c + url: "https://pub.dev" + source: hosted + version: "1.0.1" + logger: + dependency: transitive + description: + name: logger + sha256: "5076f09225f91dc49289a4ccb92df2eeea9ea01cf7c26d49b3a1f04c6a49eec1" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + logging: + dependency: transitive + description: + name: logging + sha256: "293ae2d49fd79d4c04944c3a26dfd313382d5f52e821ec57119230ae16031ad4" + url: "https://pub.dev" + source: hosted + version: "1.0.2" + matcher: + dependency: transitive + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: transitive + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: transitive + description: + name: mime + sha256: dab22e92b41aa1255ea90ddc4bc2feaf35544fd0728e209638cad041a6e3928a + url: "https://pub.dev" + source: hosted + version: "1.0.2" + nested: + dependency: transitive + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: transitive + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + path_drawing: + dependency: transitive + description: + name: path_drawing + sha256: a19347362f85a45aadf6bdfa3c04f18ff6676c445375eecd6251f9e09b9db551 + url: "https://pub.dev" + source: hosted + version: "1.0.0" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: "9508ebdf1c3ac3a68ad5fb15edab8b026382999f18f77352349e56fbd74183ac" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + path_provider: + dependency: transitive + description: + name: path_provider + sha256: "050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd" + url: "https://pub.dev" + source: hosted + version: "2.0.11" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: cf7c403a541fc68cd398fb91a7eea8ec234813547d5b55245eed644d1246c5d8 + url: "https://pub.dev" + source: hosted + version: "2.0.16" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + sha256: "641df59948e0fda05ca71f1dd6768d6da7f0ceb52aab734bf9050db54fca7f4c" + url: "https://pub.dev" + source: hosted + version: "2.0.10" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379 + url: "https://pub.dev" + source: hosted + version: "2.1.7" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + sha256: "2a97e7fbb7ae9dcd0dfc1220a78e9ec3e71da691912e617e8715ff2a13086ae8" + url: "https://pub.dev" + source: hosted + version: "2.0.6" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "27dc7a224fcd07444cb5e0e60423ccacea3e13cf00fc5282ac2c918132da931d" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: "999d3dc2ac03ca3f8433018efa40b73558fa4f9759bf8383a217861d120c7d74" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "2ebb289dc4764ec397f5cd3ca9881c6d17196130a7d646ed022a0dd9c2e25a71" + url: "https://pub.dev" + source: hosted + version: "5.0.0" + platform: + dependency: transitive + description: + name: platform + sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "075f927ebbab4262ace8d0b283929ac5410c0ac4e7fc123c76429564facfb757" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + pool: + dependency: transitive + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" + url: "https://pub.dev" + source: hosted + version: "4.2.4" + provider: + dependency: transitive + description: + name: provider + sha256: "8d7d4c2df46d6a6270a4e10404bfecb18a937e3e00f710c260d0a10415ce6b7b" + url: "https://pub.dev" + source: hosted + version: "6.0.3" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "816c1a640e952d213ddd223b3e7aafae08cd9f8e1f6864eed304cc13b0272b07" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: "3686efe4a4613a4449b1a4ae08670aadbd3376f2e78d93e3f8f0919db02a7256" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + quiver: + dependency: transitive + description: + name: quiver + sha256: "93982981971e812c94d4a6fa3a57b89f9ec12b38b6380cd3c1370c3b01e4580e" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + rename: + dependency: "direct dev" + description: + name: rename + sha256: "2e3f2800712e00c66fee8eb6285d290c418e99fe3f69ca794d9fa09654bb005e" + url: "https://pub.dev" + source: hosted + version: "2.0.1" + shelf: + dependency: transitive + description: + name: shelf + sha256: f27c6406c89ab3921ed4a3bbdc38d48676f8b78fe537cbdbeb0d2c0f661026d7 + url: "https://pub.dev" + source: hosted + version: "1.3.1" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "6db16374bc3497d21aa0eebe674d3db9fdf82082aac0f04dc7b44e4af5b08afc" + url: "https://pub.dev" + source: hosted + version: "1.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: ed464977cb26a1f41537e177e190c67223dbd9f4f683489b6ab2e5d211ec564e + url: "https://pub.dev" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: transitive + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + timing: + dependency: transitive + description: + name: timing + sha256: c386d07d7f5efc613479a7c4d9d64b03710b03cfaa7e8ad5f2bfb295a1f0dfad + url: "https://pub.dev" + source: hosted + version: "1.0.0" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: transitive + description: + name: watcher + sha256: e42dfcc48f67618344da967b10f62de57e04bae01d9d3af4c2596f3712a88c99 + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: "3a969ddcc204a3e34e863d204b29c0752716f78b6f9cc8235083208d268a4ccd" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + win32: + dependency: transitive + description: + name: win32 + sha256: "6b75ac2ddd42f5c226fdaf4498a2b04071c06f1f2b8f7ab1c3f77cc7f2285ff1" + url: "https://pub.dev" + source: hosted + version: "2.7.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "060b6e1c891d956f72b5ac9463466c37cce3fa962a921532fc001e86fe93438e" + url: "https://pub.dev" + source: hosted + version: "0.2.0+1" + xml: + dependency: transitive + description: + name: xml + sha256: ac0e3f4bf00ba2708c33fbabbbe766300e509f8c82dbd4ab6525039813f7e2fb + url: "https://pub.dev" + source: hosted + version: "6.1.0" + yaml: + dependency: transitive + description: + name: yaml + sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370" + url: "https://pub.dev" + source: hosted + version: "3.1.1" +sdks: + dart: ">=3.2.0-0 <4.0.0" + flutter: ">=3.0.0" diff --git a/cping-old/pubspec.yaml b/cping-old/pubspec.yaml new file mode 100644 index 0000000..baff754 --- /dev/null +++ b/cping-old/pubspec.yaml @@ -0,0 +1,105 @@ +name: cping +description: An android to app to remind you of upcoming coding contests. + +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.12.0 <3.0.0" + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + firebase_auth: ^3.4.1 + google_sign_in: + flutter_bloc: + equatable: + font_awesome_flutter: + http: + googleapis: + iconify_flutter: ^0.0.4 + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + cloud_firestore: ^3.2.1 + flutter_spinkit: ^5.1.0 + google_fonts: 2.2.0 + fluttertoast: ^8.0.9 + firebase_app_check: ^0.0.6+17 +dev_dependencies: + build_runner: + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^1.0.0 + rename: ^2.0.1 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + assets: + - assets/ + - assets/images/ + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # fonts: + # - family: Kaisei + # fonts: + # - asset: assets/fonts/kaisei.ttf + # - family: Roboto + # fonts: + # - asset: assets/fonts/roboto.ttf + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/cping/.gitignore b/cping/.gitignore index 544fe57..29a3a50 100644 --- a/cping/.gitignore +++ b/cping/.gitignore @@ -8,6 +8,7 @@ .buildlog/ .history .svn/ +migrate_working_dir/ # IntelliJ related *.iml @@ -26,14 +27,10 @@ .dart_tool/ .flutter-plugins .flutter-plugins-dependencies -.packages .pub-cache/ .pub/ /build/ -# Web related -lib/generated_plugin_registrant.dart - # Symbolication related app.*.symbols @@ -44,7 +41,3 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release - -.fvm/ - -/android/gradle.properties \ No newline at end of file diff --git a/cping/.metadata b/cping/.metadata index 0301ca1..d2765fc 100644 --- a/cping/.metadata +++ b/cping/.metadata @@ -4,7 +4,42 @@ # This file should be version controlled and should not be manually edited. version: - revision: 0b5d99eae6174b54ecca0a3fef6ba69228adc552 - channel: master + revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d" + channel: "stable" project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: android + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: ios + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: linux + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: macos + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: web + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + - platform: windows + create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/cping/README.md b/cping/README.md new file mode 100644 index 0000000..83d0e8b --- /dev/null +++ b/cping/README.md @@ -0,0 +1,16 @@ +# cping + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/cping/analysis_options.yaml b/cping/analysis_options.yaml index 61b6c4d..0d29021 100644 --- a/cping/analysis_options.yaml +++ b/cping/analysis_options.yaml @@ -13,8 +13,7 @@ linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. + # and their documentation is published at https://dart.dev/lints. # # Instead of disabling a lint rule for the entire project in the # section below, it can also be suppressed for a single line of code diff --git a/cping/android/.gitignore b/cping/android/.gitignore index 606f576..6f56801 100644 --- a/cping/android/.gitignore +++ b/cping/android/.gitignore @@ -9,5 +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 \ No newline at end of file +**/*.keystore +**/*.jks diff --git a/cping/android/app/build.gradle b/cping/android/app/build.gradle index 79a3ec9..7ddd972 100644 --- a/cping/android/app/build.gradle +++ b/cping/android/app/build.gradle @@ -1,3 +1,12 @@ +plugins { + id "com.android.application" + // START: FlutterFire Configuration + id 'com.google.gms.google-services' + // END: FlutterFire Configuration + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +15,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,43 +25,40 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -def keystoreProperties = new Properties() -def keystorePropertiesFile = rootProject.file('key.properties') -if (keystorePropertiesFile.exists()) { - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) -} - android { - compileSdkVersion 32 + namespace "com.example.cping" + compileSdk 34 + ndkVersion flutter.ndkVersion 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.neumannics.cping" + applicationId "com.example.cping" + // 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 21 - targetSdkVersion 32 + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } - signingConfigs { - release { - storeFile file(RELEASE_STORE_FILE) - storePassword RELEASE_STORE_PASSWORD - keyAlias RELEASE_KEY_ALIAS - keyPassword RELEASE_KEY_PASSWORD - } - } buildTypes { release { - signingConfig signingConfigs.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 } } } @@ -66,13 +67,4 @@ flutter { source '../..' } -apply plugin: 'com.google.gms.google-services' -dependencies { - // Import the Firebase BoM - implementation platform('com.google.firebase:firebase-bom:30.2.0') - // Add the dependency for the Firebase SDK for Google Analytics - // When using the BoM, don't specify versions in Firebase dependencies - implementation 'com.google.firebase:firebase-analytics' - // Add the dependencies for any other desired Firebase products - // https://firebase.google.com/docs/android/setup#available-libraries -} \ No newline at end of file +dependencies {} diff --git a/cping/android/app/google-services.json b/cping/android/app/google-services.json index 8625713..c465b1b 100644 --- a/cping/android/app/google-services.json +++ b/cping/android/app/google-services.json @@ -7,36 +7,39 @@ "client": [ { "client_info": { - "mobilesdk_app_id": "1:846569139481:android:38a3dfcaefbcd12984a988", + "mobilesdk_app_id": "1:846569139481:android:9f87c44cf0363cb984a988", "android_client_info": { - "package_name": "com.neumannics.cping" + "package_name": "com.example.cping" } }, "oauth_client": [ { - "client_id": "846569139481-7qccckk5ej59cin6ni6sdgamio1gqn3j.apps.googleusercontent.com", + "client_id": "846569139481-t8j0rff9b5gmqajth8d69nh2eguih481.apps.googleusercontent.com", "client_type": 1, "android_info": { - "package_name": "com.neumannics.cping", - "certificate_hash": "bf8a619416ee6a27008c8226a5e073dbc4661448" + "package_name": "com.example.cping", + "certificate_hash": "d04c7e453e18a773057aaba70fb9c6299a20bed9" } - }, - { - "client_id": "846569139481-sebc60nlbsigmhb633b6k4gojsgac481.apps.googleusercontent.com", - "client_type": 3 } ], "api_key": [ { - "current_key": "AIzaSyBdZMzl5Q9ebbCVECLdbB6K9M6OOBj4uiY" + "current_key": "AIzaSyB07CLY1DJybU5oRzqG1QOUA2b_ensNd-0" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { - "client_id": "846569139481-sebc60nlbsigmhb633b6k4gojsgac481.apps.googleusercontent.com", + "client_id": "846569139481-dorhgvi75bg40760fbn906vb48calhha.apps.googleusercontent.com", "client_type": 3 + }, + { + "client_id": "846569139481-de2ciumgqoluo9qtatv4r111kh3jmm88.apps.googleusercontent.com", + "client_type": 2, + "ios_info": { + "bundle_id": "com.example.cping" + } } ] } diff --git a/cping/android/app/src/debug/AndroidManifest.xml b/cping/android/app/src/debug/AndroidManifest.xml index 889f331..399f698 100644 --- a/cping/android/app/src/debug/AndroidManifest.xml +++ b/cping/android/app/src/debug/AndroidManifest.xml @@ -1,6 +1,6 @@ - - diff --git a/cping/android/app/src/main/AndroidManifest.xml b/cping/android/app/src/main/AndroidManifest.xml index 5205ee1..ab1a3c5 100644 --- a/cping/android/app/src/main/AndroidManifest.xml +++ b/cping/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ - + - - - - - - - - - + @@ -39,9 +30,15 @@ android:name="flutterEmbedding" android:value="2" /> - - - - - + + + + + + + diff --git a/cping/android/app/src/main/kotlin/com/example/cping/MainActivity.kt b/cping/android/app/src/main/kotlin/com/example/cping/MainActivity.kt new file mode 100644 index 0000000..d03029e --- /dev/null +++ b/cping/android/app/src/main/kotlin/com/example/cping/MainActivity.kt @@ -0,0 +1,5 @@ +package com.example.cping + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() diff --git a/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index a9978bf..db77bb4 100644 Binary files a/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/cping/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index 86abc22..17987b7 100644 Binary files a/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/cping/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 7d5c190..09d4391 100644 Binary files a/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/cping/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 43c3c8f..d5f1c8d 100644 Binary files a/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/cping/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 670e9cf..4d6372e 100644 Binary files a/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/cping/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/cping/android/app/src/main/res/values-night/styles.xml b/cping/android/app/src/main/res/values-night/styles.xml index 449a9f9..06952be 100644 --- a/cping/android/app/src/main/res/values-night/styles.xml +++ b/cping/android/app/src/main/res/values-night/styles.xml @@ -3,14 +3,14 @@