Skip to content

Instantly share code, notes, and snippets.

View ellet0's full-sized avatar
🏠
Working from home

Ellet ellet0

🏠
Working from home
View GitHub Profile
@ellet0
ellet0 / problem.md
Last active April 28, 2024 00:25
Dart Bloc State Design Data Loss Issue

Click on this link for more details

You will have to join Bloc server on Discord

@ellet0
ellet0 / README.md
Last active November 6, 2023 22:34
Fix flutter Gradle fails with native android plugins when using the latest version of gradle

Fix flutter Gradle fails with native android plugins when using the latest version of gradle

The issue is, when you use Flutter plugins that didn't update thier android gradle to 8.0 or later and if you use gradle 8.0 or above, the build will faield since gradle 8.0 require the package name as property in android block in build.gradle called namespace instead of AndroidManifest.xml so you should remove package attribute from AndroidManifest.xml and define it in build.gradle, in order to upgrade to Android gradle 8.0 plugin with gradle 8.0 or above but if you use plugins that didn't do those changes, the build will failed, also the latest version of android studio have Java jdk 17, so all new projects should target that version, but android old apis don't support that

@ellet0
ellet0 / README.md
Last active March 31, 2024 21:14
Ktor VPS Server Deployment Steps
  1. Make sure you are on Mac OS or Linux, if your are on windows please use Git Bash instead of default terminal

And then connect to your ops server using ssh command with password or ssh key:

ssh root@SERVER_IP_ADDRESS
  1. Go to where your ktor server exists, create folder called "keys" and cd in there, then copy the absolute path of this folder