Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/commit451/bypasses
Repackaging of Bypass with additional features
https://github.com/commit451/bypasses
android bypass markdown rendering
Last synced: 3 days ago
JSON representation
Repackaging of Bypass with additional features
- Host: GitHub
- URL: https://github.com/commit451/bypasses
- Owner: Commit451
- License: apache-2.0
- Created: 2015-09-10T20:02:38.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T04:39:19.000Z (over 2 years ago)
- Last Synced: 2024-04-13T03:18:28.212Z (7 months ago)
- Topics: android, bypass, markdown, rendering
- Language: Java
- Homepage: https://github.com/Uncodin/bypass
- Size: 2.5 MB
- Stars: 87
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# bypasses
Repackaging of [Bypass](https://github.com/Uncodin/bypass) with additional features[![Build Status](https://travis-ci.org/Commit451/bypasses.svg?branch=master)](https://travis-ci.org/Commit451/bypasses) [![](https://jitpack.io/v/Commit451/bypasses.svg)](https://jitpack.io/#Commit451/bypasses)
## Gradle Dependency
Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```Then, add the library to your project `build.gradle`
```gradle
dependencies {
compile 'com.github.Commit451:bypasses:latest.release.here'
}
```This library is provided as a "fat" aar with native binaries for all available architectures. To
reduce your APK size, use the ABI filtering/splitting techniques in the Android plugin:
http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits## Usage
See the [bypass docs](http://uncodin.github.io/bypass/)Additional features include:
- Image click detection
```java
bypass.setImageSpanClickListener(new ImageSpanClickListener() {
@Override
public void onImageClicked(View view, ImageSpan imageSpan, String url) {
Snackbar.make(root, "Image clicked with url: " + url, Snackbar.LENGTH_LONG)
.show();
}
});
```
See the sample for more.## Image Loading
Image loading can be done via the `ImageGetter` interface. Libraries exist for [Picasso](https://github.com/Commit451/BypassPicassoImageGetter) and [Glide](https://github.com/Commit451/BypassGlideImageGetter).## Robolectric
See [this issue](https://github.com/Commit451/bypasses/issues/2) for an explanation for getting Robolectric to work.## Proguard
This dependency also packages the Proguard rules [suggested](https://github.com/Uncodin/bypass/issues/195) for bypass to work properly with Proguard enabledLicense
--------Copyright 2017 Commit 451
Copyright 2015 UncodinLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.