RetroShare / retroshare-mobile

Retroshare mobile phone client
25 stars 8 forks source link

Attempting to compile retroshare-mobile with latest flutter.... #25

Open defnax opened 3 years ago

defnax commented 3 years ago

Atempting to compile retroshare-mobile with latest flutter....

Kumaravinash9 commented 3 years ago

@Kumaravinash9 you using retroshare? never saw you yet on retroshare,

Yes, I am on retroshare. Sent you a invite link😁

Kumaravinash9 commented 3 years ago

i forget this feature, every mobile app has it, Whatsapp/Telegram... only for Retroshare mobile app not for Desktop.

When want send a voice message via private chat or distant chat, (only for 1:1 not for chat rooms) updated the todo list.

  • Send a Voice Message

https://pub.dev/packages/flutter_sound https://pub.dev/packages/audio_recorder

// Import package
import 'package:audio_recorder/audio_recorder.dart';

// Check permissions before starting
bool hasPermissions = await AudioRecorder.hasPermissions;

// Get the state of the recorder
bool isRecording = await AudioRecorder.isRecording;

// Start recording
await AudioRecorder.start(path: _controller.text, audioOutputFormat: AudioOutputFormat.AAC);

// Stop recording
Recording recording = await AudioRecorder.stop();
print("Path : ${recording.path},  Format : ${recording.audioOutputFormat},  Duration : ${recording.duration},  Extension : ${recording.extension},");

Actually we have some issue with it. Actually as of now retroshare service is not accesable to large file. Mean to say we are not able to send large files.

Kumaravinash9 commented 3 years ago

Actually we have some issue with it. Actually as of now retroshare service is not accesable to large file. Mean to say we are not able to send large files.

https://rrtutors.com/tutorials/flutter-audio-recodring-application

But i mean about send short files voice messages takes not so much in filesize, about 10-60 seconds maximum record and send the audio file. on other side the users needs download then play it on the chat view .

Ok.

Kumaravinash9 commented 3 years ago
  1. Profile generation problem is not related to retroshare_mobile. Actually this is the problem with the retroshare-service.
  2. Long invite is working. In short invite why this is not working i donot know
  3. This feature is not added yet. I will add it later
  4. I think distance chat should work. Actually i have added the feature for it inside the app. But i will again look into this.
  5. Can you please explain what do you mean by switch profile. @defnax
Kumaravinash9 commented 3 years ago

Konrads first mokups seems there was a idea with Friends list and view the direct friends when inm right with status. On the main Friends view image

Actually i got some other code base. It was different from above and Konrads only added UI not added with backend as i know

Kumaravinash9 commented 3 years ago

I worked on B1rd code base that is aviable on GIT lab

Kumaravinash9 commented 3 years ago
@csoler @defnax @obrasero pervious UI was looking good or this one
Sukhamjot-Singh commented 2 years ago

I am quite familiar with Flutter as well. Are these issues still open?

defnax commented 2 years ago

you see there is a big todo list on top :) i dont know when @Kumaravinash9 continous, i thinked you will work on the webui? to get useable

Sukhamjot-Singh commented 2 years ago

you see there is a big todo list on top :) i dont know when @Kumaravinash9 continous, i thinked you will work on the webui? to get useable

Yes, I will work on webui. Maybe I can take this project and webui as a GSOC '22 proposal.

ayushkoli772 commented 10 months ago

Hello @defnax,

I hope this message finds you well. I am writing to express my high interest in contributing to improving Retroshare Android Client, as it aligns perfectly with my skill set and interests.

I would appreciate any updates on the progress of this issue and if there are specific areas where new contributors can get involved.

Additionally, I'm curious to know if the Improve the Retroshare Android client is being considered as one of the GSoC 2024 project ideas.

Thank you for your time and consideration. I'm excited about the possibility of contributing to this project πŸ˜„

defnax commented 10 months ago

Thank you that you want help us. we need a working retroshare mobile version, that android client not yet useable. At moment i cant check if some one write me on my desktop retroshare.

Please install and run ouer Retroshare desktop client to get in contact with us. you will meet all retroshare devs and testers there and potential mobile testers too, when you want do some new mobile builds.

I dont know about GSOC 2024 maybe @csoler knows it.

csoler commented 10 months ago

Hi. GSoC projects are now in discussion, which means that we have the possibility to define a project that goes along these lines.

ayushkoli772 commented 10 months ago

Hello @defnax and @csoler,

Thank you for your prompt responses. I'm excited to hear about the possibility of a GSoC project aligning with improving the Retroshare Android client.

To get started, could you please guide me and provide pointers to the resources I can refer to? I'm eager to contribute effectively to this exciting project and be a part of this.

Thank you once again for your time and consideration πŸ˜„

defnax commented 10 months ago

2 Years ago tried my self build rs mobile app. howto build: https://github.com/RetroShare/retroshare-mobile/blob/master/AndroidStudio-Flutter-setup.md

But best was you install Retroshare desktop and you get faster feedback :)

old historie https://github.com/kdebiec/GSoC_2019 https://blog.freifunk.net/2021/08/22/gsoc21-retroshare-mobile-final-evaluations/

ayushkoli772 commented 10 months ago

I have installed Retroshare desktop, can you please tell me how to get in contact with devs and fellow contributors. Thank you :)

ayushkoli772 commented 10 months ago

Just saw your email. Thank you :)

defnax commented 10 months ago

any news @ayushkoli772

ayushkoli772 commented 10 months ago

Hello @defnax, one of the reason behind the error i was getting that i mentioned you about on RS is due to my android studio not being up to date and is not yet fixed because i was not able to come much online and work on it as my university semester started few days ago and i was travelling back.

Till now i have followed all the initial steps on https://github.com/RetroShare/retroshare-mobile/blob/master/AndroidStudio-Flutter-setup.md and cloned the repository locally. I think i just need to update the android studio and few changes, which im working on right now and I will be all set to further understand the codebase and start contributing.

Thank you very much for your concern and support :)

ayushkoli772 commented 10 months ago

Hey @defnax, I get this output after flutter pub get <return> at the RS mobile: Prepare project

image

When i searched for this issue, i got this on Stackoverflow. Can i just ignore this and proceed forward or there is some other solution? Please guide me in solving this issue.

Edit: Another solution i got is changing the pubspec.yaml file. By changing the sdk constraint from '>=2.2.2 <3.0.0' to '>=3.0.0 <4.0.0' or higher than '>=2.2.2 <3.0.0'. Most said this worked so can i go ahead with this?

Edit 2: I tried above by changing sdk constraint but it now gives this error:

image

defnax commented 10 months ago

@Sukhamjot-Singh @Kumaravinash9 @obrasero you know how to solves this?

defnax commented 10 months ago

When i searched for this issue, i got this on Stackoverflow. Can i just ignore this and proceed forward or there is some other solution? Please guide me in solving this issue.

Edit: Another solution i got is changing the pubspec.yaml file. By changing the sdk constraint from '>=2.2.2 <3.0.0' to '>=3.0.0 <4.0.0' or higher than '>=2.2.2 <3.0.0'. Most said this worked so can i go ahead with this?

i think you need update what possible we did last time tested/compiled over 2 years ago, in this time everything is updated, i think we need use latest too when im right. last time tested 09/2021

maybe loook here if it helps with webview_flutter

i think you need update the webview_flutter too, to minimum 2.0.0 https://pub.dev/packages/webview_flutter/versions

i see 1.0.7

ayushkoli772 commented 10 months ago

Thank you but when I did this, it is now giving error for rxdart

I think we need to update all the versions of packages to null safe versions.

Edit: I updated versions of rxdart and flutter_html but now im getting this error message-

image

how to change version of retroshare_api_wrapper in pubspec.yaml? as its like this-

image

Do we need to first update the pubspec.yaml of Retroshare_Wrapper? as in its pubspec the sdk version is lower-

image

defnax commented 10 months ago

i think you need create your own fork/branch of retroshare_api_wrapper and update it to can use it. best was nice if the wrapper is available at his own repo, but not importend yet

https://github.com/RetroShare/Retroshare-Wrapper

ayushkoli772 commented 10 months ago

Forking the retroshare_api_wrapper worked to solve above error.

But many packages were not updated upto null safety version so i used 'flutter pub upgrade --major-versions' command to automatically upgrade the versions.

At the end i got this output should i ignore this and move forward? image

defnax commented 10 months ago

oh possible you need update to Android embedding v2, but im not sure if now after lots of updates if some code are incompatible or has now issues and need fixes i has no experience with flutter and android you need to try

@Kumaravinash9 @Sukhamjot-Singh

ayushkoli772 commented 10 months ago

Thank you.

I dont know if @Kumaravinash9 and @Sukhamjot-Singh are working on this issue so I will start on my own for now.

After google search i found these guides/tutorials to migrate android embedding to V2-

https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects https://kaizerjerry.medium.com/migrating-flutter-app-to-android-v2-1cd03a2c762b https://www.youtube.com/watch?v=Qu7afHmErAs https://www.youtube.com/watch?v=MEQztXAvJmA

defnax commented 10 months ago

no iwanted only ask this both guys they are not more here, maybe they give us tips , but no feedback mroe from this guys

ayushkoli772 commented 10 months ago

So can i proceed ahead by referring above mentioned references?

defnax commented 10 months ago

You can continoue to fix yourself when you can solve it i hope

ayushkoli772 commented 10 months ago

Got it. I will try to solve this. Thank you :)

Kumaravinash9 commented 10 months ago

Hi @ayushkoli772, let me know if you want any help.
contact email : kumaravinash1526@gmail.com

defnax commented 10 months ago

you started to migrate to v2?

ayushkoli772 commented 10 months ago

Not yet, I was waiting if I may get some suggestions from @Kumaravinash9. But I'm gonna start it from tonight.

defnax commented 10 months ago

Not yet, I was waiting if I may get some suggestions from @Kumaravinash9. But I'm gonna start it from tonight.

better write him a mail, for get answer, he comes very less here

ayushkoli772 commented 10 months ago

Yes, i have written him a mail.

Im starting tonight as I'm totally free this weekend so i hope it gets resolved.

I will update you about my progress. Thank you :)

defnax commented 10 months ago

i think ineed create a new issue topic for the todo list, this issee post get lots off topic comments :D

ayushkoli772 commented 10 months ago

Yes, I guess.

Sorry I was supposed to message you on Retroshare but still am here :(

I will try to use Retroshare chat as often as I can.

ayushkoli772 commented 9 months ago

Hello @defnax, please check my mail on RS :)

defnax commented 9 months ago

hi sorry, iwasnt at home, but you can write in developers chat and ask, but that some retroshare geeks and few devs rest only testers. im at work, not available in rs to chat

ayushkoli772 commented 9 months ago

Got it. Thanks :)

defnax commented 9 months ago

you can post your errors here, wait till avinash answers you per mail. in dev chat more people see then here :)

ayushkoli772 commented 9 months ago

Im getting this window after opening project in Android studio

image

I have tried solutions given on stackoverflow and flutter github issues but still get same window

defnax commented 9 months ago

it was nice you make a pr for your changes, to able to test the code too. and the new branch for the wrapper. i tested two years ago witzh old code retroshare-mobile seems i need when get time to create a new dev equipment from fresh 2021 i was able to run from android studio retroshare-mobile

ayushkoli772 commented 9 months ago

I will make a PR once i migrate to V2 embeddings after following all steps that are told in this guide-

https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects

If the code still doesnt works then we need to review whole code and do changes, as according to this guide we just need to do changes in MainActivitity.kt and AndroidManifest.xml

ayushkoli772 commented 9 months ago

Im getting this window after opening project in Android studio

image

This is resolved, just needed to set flutter sdk path and git config --global --add safe.directory '*' inside AS CLI.

I have kept record of errors that i faced and also their solutions so I will also update the installation guide in readme, incase changes are needed

defnax commented 9 months ago

great news, i have issue to set sdk in android studio

defnax commented 9 months ago

I have kept record of errors that i faced and also their solutions so I will also update the installation guide in readme, incase changes are needed

I saw that that readme needs better instruction, i tried now after two years in readme is missed lots of howto to configure the Android studio i need recheck it again when you done, and improve readme more

ayushkoli772 commented 9 months ago

There is some progress, after flutter pub get it used to show message that there is need to migrate it to V2 embeddings but after i followed the steps from guide of migration its not showing now-

image

But the code has so many errors that i cant compile it and check whether the app is properly running or not. What should i do?