MCPcopy Index your code
hub / github.com/Commit451/bypasses

github.com/Commit451/bypasses @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
57 symbols 106 edges 7 files 7 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bypasses

Repackaging of Bypass with additional features

Build Status

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.

Extension points exported contracts — how you extend this code

ImageSpanClickListener (Interface)
Callback when the image span is clicked [1 implementers]
bypass/src/main/java/in/uncod/android/bypass/ImageSpanClickListener.java
GitHubService (Interface)
(no doc)
app/src/main/java/com/commit451/bypass/sample/MainActivity.java
ImageGetter (Interface)
Retrieves images for markdown images.
bypass/src/main/java/in/uncod/android/bypass/Bypass.java

Core symbols most depended-on inside this repo

setSpan
called by 14
bypass/src/main/java/in/uncod/android/bypass/Bypass.java
getParent
called by 12
bypass/src/main/java/in/uncod/android/bypass/Element.java
getAttribute
called by 7
bypass/src/main/java/in/uncod/android/bypass/Element.java
getType
called by 5
bypass/src/main/java/in/uncod/android/bypass/Element.java
setBlockSpan
called by 5
bypass/src/main/java/in/uncod/android/bypass/Bypass.java
size
called by 4
bypass/src/main/java/in/uncod/android/bypass/Element.java
isBlockElement
called by 2
bypass/src/main/java/in/uncod/android/bypass/Element.java
onImageClicked
called by 1
bypass/src/main/java/in/uncod/android/bypass/ImageSpanClickListener.java

Shape

Method 46
Class 7
Interface 3
Enum 1

Languages

Java100%

Modules by API surface

bypass/src/main/java/in/uncod/android/bypass/Bypass.java22 symbols
bypass/src/main/java/in/uncod/android/bypass/Element.java15 symbols
app/src/main/java/com/commit451/bypass/sample/MainActivity.java7 symbols
bypass/src/main/java/in/uncod/android/bypass/style/HorizontalLineSpan.java4 symbols
bypass/src/main/java/in/uncod/android/bypass/Document.java4 symbols
bypass/src/main/java/in/uncod/android/bypass/ReverseSpannableStringBuilder.java3 symbols
bypass/src/main/java/in/uncod/android/bypass/ImageSpanClickListener.java2 symbols

For agents

$ claude mcp add bypasses \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact