Posts

Integrating firebase auth

 Steps to integrate firebase auth 1 . Create new project at https://console.firebase.google.com 2 . Authentication > Sign-in method, enable the services that you want to use 3 . If you enable Phone auth, make sure you add test phone number      In the Authorized domains, add your domains to whitelisted localhost, www.yourdomain.com etc... Go Back to Settings > Project Settings > General to get the configuration files. 1. You apps > Add app and fill your application information. You can fill fingerprints later. You do not have to download the config file yet. 2. Once you've added the app Click on that app and now it's time to add fingerprints.     You need to add three finger prints  Publishing requirement for iOS Once you've downloaded the config file for iOS, you can't just drag and drop to the iOS folder as it might not detect and will say error that google-service.plist file not found. 1 - Download the config file 2 - Open .xcprojec...

Enable virtualization support in AMD

 1 - Check whether your system is already supported Hyper-V and Virtualization    Ctrl + Shift + Esc > Processigns 2- If it's not supported, restart PC > BIOS > CPU Configuration > Virtualization > Enable for Intel Processors BIOS > OC > CPU Features > SVM Mode Enable 3 - Go to turn on windows features on/off settings in the control panel 4 - Tick Hyper V and apply changes.  

Speeding up the flutter android gradle build

Image
  Make sure you’re using the latest version of Gradle. Generally with every new update there is a significant improvement in performance. Note : Java 1.8 is faster than 1.6. Make sure it’s updated too. Try to minimize the use of modules. There are many cases where we need to fork the library to modify it to fit according to our needs. A module takes 4x greater time than a  jar  or  aar  dependency. This happens due to the fact that the module needs to be built from the scratch every time. Enable gradle Offline Work from  Preferences-> Build, Execution, Deployment-> Build Tools-> Gradle . This will not allow the gradle to access the network during build and force it to resolve the dependencies from the cache itself. Note: This only works if all the dependencies are downloaded and stored in the cache once. If you need to modify or add a new dependency you’ll have to disable this option else the build would fail. Open up the  gradle.properties ...

Brief steps to integrate onesignal to flutter apps

Step 01 - Add onesignal package to pubspec.yaml onesignal_flutter: ^2.6.1 Step 02 - Add the following code to the Line 01 of app > build.gradle file //Need to put this in the headline for onesignal plugin buildscript {     repositories {         // ...         maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal     }     dependencies {         // ...         // OneSignal-Gradle-Plugin         classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.6, 0.99.99]'     } } apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' Step 03 - Add the following lines to after the activity tag of app > src > main > AndroidManifest.xml file         <intent-filter android:label="@string/app_name" android:autoVerify="true">             <action android:na...

Adding SHA certificates on firebase

 keytool -exportcert -list -v -alias thin-kyar -keystore ThinKyar.keystore Valid from: Sun May 31 18:13:35 MMT 2020 until: Mon May 19 18:13:35 MMT 2070 Certificate fingerprints:          MD5:  F5:81:19:B1:03:FA:84:28:7C:8C:FA:44:D1:21:B4:03          SHA1: 8D:5D:28:4E:CE:E2:26:E9:10:CB:E0:3D:79:E7:A0:BF:91:BB:4C:45          SHA256: C8:2E:23:59:50:0C:E1:9A:F2:A4:21:7D:82:61:95:B3:0B:90:7A:10:97:95:3B:94:E4:86:EE:04:D8:CB:A4:71 Signature algorithm name: SHA1withRSA Subject Public Key Algorithm: 2048-bit RSA key Version: 3 //Getting debug certificate keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore Default password for debug keystore - android Owner: C=US, O=Android, CN=Android Debug Issuer: C=US, O=Android, CN=Android Debug Serial number: 1 Valid from: Fri May 08 14:41:06 MMT 2020 until: Sun May 01 14:41:06 MMT 2050 Certificate fingerprints:       ...

Publishing on apple store

1. Configure required .plist configurations for each thirdparty plugins that you're using for the project. 2. Add required description in .plist file whether you're using that features or not. 3 . Add required capabilities by opening xCode workspace project. 4. Link required frameworks from Runner > Build Phases > Link binary with libraries 5. Product > Archive and then upload using the uploader

Signing APK file in flutter

1 . Create key.properties inside android/key.properties file with the following contents storePassword=xxxxxxxx keyPassword=xxxxxxxx keyAlias=alias-name storeFile=C:/path/to/.keystore 2. Add the following codes inside android/app/build.gradle file def keystoreProperties = new Properties()    def keystorePropertiesFile = rootProject.file('key.properties')    if (keystorePropertiesFile.exists()) {        keystoreProperties.load(new FileInputStream(keystorePropertiesFile))    } 3. Add the following codes inside android/app/build.gradle file's just after default config     signingConfigs {            release {                keyAlias keystoreProperties['keyAlias']                keyPassword keystoreProperties['keyPassword']                storeFile keystorePrope...