BandarHL / BHInstagram

An awesome tweak for Instagram!
266 stars 48 forks source link

[Request] some features in next/future updates #6

Open davidkh88 opened 1 year ago

davidkh88 commented 1 year ago
SoCuul commented 7 months ago

I've implemented most of these in my personal fork if you're interested

davidkh88 commented 7 months ago

I've implemented most of these in my personal fork if you're interested

If you're able to build and release the deb file, I would be appreciate since I myself don't know how to do it.

SoCuul commented 7 months ago

I've implemented most of these in my personal fork if you're interested

If you're able to build and release the deb file, I would be appreciate since I myself don't know how to do it.

I've personally only used the sideloaded version (ipa) but I'll see if I can compile the dev as well

davidkh88 commented 7 months ago

I've implemented most of these in my personal fork if you're interested

If you're able to build and release the deb file, I would be appreciate since I myself don't know how to do it.

I've personally only used the sideloaded version (ipa) but I'll see if I can compile the dev as well

or you can share IPA that you're using

SoCuul commented 7 months ago

I'll just finish up my work with the app and upload the ipa as a release on the repo hopefully this weekend

davidkh88 commented 7 months ago

I'll just finish up my work with the app and upload the ipa as a release on the repo hopefully this weekend

okay bro, take your time no rush here.

vlourme commented 7 months ago

@SoCuul Hi, thank you for maintaining a fork of this project! I have two questions:

Regards

SoCuul commented 7 months ago

@SoCuul Hi, thank you for maintaining a fork of this project! I have two questions:

  • Can you enable issues on the fork, I might have some feature proposal if you willing working on it

  • Are you planning to update this fork to work with latest versions?

Regards

Hey!

If I'm not wrong issues should currently be enabled, but I'll double check just to make sure.

And I currently have the app updated to the latest version of the Instagram app working perfectly.

If I'm being completely honest, I've never touched Objective-C in my life, but I'll try my best to maintain this fork haha.

vlourme commented 7 months ago

@SoCuul

If I'm not wrong issues should currently be enabled, but I'll double check just to make sure.

Strangely, it still isn't possible. No issue tab.

image

Anyway, one of my feature request was a "addiction-less" feature. I tend to spend too much time on Instagram. One of the way I've found to spend less time is uninstall it and use Beeper or Matrix to keep discussing with friends on Instagram. Some of you might remember "Threads for Instagram", it was an official Instagram app that just got stories and messages, and it was great.

This could be accomplished by doing something like this:

I know it sounds like a weird feature proposal, but I'm really interested in this!

And I currently have the app updated to the latest version of the Instagram app working perfectly.

I will try to build it myself and see how it goes.

If I'm being completely honest, I've never touched Objective-C in my life, but I'll try my best to maintain this fork haha.

I have no Objective-C knowledge at all, however I do know Swift. I would be interested in contributing to the fork too (and make my own feature request), however, how do you find the hooks? Do it requires a jailbroken device?

Thank you!

SoCuul commented 7 months ago

@SoCuul

If I'm not wrong issues should currently be enabled, but I'll double check just to make sure.

Strangely, it still isn't possible. No issue tab. image

Anyway, one of my feature request was a "addiction-less" feature. I tend to spend too much time on Instagram. One of the way I've found to spend less time is uninstall it and use Beeper or Matrix to keep discussing with friends on Instagram. Some of you might remember "Threads for Instagram", it was an official Instagram app that just got stories and messages, and it was great.

This could be accomplished by doing something like this:

* Disabling Reels tab

* Preventing feed posts from showing

I know it sounds like a weird feature proposal, but I'm really interested in this!

And I currently have the app updated to the latest version of the Instagram app working perfectly.

I will try to build it myself and see how it goes.

If I'm being completely honest, I've never touched Objective-C in my life, but I'll try my best to maintain this fork haha.

I have no Objective-C knowledge at all, however I do know Swift. I would be interested in contributing to the fork too (and make my own feature request), however, how do you find the hooks? Do it requires a jailbroken device?

Thank you!

Hey!

If you check the repo again you should be able to find the issues section now. Feel free to add any suggestions there.

I'm just working on the new version of the tweak right now (basically organizing all of the code, removing unneeded parts and making it more consistent).

Unfortunately jt's not possible to use swift within this tweak, but if you enable the FLEX explorer within the debug setting in the app you can explore the elements that make up the app.

Also about the focus mode thing, I totally agree! I've been working on adding a way to disable sponsored stories as well as threads on the home page.

vlourme commented 7 months ago

Thank you for your reply. I'm trying to build it, I almost got it working, IPA is building correctly, however, I don't have those sign.sh and deploy.sh.

I will make a PR with a building guide once it's working. And I'll try to develop the focus mode, even if I don't succeed, it will be a good learn :)

SoCuul commented 7 months ago

Thank you for your reply. I'm trying to build it, I almost got it working, IPA is building correctly, however, I don't have those sign.sh and deploy.sh.

I will make a PR with a building guide once it's working. And I'll try to develop the focus mode, even if I don't succeed, it will be a good learn :)

I haven't completely finished the scripts for other people to use (I had to figure out how to build the app since nothings included in this repo). I should post a working script (along with a compiled ipa) later today.

vlourme commented 7 months ago

I managed to build it and making it work!

I re-used the build.sh from BHTwitter repository. Added keychainfix directory too, used the same libcephei. Note that I installed it using Sideloadly.

The build.sh:

OPTS=$(getopt -a weather --longoptions $LONG -- "$@") # useless?
libcephei_URL="https://cdn.discordapp.com/attachments/755439561454256132/1184388888475738243/libcephei.zip?ex=658bcb1b&is=6579561b&hm=24bf1a932b1a91dda5826435bddef3114febc54c11c8e6a995c800d7db644e67&"
PROJECT_PATH=$(pwd)

echo -e '\033[1m\033[32mBuilding BHInsta project for sideloaded.\033[0m'

make clean
rm -rf .theos
make SIDELOADED=1

if [ -e ./packages/com.burbn.instagram.ipa ]; then

echo -e '\033[1m\033[32mDownloading libcephei SDK.\033[0m'
temp_dir=$(mktemp -d)
curl -L -o "$temp_dir/libcephei.zip" "$libcephei_URL"
unzip -o "$temp_dir/libcephei.zip" -d ./packages
rm -rf "$temp_dir"
rm -rf ./packages/__MACOSX

echo -e '\033[1m\033[32mBuilding the IPA.\033[0m'
../Azule/azule -i "$PROJECT_PATH/packages/com.burbn.instagram.ipa" -o "$PROJECT_PATH/packages" -n BHInsta-sideloaded -r -f "$PROJECT_PATH/.theos/obj/debug/keychainfix.dylib" "$PROJECT_PATH/.theos/obj/debug/libbhFLEX.dylib" "$PROJECT_PATH/.theos/obj/debug/BHInsta.dylib" "$PROJECT_PATH/packages/Cephei.framework" "$PROJECT_PATH/packages/CepheiUI.framework" "$PROJECT_PATH/packages/CepheiPrefs.framework"

echo -e '\033[1m\033[32mDone, thanks for using BHInsta.\033[0m'
else
echo -e '\033[1m\033[0;31mpackages/com.burbn.instagram.ipa not found.\033[0m'
fi

Also I added this to the Makefile:

include $(THEOS_MAKE_PATH)/aggregate.mk

This way, it builds libflex and keychainfix in the same .theos dir.

I didn't had to use any signing process (Sideloadly certainly did it for me), the output IPA directly worked. Libflex is working, I will start working on my focus mode feature :)