├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── base_caller │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── Application.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── lib ├── utils │ ├── routes.dart │ └── MySharedPreferences.dart ├── models │ ├── address.dart │ ├── phone.dart │ ├── email.dart │ └── response.dart ├── widgets │ ├── themes.dart │ ├── httpCall.dart │ └── drawer.dart ├── main.dart ├── pages │ ├── main_page.dart │ └── home_page.dart └── test.dart ├── .metadata ├── .gitignore ├── README.md ├── LICENSE ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /lib/utils/routes.dart: -------------------------------------------------------------------------------- 1 | class MyRoutes { 2 | static String welcomeRoute = "/"; 3 | static String homeRoute = "/next"; 4 | } 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/models/address.dart: -------------------------------------------------------------------------------- 1 | class Address { 2 | late String address; 3 | 4 | Address.fromJson(Map json) { 5 | this.address =json['address']; 6 | } 7 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DreadedLama/BaseCaller/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/base_caller/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.base_caller 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /lib/models/phone.dart: -------------------------------------------------------------------------------- 1 | class Phone { 2 | late String number; 3 | late String info; 4 | 5 | Phone.fromJson(Map json) { 6 | this.number =json['number']; 7 | this.info =json['info']; 8 | } 9 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /lib/models/email.dart: -------------------------------------------------------------------------------- 1 | class Email { 2 | late String? email; 3 | late String? uri; 4 | 5 | Email.fromJson(Map? json) { 6 | if(json != null) { 7 | this.email = json['email']; 8 | this.uri = json['uri']; 9 | } else { 10 | this.email = 'Not registered'; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/widgets/themes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MyTheme { 4 | static ThemeMode get darkThemeMode => ThemeMode.dark; 5 | 6 | static ThemeMode get lightThemeMode => ThemeMode.light; 7 | 8 | static ThemeData get darkTheme => ThemeData(brightness: Brightness.dark); 9 | 10 | static ThemeData get lightTheme => ThemeData(brightness: Brightness.light); 11 | } 12 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/widgets/httpCall.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:http/http.dart' as http; 4 | 5 | class MyHttpCalls { 6 | static Future fetchDetails(String mobileNumber, String? token) async { 7 | final response = await http.get( 8 | Uri.parse( 9 | 'https://webapi-noneu.truecaller.com/search?countryCode=in&q=$mobileNumber'), 10 | headers: { 11 | HttpHeaders.authorizationHeader: 'Bearer ' + token!, 12 | }, 13 | ); 14 | return response.body; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "base_caller", 3 | "short_name": "base_caller", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/base_caller/Application.kt: -------------------------------------------------------------------------------- 1 | //package com.example.base_caller 2 | // 3 | ////import `in`.jvapps.system_alert_window.SystemAlertWindowPlugin 4 | //import io.flutter.app.FlutterApplication 5 | //import io.flutter.plugin.common.PluginRegistry 6 | //import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback 7 | // 8 | // 9 | //class Application : FlutterApplication(), PluginRegistrantCallback { 10 | // override fun onCreate() { 11 | // super.onCreate() 12 | // SystemAlertWindowPlugin.setPluginRegistrant(this) 13 | // } 14 | // 15 | // override fun registerWith(registry: PluginRegistry) { 16 | // SystemAlertWindowPlugin.registerWith(registry.registrarFor("in.jvapps.system_alert_window")); 17 | // } 18 | //} -------------------------------------------------------------------------------- /lib/models/response.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:base_caller/models/address.dart'; 4 | import 'package:base_caller/models/email.dart'; 5 | import 'package:base_caller/models/phone.dart'; 6 | 7 | class TrueCallerResponse { 8 | 9 | late bool isBusiness; 10 | late String name; 11 | late bool isVerified; 12 | late String? image; 13 | late String number; 14 | late Address? address; 15 | late Phone? phone; 16 | late Email? email; 17 | 18 | 19 | TrueCallerResponse.fromJson(Map json) { 20 | this.isBusiness =json['isBusiness']; 21 | this.name =json['name']; 22 | this.isVerified =json['isVerified']; 23 | this.image =json['image']; 24 | this.address = Address.fromJson(json['addresses'][0]); 25 | this.phone = Phone.fromJson(json['phones'][0]); 26 | this.email = Email.fromJson(json['email']); 27 | } 28 | } -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BaseCaller 2 | 3 | An app that fetches details from Truecaller and displays them in a simple UI. 4 | Displays information like image, name, number, provider, email(if registered) and location. Also displays a blue badge if the number is registered. 5 | 6 | ![1](https://user-images.githubusercontent.com/21179059/146418542-7ba397af-b05c-4677-b757-3ad4d4b32e0e.png) 7 | ![2](https://user-images.githubusercontent.com/21179059/146418762-b84f1f9e-6793-4f71-b887-bd9c9d0e60ce.png) 8 | 9 | Use truecaller token to retrieve data 10 | 11 | ### Getting Truecaller auth token (Deprecated, won't work now) 12 | 13 | (Tested with truecaller app version - 11.81.7) 14 | 15 | Go to Truecaller app settings -> Privacy Center -> Download my data 16 | Download the json file and open it. 17 | 18 | 19 | Token is the value of key "id". It will look similar to - 20 | ```` 21 | a1i01--TQkyvDkO-VW8akLyvbyPBFxr11Fi_KOD1Sv1RGv7UPMJV-KU9C62xo4nd 22 | 23 | ```` 24 | -------------------------------------------------------------------------------- /lib/utils/MySharedPreferences.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class MySharedPreferences { 4 | MySharedPreferences._privateConstructor(); 5 | 6 | static final MySharedPreferences instance = MySharedPreferences._privateConstructor(); 7 | 8 | setBooleanValue(String key, bool value) async { 9 | SharedPreferences myPrefs = await SharedPreferences.getInstance(); 10 | myPrefs.setBool(key, value); 11 | } 12 | 13 | Future getBooleanValue(String key) async { 14 | SharedPreferences myPrefs = await SharedPreferences.getInstance(); 15 | return myPrefs.getBool(key) ?? false; 16 | } 17 | 18 | setStringValue(String key, String value) async { 19 | SharedPreferences myPrefs = await SharedPreferences.getInstance(); 20 | myPrefs.setString(key, value); 21 | } 22 | 23 | Future getStringValue(String key) async { 24 | SharedPreferences myPrefs = await SharedPreferences.getInstance(); 25 | return myPrefs.getString(key); 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Pushpender Yadav 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // // This is a basic Flutter widget test. 2 | // // 3 | // // To perform an interaction with a widget in your test, use the WidgetTester 4 | // // utility that Flutter provides. For example, you can send tap and scroll 5 | // // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // // tree, read text, and verify that the values of widget properties are correct. 7 | // 8 | // import 'package:flutter/material.dart'; 9 | // import 'package:flutter_test/flutter_test.dart'; 10 | // 11 | // import 'package:base_caller/main.dart'; 12 | // 13 | // void main() { 14 | // testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // // Build our app and trigger a frame. 16 | // await tester.pumpWidget(MyApp()); 17 | // 18 | // // Verify that our counter starts at 0. 19 | // expect(find.text('0'), findsOneWidget); 20 | // expect(find.text('1'), findsNothing); 21 | // 22 | // // Tap the '+' icon and trigger a frame. 23 | // await tester.tap(find.byIcon(Icons.add)); 24 | // await tester.pump(); 25 | // 26 | // // Verify that our counter has incremented. 27 | // expect(find.text('0'), findsNothing); 28 | // expect(find.text('1'), findsOneWidget); 29 | // }); 30 | // } 31 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: base_caller 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | permission_handler: ^8.1.4+2 27 | contacts_service: ^0.6.1 28 | easy_dynamic_theme: ^2.2.0 29 | http: ^0.13.3 30 | shared_preferences: ^2.0.7 31 | 32 | flutter: 33 | uses-material-design: true -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:base_caller/pages/home_page.dart'; 4 | import 'package:base_caller/pages/main_page.dart'; 5 | import 'package:base_caller/utils/MySharedPreferences.dart'; 6 | import 'package:base_caller/utils/routes.dart'; 7 | import 'package:base_caller/widgets/themes.dart'; 8 | import 'package:easy_dynamic_theme/easy_dynamic_theme.dart'; 9 | import 'package:flutter/material.dart'; 10 | 11 | bool darkThemeMode = false; 12 | bool isOpenedFirstTime = false; 13 | 14 | Future main() async { 15 | WidgetsFlutterBinding.ensureInitialized(); 16 | 17 | isOpenedFirstTime = 18 | await MySharedPreferences.instance.getBooleanValue("firstTimeOpen"); 19 | runApp( 20 | EasyDynamicThemeWidget( 21 | child: MyApp(), 22 | ), 23 | ); 24 | } 25 | 26 | class MyApp extends StatefulWidget { 27 | @override 28 | _HomePageState createState() => _HomePageState(); 29 | } 30 | 31 | class _HomePageState extends State { 32 | @override 33 | Widget build(BuildContext context) { 34 | return MaterialApp( 35 | theme: MyTheme.lightTheme, 36 | darkTheme: MyTheme.darkTheme, 37 | themeMode: EasyDynamicTheme.of(context).themeMode, 38 | initialRoute: 39 | (isOpenedFirstTime) ? MyRoutes.homeRoute : MyRoutes.welcomeRoute, 40 | routes: { 41 | MyRoutes.welcomeRoute: (context) => MainPage(), 42 | MyRoutes.homeRoute: (context) => HomePage(), 43 | }, 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | base_caller 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.base_caller" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | shrinkResources false 50 | minifyEnabled false 51 | } 52 | } 53 | } 54 | 55 | flutter { 56 | source '../..' 57 | } 58 | 59 | dependencies { 60 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 61 | } 62 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | android:requestLegacyExternalStorage="true" 13 | 20 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/widgets/drawer.dart: -------------------------------------------------------------------------------- 1 | import 'package:easy_dynamic_theme/easy_dynamic_theme.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:permission_handler/permission_handler.dart'; 4 | 5 | class MyDrawer extends StatefulWidget { 6 | @override 7 | _MyDrawer createState() => _MyDrawer(); 8 | } 9 | 10 | class _MyDrawer extends State { 11 | bool contacts = false; 12 | bool displayOverOtherApps = false; 13 | bool darkTheme = false; 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Drawer( 18 | child: ListView( 19 | children: [ 20 | DrawerHeader( 21 | padding: EdgeInsets.zero, 22 | child: UserAccountsDrawerHeader( 23 | margin: EdgeInsets.zero, 24 | accountName: Text("TestABC"), 25 | accountEmail: Text("test@test.com"), 26 | )), 27 | CheckboxListTile( 28 | title: Text("Read Contacts"), 29 | value: this.contacts, 30 | onChanged: (bool? value) async { 31 | var status = await _checkContactPermission(); 32 | if (status == PermissionStatus.granted) { 33 | setState(() { 34 | this.contacts = true; 35 | }); 36 | } else { 37 | var status = await _getContactPermission(); 38 | if (status == PermissionStatus.granted) { 39 | setState(() { 40 | this.contacts = value!; 41 | }); 42 | } 43 | } 44 | }, 45 | ), 46 | SizedBox(height: 50), 47 | CheckboxListTile( 48 | title: Text("Dark Theme"), 49 | value: this.darkTheme, 50 | onChanged: (bool? value) async { 51 | setState(() { 52 | this.darkTheme = value!; 53 | EasyDynamicTheme.of(context) 54 | .changeTheme(dynamic: false, dark: value); 55 | }); 56 | }, 57 | ), 58 | ], 59 | ), 60 | ); 61 | } 62 | } 63 | 64 | //Check contacts permission 65 | Future _checkContactPermission() async { 66 | return await Permission.contacts.status; 67 | } 68 | 69 | //Get contacts permission 70 | Future _getContactPermission() async { 71 | final PermissionStatus permission = await Permission.contacts.status; 72 | if (permission != PermissionStatus.granted) { 73 | final Map permissionStatus = 74 | await [Permission.contacts].request(); 75 | return permissionStatus[Permission.contacts] ?? PermissionStatus.denied; 76 | } else { 77 | return permission; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/pages/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:base_caller/utils/MySharedPreferences.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'home_page.dart'; 5 | 6 | class MainPage extends StatefulWidget { 7 | @override 8 | _MainPage createState() => _MainPage(); 9 | } 10 | 11 | class _MainPage extends State { 12 | bool changedButton = false; 13 | TextEditingController tokenController = new TextEditingController(); 14 | final _formKey = GlobalKey(); 15 | 16 | moveToMain(BuildContext context) async { 17 | if (_formKey.currentState!.validate()) { 18 | setState(() { 19 | changedButton = true; 20 | }); 21 | await Future.delayed(Duration(seconds: 1)); 22 | MySharedPreferences.instance 23 | .setStringValue("token", tokenController.text); 24 | await Navigator.pushReplacement(context, 25 | MaterialPageRoute(builder: (BuildContext context) => HomePage())); 26 | setState(() { 27 | changedButton = false; 28 | }); 29 | } 30 | } 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | MySharedPreferences.instance.setBooleanValue("firstTimeOpen", true); 35 | return Material( 36 | child: SingleChildScrollView( 37 | child: Form( 38 | key: _formKey, 39 | child: Column( 40 | children: [ 41 | SizedBox(height: 150), 42 | Text("Welcome", 43 | style: TextStyle( 44 | fontSize: 30, 45 | fontWeight: FontWeight.bold, 46 | )), 47 | SizedBox(height: 50), 48 | Padding( 49 | padding: 50 | const EdgeInsets.symmetric(vertical: 16, horizontal: 32), 51 | child: Column( 52 | children: [ 53 | TextFormField( 54 | controller: tokenController, 55 | decoration: InputDecoration( 56 | hintText: "Truecaller Auth Token", 57 | labelText: "Token", 58 | ), 59 | validator: (value) { 60 | if (value!.isEmpty) { 61 | return "Token cannot be empty"; 62 | } 63 | return null; 64 | }, 65 | ), 66 | SizedBox(height: 40), 67 | Material( 68 | color: Colors.blueAccent, 69 | borderRadius: 70 | BorderRadius.circular(changedButton ? 40 : 8), 71 | child: InkWell( 72 | onTap: () => moveToMain(context), 73 | child: AnimatedContainer( 74 | duration: Duration(seconds: 1), 75 | width: changedButton ? 40 : 120, 76 | height: 40, 77 | alignment: Alignment.center, 78 | child: changedButton 79 | ? Icon(Icons.done) 80 | : Text( 81 | "Next", 82 | style: TextStyle( 83 | color: Colors.white, 84 | fontSize: 15, 85 | ), 86 | ), 87 | ), 88 | ), 89 | ), 90 | ], 91 | ), 92 | ), 93 | ], 94 | ), 95 | ), 96 | ), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | base_caller 27 | 28 | 29 | 30 | 33 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:base_caller/models/response.dart'; 4 | import 'package:base_caller/utils/MySharedPreferences.dart'; 5 | import 'package:base_caller/widgets/drawer.dart'; 6 | import 'package:base_caller/widgets/httpCall.dart'; 7 | import 'package:flutter/material.dart'; 8 | 9 | String? trueCallerToken; 10 | 11 | class HomePage extends StatefulWidget { 12 | @override 13 | _HomePage createState() => _HomePage(); 14 | } 15 | 16 | class _HomePage extends State { 17 | String mobNumber = ''; 18 | String searchNumber = 'N'; 19 | 20 | stopBackwardRoute(BuildContext context) async { 21 | await Navigator.pushReplacement(context, 22 | MaterialPageRoute(builder: (BuildContext context) => HomePage())); 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | getTokenString(); 28 | stopBackwardRoute(context); 29 | return Scaffold( 30 | appBar: AppBar( 31 | title: Text('BaseCaller'), 32 | backgroundColor: Colors.blueAccent, 33 | ), 34 | body: SingleChildScrollView( 35 | child: Center( 36 | /** Card Widget **/ 37 | child: Card( 38 | child: Padding( 39 | padding: const EdgeInsets.all(15.0), 40 | child: Column( 41 | children: [ 42 | SizedBox(height: 10), 43 | TextField( 44 | decoration: InputDecoration( 45 | border: OutlineInputBorder(), 46 | hintText: 'Search', 47 | suffixIcon: new IconButton( 48 | icon: new Icon(Icons.search), 49 | onPressed: () { 50 | searchNumber = 'Y'; 51 | setState(() {}); 52 | }, 53 | ), 54 | ), 55 | onChanged: (value) { 56 | this.mobNumber = value; 57 | setState(() {}); 58 | }, 59 | ), 60 | SizedBox(height: 10), 61 | SingleChildScrollView( 62 | child: FutureBuilder( 63 | future: (searchNumber == 'Y') 64 | ? MyHttpCalls.fetchDetails(mobNumber, trueCallerToken) 65 | : null, 66 | builder: (BuildContext context, 67 | AsyncSnapshot snapshot) { 68 | if (!snapshot.hasData) { 69 | // while data is loading: 70 | return Center( 71 | child: CircularProgressIndicator(), 72 | ); 73 | } else { 74 | // data loaded: 75 | this.searchNumber = 'N'; 76 | final responseJson = snapshot.data; 77 | TrueCallerResponse response = 78 | TrueCallerResponse.fromJson( 79 | jsonDecode(responseJson!)); 80 | return Center( 81 | child: SingleChildScrollView( 82 | child: Column( 83 | children: [ 84 | CircleAvatar( 85 | radius: 60.0, 86 | backgroundImage: (response.image != null) 87 | ? NetworkImage( 88 | response.image.toString()) 89 | : null, 90 | ), 91 | SizedBox(height: 50), 92 | Row( 93 | mainAxisAlignment: MainAxisAlignment.center, 94 | children: [ 95 | Text('Name - ${response.name}'), 96 | Icon( 97 | (response.isVerified == true) 98 | ? Icons.verified_user 99 | : null, 100 | color: (response.isVerified == true) 101 | ? Colors.blueAccent 102 | : null), 103 | ], 104 | ), 105 | SizedBox(height: 20), 106 | Text('Number - ${response.phone!.number}'), 107 | SizedBox(height: 20), 108 | Text('${response.phone!.info}'), 109 | SizedBox(height: 20), 110 | Text('Email - ${response.email!.email}'), 111 | SizedBox(height: 20), 112 | Text( 113 | 'Location - ${response.address!.address}') 114 | ], 115 | ), 116 | ), 117 | ); 118 | } 119 | }, 120 | ), 121 | ), 122 | ], 123 | ), 124 | ), 125 | ), 126 | ), 127 | ), 128 | drawer: MyDrawer(), 129 | ); 130 | } 131 | } 132 | 133 | void getTokenString() { 134 | final callerToken = MySharedPreferences.instance.getStringValue("token"); 135 | callerToken.then((value) => trueCallerToken = value); 136 | } 137 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.2" 11 | characters: 12 | dependency: transitive 13 | description: 14 | name: characters 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.1.0" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.3.1" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.15.0" 32 | contacts_service: 33 | dependency: "direct main" 34 | description: 35 | name: contacts_service 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "0.6.3" 39 | easy_dynamic_theme: 40 | dependency: "direct main" 41 | description: 42 | name: easy_dynamic_theme 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.2.0" 46 | ffi: 47 | dependency: transitive 48 | description: 49 | name: ffi 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.2" 53 | file: 54 | dependency: transitive 55 | description: 56 | name: file 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "6.1.2" 60 | flutter: 61 | dependency: "direct main" 62 | description: flutter 63 | source: sdk 64 | version: "0.0.0" 65 | flutter_web_plugins: 66 | dependency: transitive 67 | description: flutter 68 | source: sdk 69 | version: "0.0.0" 70 | http: 71 | dependency: "direct main" 72 | description: 73 | name: http 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "0.13.3" 77 | http_parser: 78 | dependency: transitive 79 | description: 80 | name: http_parser 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "4.0.0" 84 | js: 85 | dependency: transitive 86 | description: 87 | name: js 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.6.3" 91 | matcher: 92 | dependency: transitive 93 | description: 94 | name: matcher 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.12.11" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.3.0" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.8.0" 112 | path_provider_linux: 113 | dependency: transitive 114 | description: 115 | name: path_provider_linux 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.1.0" 119 | path_provider_platform_interface: 120 | dependency: transitive 121 | description: 122 | name: path_provider_platform_interface 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.0.1" 126 | path_provider_windows: 127 | dependency: transitive 128 | description: 129 | name: path_provider_windows 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "2.0.3" 133 | pedantic: 134 | dependency: transitive 135 | description: 136 | name: pedantic 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "1.11.1" 140 | permission_handler: 141 | dependency: "direct main" 142 | description: 143 | name: permission_handler 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "8.1.6" 147 | permission_handler_platform_interface: 148 | dependency: transitive 149 | description: 150 | name: permission_handler_platform_interface 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "3.6.1" 154 | platform: 155 | dependency: transitive 156 | description: 157 | name: platform 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "3.0.2" 161 | plugin_platform_interface: 162 | dependency: transitive 163 | description: 164 | name: plugin_platform_interface 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "2.0.1" 168 | process: 169 | dependency: transitive 170 | description: 171 | name: process 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "4.2.3" 175 | quiver: 176 | dependency: transitive 177 | description: 178 | name: quiver 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "3.0.1" 182 | shared_preferences: 183 | dependency: "direct main" 184 | description: 185 | name: shared_preferences 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "2.0.7" 189 | shared_preferences_linux: 190 | dependency: transitive 191 | description: 192 | name: shared_preferences_linux 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "2.0.2" 196 | shared_preferences_macos: 197 | dependency: transitive 198 | description: 199 | name: shared_preferences_macos 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "2.0.2" 203 | shared_preferences_platform_interface: 204 | dependency: transitive 205 | description: 206 | name: shared_preferences_platform_interface 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "2.0.0" 210 | shared_preferences_web: 211 | dependency: transitive 212 | description: 213 | name: shared_preferences_web 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "2.0.2" 217 | shared_preferences_windows: 218 | dependency: transitive 219 | description: 220 | name: shared_preferences_windows 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "2.0.2" 224 | sky_engine: 225 | dependency: transitive 226 | description: flutter 227 | source: sdk 228 | version: "0.0.99" 229 | source_span: 230 | dependency: transitive 231 | description: 232 | name: source_span 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.8.1" 236 | stack_trace: 237 | dependency: transitive 238 | description: 239 | name: stack_trace 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.10.0" 243 | string_scanner: 244 | dependency: transitive 245 | description: 246 | name: string_scanner 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.1.0" 250 | term_glyph: 251 | dependency: transitive 252 | description: 253 | name: term_glyph 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "1.2.0" 257 | typed_data: 258 | dependency: transitive 259 | description: 260 | name: typed_data 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.3.0" 264 | vector_math: 265 | dependency: transitive 266 | description: 267 | name: vector_math 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.1.0" 271 | win32: 272 | dependency: transitive 273 | description: 274 | name: win32 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "2.2.9" 278 | xdg_directories: 279 | dependency: transitive 280 | description: 281 | name: xdg_directories 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.2.0" 285 | sdks: 286 | dart: ">=2.13.0 <3.0.0" 287 | flutter: ">=2.0.0" 288 | -------------------------------------------------------------------------------- /lib/test.dart: -------------------------------------------------------------------------------- 1 | // import 'dart:async'; 2 | // 3 | // import 'package:flutter/material.dart'; 4 | // import 'package:system_alert_window/system_alert_window.dart'; 5 | // 6 | // void main() => runApp(MyApp()); 7 | // 8 | // class MyApp extends StatefulWidget { 9 | // @override 10 | // _MyAppState createState() => _MyAppState(); 11 | // } 12 | // 13 | // class _MyAppState extends State { 14 | // bool _isShowingWindow = false; 15 | // bool _isUpdatedWindow = false; 16 | // 17 | // @override 18 | // void initState() { 19 | // super.initState(); 20 | // _checkPermissions(); 21 | // SystemAlertWindow.registerOnClickListener(callBack); 22 | // } 23 | // 24 | // Future _checkPermissions() async { 25 | // await SystemAlertWindow.checkPermissions; 26 | // } 27 | // 28 | // void _showOverlayWindow() { 29 | // if (!_isShowingWindow) { 30 | // SystemWindowHeader header = SystemWindowHeader( 31 | // title: SystemWindowText( 32 | // text: "Incoming Call", fontSize: 10, textColor: Colors.black45), 33 | // padding: SystemWindowPadding.setSymmetricPadding(12, 12), 34 | // subTitle: SystemWindowText( 35 | // text: "9898989899", 36 | // fontSize: 14, 37 | // fontWeight: FontWeight.BOLD, 38 | // textColor: Colors.black87), 39 | // decoration: SystemWindowDecoration(startColor: Colors.grey[100]), 40 | // button: SystemWindowButton( 41 | // text: SystemWindowText( 42 | // text: "Personal", fontSize: 10, textColor: Colors.black45), 43 | // tag: "personal_btn"), 44 | // buttonPosition: ButtonPosition.TRAILING); 45 | // SystemWindowBody body = SystemWindowBody( 46 | // rows: [ 47 | // EachRow( 48 | // columns: [ 49 | // EachColumn( 50 | // text: SystemWindowText( 51 | // text: "Some body", fontSize: 12, textColor: Colors.black45), 52 | // ), 53 | // ], 54 | // gravity: ContentGravity.CENTER, 55 | // ), 56 | // EachRow(columns: [ 57 | // EachColumn( 58 | // text: SystemWindowText( 59 | // text: "Long data of the body", 60 | // fontSize: 12, 61 | // textColor: Colors.black87, 62 | // fontWeight: FontWeight.BOLD), 63 | // padding: SystemWindowPadding.setSymmetricPadding(6, 8), 64 | // decoration: SystemWindowDecoration( 65 | // startColor: Colors.black12, borderRadius: 25.0), 66 | // margin: SystemWindowMargin(top: 4)), 67 | // ], gravity: ContentGravity.CENTER), 68 | // EachRow( 69 | // columns: [ 70 | // EachColumn( 71 | // text: SystemWindowText( 72 | // text: "Notes", fontSize: 10, textColor: Colors.black45), 73 | // ), 74 | // ], 75 | // gravity: ContentGravity.LEFT, 76 | // margin: SystemWindowMargin(top: 8), 77 | // ), 78 | // EachRow( 79 | // columns: [ 80 | // EachColumn( 81 | // text: SystemWindowText( 82 | // text: "Some random notes.", 83 | // fontSize: 13, 84 | // textColor: Colors.black54, 85 | // fontWeight: FontWeight.BOLD), 86 | // ), 87 | // ], 88 | // gravity: ContentGravity.LEFT, 89 | // ), 90 | // ], 91 | // padding: SystemWindowPadding(left: 16, right: 16, bottom: 12, top: 12), 92 | // ); 93 | // SystemWindowFooter footer = SystemWindowFooter( 94 | // buttons: [ 95 | // SystemWindowButton( 96 | // text: SystemWindowText( 97 | // text: "Simple button", 98 | // fontSize: 12, 99 | // textColor: Color.fromRGBO(250, 139, 97, 1)), 100 | // tag: "simple_button", 101 | // padding: 102 | // SystemWindowPadding(left: 10, right: 10, bottom: 10, top: 10), 103 | // width: 0, 104 | // height: SystemWindowButton.WRAP_CONTENT, 105 | // decoration: SystemWindowDecoration( 106 | // startColor: Colors.white, 107 | // endColor: Colors.white, 108 | // borderWidth: 0, 109 | // borderRadius: 0.0), 110 | // ), 111 | // SystemWindowButton( 112 | // text: SystemWindowText( 113 | // text: "Focus button", fontSize: 12, textColor: Colors.white), 114 | // tag: "focus_button", 115 | // width: 0, 116 | // padding: 117 | // SystemWindowPadding(left: 10, right: 10, bottom: 10, top: 10), 118 | // height: SystemWindowButton.WRAP_CONTENT, 119 | // decoration: SystemWindowDecoration( 120 | // startColor: Color.fromRGBO(250, 139, 97, 1), 121 | // endColor: Color.fromRGBO(247, 28, 88, 1), 122 | // borderWidth: 0, 123 | // borderRadius: 30.0), 124 | // ) 125 | // ], 126 | // padding: SystemWindowPadding(left: 16, right: 16, bottom: 12), 127 | // decoration: SystemWindowDecoration(startColor: Colors.white), 128 | // buttonsPosition: ButtonPosition.CENTER); 129 | // SystemAlertWindow.showSystemWindow( 130 | // height: 230, 131 | // header: header, 132 | // body: body, 133 | // footer: footer, 134 | // margin: SystemWindowMargin(left: 8, right: 8, top: 200, bottom: 0), 135 | // gravity: SystemWindowGravity.TOP); 136 | // setState(() { 137 | // _isShowingWindow = true; 138 | // }); 139 | // } else if (!_isUpdatedWindow) { 140 | // SystemWindowHeader header = SystemWindowHeader( 141 | // title: SystemWindowText( 142 | // text: "Outgoing Call", fontSize: 10, textColor: Colors.black45), 143 | // padding: SystemWindowPadding.setSymmetricPadding(12, 12), 144 | // subTitle: SystemWindowText( 145 | // text: "8989898989", 146 | // fontSize: 14, 147 | // fontWeight: FontWeight.BOLD, 148 | // textColor: Colors.black87), 149 | // decoration: SystemWindowDecoration(startColor: Colors.grey[100]), 150 | // button: SystemWindowButton( 151 | // text: SystemWindowText( 152 | // text: "Personal", fontSize: 10, textColor: Colors.black45), 153 | // tag: "personal_btn"), 154 | // buttonPosition: ButtonPosition.TRAILING); 155 | // SystemWindowBody body = SystemWindowBody( 156 | // rows: [ 157 | // EachRow( 158 | // columns: [ 159 | // EachColumn( 160 | // text: SystemWindowText( 161 | // text: "Updated body", 162 | // fontSize: 12, 163 | // textColor: Colors.black45), 164 | // ), 165 | // ], 166 | // gravity: ContentGravity.CENTER, 167 | // ), 168 | // EachRow(columns: [ 169 | // EachColumn( 170 | // text: SystemWindowText( 171 | // text: "Updated long data of the body", 172 | // fontSize: 12, 173 | // textColor: Colors.black87, 174 | // fontWeight: FontWeight.BOLD), 175 | // padding: SystemWindowPadding.setSymmetricPadding(6, 8), 176 | // decoration: SystemWindowDecoration( 177 | // startColor: Colors.black12, borderRadius: 25.0), 178 | // margin: SystemWindowMargin(top: 4)), 179 | // ], gravity: ContentGravity.CENTER), 180 | // EachRow( 181 | // columns: [ 182 | // EachColumn( 183 | // text: SystemWindowText( 184 | // text: "Notes", fontSize: 10, textColor: Colors.black45), 185 | // ), 186 | // ], 187 | // gravity: ContentGravity.LEFT, 188 | // margin: SystemWindowMargin(top: 8), 189 | // ), 190 | // EachRow( 191 | // columns: [ 192 | // EachColumn( 193 | // text: SystemWindowText( 194 | // text: "Updated random notes.", 195 | // fontSize: 13, 196 | // textColor: Colors.black54, 197 | // fontWeight: FontWeight.BOLD), 198 | // ), 199 | // ], 200 | // gravity: ContentGravity.LEFT, 201 | // ), 202 | // ], 203 | // padding: SystemWindowPadding(left: 16, right: 16, bottom: 12, top: 12), 204 | // ); 205 | // SystemWindowFooter footer = SystemWindowFooter( 206 | // buttons: [ 207 | // SystemWindowButton( 208 | // text: SystemWindowText( 209 | // text: "Updated Simple button", 210 | // fontSize: 12, 211 | // textColor: Color.fromRGBO(250, 139, 97, 1)), 212 | // tag: "updated_simple_button", 213 | // padding: 214 | // SystemWindowPadding(left: 10, right: 10, bottom: 10, top: 10), 215 | // width: 0, 216 | // height: SystemWindowButton.WRAP_CONTENT, 217 | // decoration: SystemWindowDecoration( 218 | // startColor: Colors.white, 219 | // endColor: Colors.white, 220 | // borderWidth: 0, 221 | // borderRadius: 0.0), 222 | // ), 223 | // SystemWindowButton( 224 | // text: SystemWindowText( 225 | // text: "Focus button", fontSize: 12, textColor: Colors.white), 226 | // tag: "focus_button", 227 | // width: 0, 228 | // padding: 229 | // SystemWindowPadding(left: 10, right: 10, bottom: 10, top: 10), 230 | // height: SystemWindowButton.WRAP_CONTENT, 231 | // decoration: SystemWindowDecoration( 232 | // startColor: Color.fromRGBO(250, 139, 97, 1), 233 | // endColor: Color.fromRGBO(247, 28, 88, 1), 234 | // borderWidth: 0, 235 | // borderRadius: 30.0), 236 | // ) 237 | // ], 238 | // padding: SystemWindowPadding(left: 16, right: 16, bottom: 12), 239 | // decoration: SystemWindowDecoration(startColor: Colors.white), 240 | // buttonsPosition: ButtonPosition.CENTER); 241 | // SystemAlertWindow.updateSystemWindow( 242 | // height: 230, 243 | // header: header, 244 | // body: body, 245 | // footer: footer, 246 | // margin: SystemWindowMargin(left: 8, right: 8, top: 200, bottom: 0), 247 | // gravity: SystemWindowGravity.TOP); 248 | // setState(() { 249 | // _isUpdatedWindow = true; 250 | // }); 251 | // } else { 252 | // setState(() { 253 | // _isShowingWindow = false; 254 | // _isUpdatedWindow = false; 255 | // }); 256 | // SystemAlertWindow.closeSystemWindow(); 257 | // } 258 | // } 259 | // 260 | // @override 261 | // Widget build(BuildContext context) { 262 | // return MaterialApp( 263 | // home: Scaffold( 264 | // appBar: AppBar( 265 | // title: const Text('System Alert Window Example App'), 266 | // ), 267 | // body: Center( 268 | // child: Column( 269 | // children: [ 270 | // Padding( 271 | // padding: const EdgeInsets.symmetric(vertical: 8.0), 272 | // child: MaterialButton( 273 | // onPressed: _showOverlayWindow, 274 | // textColor: Colors.white, 275 | // child: !_isShowingWindow 276 | // ? Text("Show system alert window") 277 | // : !_isUpdatedWindow 278 | // ? Text("Update system alert window") 279 | // : Text("Close system alert window"), 280 | // color: Colors.deepOrange, 281 | // padding: const EdgeInsets.symmetric(vertical: 8.0), 282 | // ), 283 | // ) 284 | // ], 285 | // ), 286 | // ), 287 | // ), 288 | // ); 289 | // } 290 | // } 291 | // 292 | // /// 293 | // /// Whenever a button is clicked, this method will be invoked with a tag (As tag is unique for every button, it helps in identifying the button). 294 | // /// You can check for the tag value and perform the relevant action for the button click 295 | // /// 296 | // void callBack(String tag) { 297 | // print(tag); 298 | // switch (tag) { 299 | // case "simple_button": 300 | // case "updated_simple_button": 301 | // SystemAlertWindow.closeSystemWindow(); 302 | // break; 303 | // case "focus_button": 304 | // print("Focus button has been called"); 305 | // break; 306 | // default: 307 | // print("OnClick event of $tag"); 308 | // } 309 | // } 310 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseCaller; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseCaller; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.baseCaller; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | --------------------------------------------------------------------------------