Steemit app update

in #utopian-io6 years ago

banner

Repository

https://github.com/hispeedimagins/steem

New features

Remarkable markdown engine and new linkers

  • Implemented the remarkable markdown engine, the same one used by @steemitdev . Translated all js linking codes to kotlin and implemented them. Now all your articles should load as they do on steemit.

  • Proxy images will now show correctly, translated that as well from steemit.

  • translated files

  1. https://github.com/steemit/condenser/blob/master/src/app/utils/ProxifyUrl.js
  2. https://github.com/steemit/condenser/blob/master/src/app/utils/Links.js
  3. https://github.com/steemit/condenser/blob/master/src/app/utils/Phishing.js

had to do a lot of js workarounds to make this work. Might translate the remarkable library for better results.

Tip, converting an object to json and passing it to the js in android, it will be interpreted as an object. Weird.

All of this took a lot of time to test and change as required.

commits

  1. commit - added remarkable and translated
  2. commit - implemented new markdown processor
  3. commit - implemented all the linkers and proxy checkers

Saved state for when you rotate your phone, or when the system needs memory.

  • Now when you spin your phone like a moron the app will spin with it.
    had to implement a lot of savestate workarounds. Saving requests to a db, fetching them as needed and deleting requests which are more than 6 hrs old.
    Created a database for that. Duh. converting to json, easiest way. Not sure if the fastest. Tried with parcelable but it would crash on nougat as they have changed the behavior. On pre nougat devices if the parcel data is a lot, only a warning would be thrown. Now it crashes. So had to make my own solution which works everywhere.
commits
  1. commit - database and implementations, a lot of work.

Votes on your posts (rhymes) show from the greatest in value to the least.

  • A small function and saving some extra info about the votes in order to sort them by the largest by value first.

commit

  1. commit - function and some data changes

Share a URL with the app to open it in the app.

  • A lot of steemit urls which I would open in my browser, I wished there was some way to open them in the app. I wished the dev would add it. So I did. heheh
  • Cannot use deep links as I do not own the URLs. They check. Dammit.
  • Just share a URL from your browser or just copy and share and select steemer.
  • the app should be able to open the URLs. Some changes will be made so it can handle them all.

tip, you have to access the share text through the oncreate method if the app has launched. If you miss this, then if your app was not running in the background then it will not get the text as onnewintent is never called.

commit

  1. commit - share code, decide if link is a profile or article.

Bug fixes (yes those pesky bugs)

The name in favourites would be blank

  • This would happen because for showing the name I need diff data and was not passing it. (Rookie mistake)
  • Calculated what was needed and passed it.

commit

  1. commit - calculate author rep, pass display name

Better description

  • while making descriptions some markdown urls would remain.
  • had to use steemits linker regex implemented after translating earlier, and use it in the start. Does not work if it is below.

commit

  1. commit - use linker regex, keep it in the start

Misc changes

commit
commit

4 new and awesome features added.
2 pesky bugs squashed.

Sort:  

Thank you for your contribution. Please try to format your post little bit which will make it easier to read.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

lol, and I was patting myself on my back, I thought I made a good post, included tips and stuff. hehehehe. I'll try it differently the next time :), thanks

Hey @hispeedimagins
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63204.10
ETH 2560.70
USDT 1.00
SBD 2.79