Browse Source
Merge remote-tracking branch 'origin/task/update-feed-view' into task/update-feed-view
renovate/org.robolectric-robolectric-4.x
Merge remote-tracking branch 'origin/task/update-feed-view' into task/update-feed-view
renovate/org.robolectric-robolectric-4.x
Ammar Githam
4 years ago
26 changed files with 424 additions and 106 deletions
-
148.all-contributorsrc
-
3.bettercodehub.yml
-
0.github/CODE_OF_CONDUCT.md
-
73.github/CONTRIBUTING.md
-
14.github/ISSUE_TEMPLATE/bug_report.md
-
5.github/ISSUE_TEMPLATE/feature_request.md
-
71README.md
-
32app/src/main/java/awais/instagrabber/activities/CommentsViewer.java
-
19app/src/main/java/awais/instagrabber/activities/PostViewer.java
-
3app/src/main/java/awais/instagrabber/adapters/DirectMessageItemsAdapter.java
-
1app/src/main/java/awais/instagrabber/adapters/viewholder/DirectMessageInboxItemViewHolder.java
-
2app/src/main/java/awais/instagrabber/asyncs/CommentsFetcher.java
-
5app/src/main/java/awais/instagrabber/asyncs/FeedFetcher.java
-
10app/src/main/java/awais/instagrabber/asyncs/PostFetcher.java
-
10app/src/main/java/awais/instagrabber/asyncs/i/iPostFetcher.java
-
18app/src/main/java/awais/instagrabber/asyncs/i/iStoryStatusFetcher.java
-
6app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageInboxFragment.java
-
2app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageSettingsFragment.java
-
16app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java
-
8app/src/main/java/awais/instagrabber/models/StoryModel.java
-
12app/src/main/java/awais/instagrabber/models/ViewerPostModel.java
-
3app/src/main/java/awais/instagrabber/models/enums/DirectItemType.java
-
20app/src/main/java/awais/instagrabber/models/stickers/SwipeUpModel.java
-
39app/src/main/java/awais/instagrabber/utils/Utils.java
-
9app/src/main/res/layout/activity_story_viewer.xml
-
1app/src/main/res/layout/item_feed_top.xml
@ -0,0 +1,148 @@ |
|||||
|
{ |
||||
|
"files": [ |
||||
|
"README.md" |
||||
|
], |
||||
|
"imageSize": 100, |
||||
|
"commit": false, |
||||
|
"contributors": [ |
||||
|
{ |
||||
|
"login": "austinhuang0131", |
||||
|
"name": "Austin Huang", |
||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/16656689", |
||||
|
"profile": "https://austinhuang.me", |
||||
|
"contributions": [ |
||||
|
"code", |
||||
|
"doc", |
||||
|
"question", |
||||
|
"translation", |
||||
|
"ideas" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "ammargitham", |
||||
|
"name": "Ammar Githam", |
||||
|
"avatar_url": "https://avatars0.githubusercontent.com/u/8017365", |
||||
|
"profile": "https://github.com/ammargitham", |
||||
|
"contributions": [ |
||||
|
"code", |
||||
|
"design", |
||||
|
"ideas", |
||||
|
"maintenance", |
||||
|
"question" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "AwaisKing", |
||||
|
"name": "AWAiS", |
||||
|
"avatar_url": "https://avatars3.githubusercontent.com/u/5278488", |
||||
|
"profile": "http://rerolledgeek.blogspot.com/", |
||||
|
"contributions": [ |
||||
|
"code", |
||||
|
"ideas" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "Shadowspear123", |
||||
|
"name": "Shadowspear123", |
||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/50462281", |
||||
|
"profile": "https://github.com/Shadowspear123", |
||||
|
"contributions": [ |
||||
|
"blog", |
||||
|
"bug", |
||||
|
"ideas", |
||||
|
"question", |
||||
|
"userTesting" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "KevinNThomas", |
||||
|
"name": "Kevin Thomas", |
||||
|
"avatar_url": "https://avatars2.githubusercontent.com/u/15370181", |
||||
|
"profile": "http://kevinthomas.dev", |
||||
|
"contributions": [ |
||||
|
"financial" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "e-edgren", |
||||
|
"name": "Airikr", |
||||
|
"avatar_url": "https://avatars0.githubusercontent.com/u/53869451", |
||||
|
"profile": "https://airikr.me/", |
||||
|
"contributions": [ |
||||
|
"question", |
||||
|
"ideas" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "Galang23", |
||||
|
"name": "Galang23", |
||||
|
"avatar_url": "https://avatars3.githubusercontent.com/u/13700948", |
||||
|
"profile": "https://github.com/Galang23", |
||||
|
"contributions": [ |
||||
|
"question", |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "kernoeb", |
||||
|
"name": "kernoeb", |
||||
|
"avatar_url": "https://avatars3.githubusercontent.com/u/24623168", |
||||
|
"profile": "https://becauseofprog.fr/", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "Lego8486", |
||||
|
"name": "Ten_Lego", |
||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/47414485", |
||||
|
"profile": "https://github.com/Lego8486", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "MoaufmKlo", |
||||
|
"name": "MoaufmKlo", |
||||
|
"avatar_url": "https://avatars1.githubusercontent.com/u/45636897", |
||||
|
"profile": "https://github.com/MoaufmKlo", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "peterge1998", |
||||
|
"name": "peterge1998", |
||||
|
"avatar_url": "https://avatars2.githubusercontent.com/u/47355238", |
||||
|
"profile": "https://github.com/peterge1998", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "RAMAR-RAR", |
||||
|
"name": "RAMAR-RAR", |
||||
|
"avatar_url": "https://avatars3.githubusercontent.com/u/47423745", |
||||
|
"profile": "https://github.com/RAMAR-RAR", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"login": "wagnim", |
||||
|
"name": "wagnim", |
||||
|
"avatar_url": "https://avatars0.githubusercontent.com/u/30241419", |
||||
|
"profile": "https://github.com/wagnim", |
||||
|
"contributions": [ |
||||
|
"translation" |
||||
|
] |
||||
|
} |
||||
|
], |
||||
|
"contributorsPerLine": 6, |
||||
|
"projectName": "instagrabber", |
||||
|
"projectOwner": "austinhuang0131", |
||||
|
"repoType": "github", |
||||
|
"repoHost": "https://github.com", |
||||
|
"skipCi": true, |
||||
|
"commitConvention": "none" |
||||
|
} |
@ -1,3 +0,0 @@ |
|||||
component_depth: 7 |
|
||||
languages: |
|
||||
- java |
|
@ -0,0 +1,73 @@ |
|||||
|
## WARNING |
||||
|
|
||||
|
* All forks must respect [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html). Please report violations in Issues or [confidentially](https://austinhuang.me/#hey-you-look-cool). |
||||
|
* Although publishing a fork is allowed by license, it is strongly discouraged to do so as it divides the effort and creates confusion. It is, therefore, recommended to send a pull request back to us, so that the larger community can enjoy your improvement. (This does not apply if you're adapting this app for a different platform other than Instagram.) |
||||
|
|
||||
|
## Contributing |
||||
|
|
||||
|
Thank you for your interest in InstaGrabber! |
||||
|
|
||||
|
Our vision of InstaGrabber is an open source true alternative of the official Instagram app. It is Austin's pursuit of a libre life that lead him to this app during its abandonment, and it was one unresolved bug that made him have the enthusiasm in implementing numerous features for this app, despite having 0 knowledge of Java beforehand. |
||||
|
|
||||
|
As we grow in popularity, it becomes apparent that we are short on hands. Every contribution counts! |
||||
|
|
||||
|
## I want to help coding it! |
||||
|
|
||||
|
Great! |
||||
|
|
||||
|
Generally, we want to imitate features in the actual Instagram app. There are many Instagram private API repositories on GitHub for you to refer to. Note that you should minimize POST: If a job should be done with GET, then there has to be a GET endpoint. (Indeed, sometimes you need multiple repositories for reference.) |
||||
|
|
||||
|
As long as you have tested your version (please indicate device and API version) and make sure it works, then you can submit a PR! Large UI changes have to be voted on by the community, so it would be helpful to upload some screenshots. |
||||
|
|
||||
|
Check errors are for reference only. Try to minimize them, but usually they don't make a big difference. |
||||
|
|
||||
|
**NEVER touch the l10n-master branch.** It's automatically managed by Crowdin. |
||||
|
|
||||
|
### Structure |
||||
|
|
||||
|
It is preferred that you read the scripts yourself, as my understanding (and presentation) may be basic. |
||||
|
|
||||
|
* `awais.instagrabber` |
||||
|
* `activities`: Scripts directly binding to each view. Assigns `adapters`. |
||||
|
* `adapters`: Scripts used to present a list of `models` from `asyncs` into `activities`. |
||||
|
* Those inside `viewholder` are for frontend, while others are for backend. |
||||
|
* `asyncs`: Scripts used to communicate with Instagram. Returns `models` which is sent to `adapters`. |
||||
|
* `asyncs.i`: Scripts that fetch data from `i.instagram.com`, except DM. |
||||
|
* `asyncs.direct_messages`: As the name suggests, communication scripts used for DM. |
||||
|
* `customviews`: Custom frontend components for this app. |
||||
|
* `dialogs`: Scripts directly binding to dialogs (i.e. those that are nested in the main view). |
||||
|
* `fragments.directmessages`: Scripts directly binding to each fragment ("small views") within `DirectMessageActivity` in `activities`. |
||||
|
* `interfaces`: Custom backend components for this app. |
||||
|
* `models`: Data structure for Instagram API responses from `asyncs`. |
||||
|
* `utils`: Various tools. |
||||
|
* `MainHelper.java` is basically an extension of `activities.main`. |
||||
|
* `awaisomereport`: Crash reporter. Shouldn not require too much maintenance. |
||||
|
* `thoughtbot.expandableadapter`: These are for the follower comparison view, which allows grouping users. |
||||
|
|
||||
|
### I can't code Java, but I want to! |
||||
|
|
||||
|
Fun fact: Austin took over this project and learned Java on the fly (I'm not joking, I only do JavaScript before taking this over). |
||||
|
|
||||
|
Even though Java is quite annoying, it is still possible to learn it by trying to understand what these code do (Easier if you have coding experience in other languages). |
||||
|
|
||||
|
If you have questions, don't be afraid to ask for help from any current maintainer! |
||||
|
|
||||
|
## I found a bug! |
||||
|
|
||||
|
**Please read [FAQ](https://instagrabber.austinhuang.me/faq) first.** |
||||
|
|
||||
|
Bugs are inevitable during active development, as nobody can cover all the possible test cases. |
||||
|
|
||||
|
You can either email your crash dump to `[email protected]` (The crash reporter will fill in this address for you) or create a GitHub issue. If you're on GitHub, please follow the template. If you're reporting by email, your email address will be published in the GitHub issue. You can contact me [privately](https://austinhuang.me/#hey-you-look-cool) or [through support channels](https://instagrabber.austinhuang.me/#what-can-i-do) to remove it. |
||||
|
|
||||
|
Generally, reporting bugs directly in support channels is not recommended, as they can be difficult to find. |
||||
|
|
||||
|
### I want to help... in some other way. |
||||
|
|
||||
|
You can... |
||||
|
|
||||
|
* translate it [![badge](https://badges.crowdin.net/instagrabber/localized.svg)](https://crowdin.com/project/instagrabber) |
||||
|
* promote it (reddit [r/AndroidApps](https://www.reddit.com/r/androidapps/comments/i30tpp/instagrabber_an_open_source_instagram_client/), YouTube [HowToMen](https://www.youtube.com/watch?v=1Um2ZJG_mB4), [Ekşi Sözlük](https://eksisozluk.com/instagrabber--6643143)) |
||||
|
* star it [![stars](https://img.shields.io/github/stars/austinhuang0131/instagrabber.svg?style=social&label=Star)](https://github.com/austinhuang0131/instagrabber/stargazers) |
||||
|
|
||||
|
Happy contributing! |
@ -0,0 +1,20 @@ |
|||||
|
package awais.instagrabber.models.stickers; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
public final class SwipeUpModel implements Serializable { |
||||
|
private final String url, text; |
||||
|
|
||||
|
public SwipeUpModel(final String url, final String text) { |
||||
|
this.url = url; |
||||
|
this.text = text; |
||||
|
} |
||||
|
|
||||
|
public String getUrl() { |
||||
|
return url; |
||||
|
} |
||||
|
|
||||
|
public String getText() { |
||||
|
return text; |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue