bypasses
bypasses copied to clipboard
Repackaging of Bypass with additional features
bypasses
Repackaging of Bypass with additional features
Gradle Dependency
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Then, add the library to your project build.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
Additional features include:
- Image click detection
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 and Glide.
Robolectric
See this issue for an explanation for getting Robolectric to work.
Proguard
This dependency also packages the Proguard rules suggested for bypass to work properly with Proguard enabled
License
Copyright 2017 Commit 451
Copyright 2015 Uncodin
Licensed 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 at
http://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.