tomboy-notes / tomdroid

Tomboy notes on Android
https://play.google.com/store/apps/details?id=org.tomdroid
GNU Lesser General Public License v2.1
18 stars 14 forks source link

Could you please prepare some basic build instructions? #220

Open alex-ter opened 7 years ago

alex-ter commented 7 years ago

Hello Stefan (@j-4), Olivier (@obilodeau),

I want to write a Dropbox sync plugin for Tomdroid, which would use Dropbox' API directly instead of syncing to SD card and then using something like Dropsync, which is quite clumsy and not always works. That would help me (and I'm sure many others) to have a fully rounded note-taking scheme for my several PCs and a phone, the latter is lacking sync right now.

I've just tried importing the Tomdroid project into current Android Studio and while it generally is able to build an APK, trying to run fails with the app not being able to find the NoteProvider class. I see it's present there, so I guess some tweaks are needed for the project to be assembled properly under Android Studio. Could you please describe how did you build/debug the app in the past?

While this would be my almost first foray into Android development, I'm willing to spend some time to get it up to date, so that I or any potential other contributors could just start working on it, using the modern Android toolchain - so if you could provide me with some directions, that would be really great.

j-4 commented 7 years ago

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256

Hi Alex,

Sync with Dropbox API sounds just awesome! If we write a FileSystem Sync Adapter, we could do the same with WebDAV (for Owncloud) or Google Drive in the end!

Sorry, I cannot help you with Android Studio though, as i always used Eclipse with the Android Plugin. There I also converted the project into a gradle project and pushed this to be able to open it up in Android studio. However, I never did so myself, some other contributor reported back then that it worked in Android Studio, too.

I thought of using the Tomboy library written in C# and build an App with the Xamarin Platform. Advantages would be that we can reuse well written sync code, where we just need to integrate the File-Handlers for Dropbox and such. Furthermore, we could also build the App for OSX and Windows Phone with the same code, which would be awesome. Cons might be less support through 3rd-party UI libraries, and that we might have kindly ask to get the Xamarin products for free. So this idea for sure needs some background checks to investigate the feasability.

What do you think?

Greetings from Vienna, Stefan

On 15/01/17 18:32, Alex Tereschenko wrote:

Hello Stefan (@j-4 https://github.com/j-4), Olivier (@obilodeau https://github.com/obilodeau),

I want to write a Dropbox sync plugin for Tomdroid, which would use Dropbox' API directly instead of syncing to SD card and then using something like Dropsync, which is quite clumsy and not always works. That would help me (and I'm sure many others) to have a fully rounded note-taking scheme for my several PCs and a phone, the latter is lacking sync right now.

I've just tried importing the Tomdroid project into current Android Studio and while it generally is able to build an APK, trying to run fails with the app not being able to find the NoteProvider class. I see it's present there, so I guess some tweaks are needed for the project to be assembled properly under Android Studio. Could you please describe how did you build/debug the app in the past?

While this would be my almost first foray into Android development, I'm willing to spend some time to get it up to date, so that I or any potential other contributors could just start working on it, using the modern Android toolchain - so if you could provide me with some directions, that would be really great.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tomboy-notes/tomdroid/issues/220, or mute the thread https://github.com/notifications/unsubscribe-auth/ABcQ9IbRx9GVBgDZuv_ gkvjjDZ8I8iZrks5rSlgrgaJpZM4Lj-d9.

-----BEGIN PGP SIGNATURE----- Version: GnuPG v2

iQEcBAEBCAAGBQJYgPFxAAoJEKZUR52KBBcCQ/8H/0ARWbvpfX69HZ39fnXf6ufQ TjaFtLiiyaEOSfGbprVm90iREXdc9Hy3M45kZ7myG9FG6Oui4dNG0IV2hXGnBOph C8tlFaAU3HcobXumCd/VQ8XyQH9frBUzRYyLM1bbwcgcNFfIZVVTGGIRwiqoY8cE 0v37bt6OJhv0N3JeuK+bH69DciJGU5j5yrQJMyhIOY7CVG3GkXbotMQLpUd4FiwR W+Qnk5umkcExn6NuzDMZXQISEWgBAhVL5msBgwJF8Ki7qw6gTh5y+RTcA/zjJP+X plr5wlc1ZwV9041mvwwEB0pm/IDBIbhlX86ZBIHZ+KhkLqZNX8jcWgIdOt82myM= =G1Jo -----END PGP SIGNATURE-----

alex-ter commented 7 years ago

Thanks, got it on the build process - I'll see then if I can figure it out with Android Studio.

As for the Xamarin one, that could be a nice idea, a while ago I read they promise a free license for OSS projects, though I couldn't find any details (I haven't tried too hard though). Getting a unified code base (and also C#) for all mobile platforms sounds indeed very appealing :smiley: Though indeed there are things to clarify. E.g. I'm not sure how mature Tomboy library is, last we discussed it with Jared it was like "basics are there, but quite some work is still required". And Xamarin Platform license is yet another thing.

All in all, I think we could have a short pros/cons list for both approaches, gather that additional data and then make a decision of where to move with this. Just to keep it simple.