All Projects → aminography → RedirectGlide

aminography / RedirectGlide

Licence: other
RedirectGlide empowers Glide to load images with indirect URLs.

Programming Languages

kotlin
9241 projects
shell
77523 projects

Projects that are alternatives of or similar to RedirectGlide

EasyGlide
🐼基于Glide 4.12.0封装的 一键使用工具类。现已改为kotlin实现。支持HTTPS图片,可下载图片,可监听加载进度。包含常用变换:高斯模糊,圆角矩形,圆形,黑白,描边圆形,描边方形。
Stars: ✭ 121 (+266.67%)
Mutual labels:  glide, glidev4
Jade-Player
A media player for Android.
Stars: ✭ 70 (+112.12%)
Mutual labels:  glidev4
MVVM-Demo
This demo for MVVM Design pattern for android
Stars: ✭ 20 (-39.39%)
Mutual labels:  glide
EasyTask MVVM Kotlin
Todo app based on MVVM, Kotlin Coroutines, Navigation Component, Room Database, Retrofit, Data Binding
Stars: ✭ 49 (+48.48%)
Mutual labels:  glide
Trippo-The Travel Guide
Trippo is your smart travel guide - it’s free and works offline, too! You can skim through tours, locations, POIs, city walks, articles and so on. This guide will save you from a serious headache!
Stars: ✭ 28 (-15.15%)
Mutual labels:  glide
BESTV
Android TV App powered by TMDb. It is a easy way to find the best TV content, the top movies, series... all of that in your TV.
Stars: ✭ 49 (+48.48%)
Mutual labels:  glide
go-docker
Sample code and dockerfiles accompanying the blog post The Ultimate Guide to Writing Dockerfiles for Go Web-apps
Stars: ✭ 89 (+169.7%)
Mutual labels:  glide
Debt-Manager
A personal app to store people that owe you money or you owe money to. "Mo Money Mo Problems" 🎵 - The Notorious B.I.G. 😎
Stars: ✭ 22 (-33.33%)
Mutual labels:  glide
glide-bindingadapter
Configurable @BindingAdapter for Glide
Stars: ✭ 16 (-51.52%)
Mutual labels:  glide
situp android proj
🚀一个基组件化、模块化、MVP + MVVM 计划 App,兼容安卓 10.0 9.0 8.0 等 🔥a app like keep, you can edit your plans here, and you can share your life to others by post, too.🔥
Stars: ✭ 15 (-54.55%)
Mutual labels:  glide
WanAndroidMaster
根据 http://www.wanandroid.com 提供api ,编写 包含 Material Design + MVP + Rxjava2 + Retrofit + Glide项目
Stars: ✭ 74 (+124.24%)
Mutual labels:  glide
Parrot
A simple way to handle remote image in Kotlin.
Stars: ✭ 21 (-36.36%)
Mutual labels:  glide
WanAndroidJetpack
🔥 WanAndroid 客户端,Kotlin + MVVM + Jetpack + Retrofit + Glide。基于 MVVM 架构,用 Jetpack 实现,网络采用 Kotlin 的协程和 Retrofit 配合使用!精美的 UI,便捷突出的功能实现,欢迎下载体验!
Stars: ✭ 124 (+275.76%)
Mutual labels:  glide
udacity-baking-recipes
Udacity - Baking Android App
Stars: ✭ 14 (-57.58%)
Mutual labels:  glide
MockAppMVVM
A sample app structure using the MVVM architecture using Retrofit, Dagger2, LiveData, RxJava, ViewModel and Room.
Stars: ✭ 14 (-57.58%)
Mutual labels:  glide
DailyBugle
📰Modern MVVM Android application following single activity architecture which fetches news from 🕷️ news API. this repository contains some best practices ⚡ of android development
Stars: ✭ 17 (-48.48%)
Mutual labels:  glide
Pokehub
This is a sample project that uses Graphql API's with Rx implementation.
Stars: ✭ 40 (+21.21%)
Mutual labels:  glide
SvgGlidePlugins
Plugins for Glide 4 image loading libraries for load SVG
Stars: ✭ 60 (+81.82%)
Mutual labels:  glide
aLiangWanAndroid
玩Android项目
Stars: ✭ 19 (-42.42%)
Mutual labels:  glide
GooglePlay2
GooglePlay2.0,基本修复所有bug,应用市场,一款应用下载软件,框架式编程,使用ButterKnife,okHttp网络请求,glide图片加载,联动ToolBar。
Stars: ✭ 20 (-39.39%)
Mutual labels:  glide

RedirectGlide

Android Arsenal API Download

RedirectGlide empowers Glide to load images with indirect URLs.

Sometimes the images you want to show with Glide have indirect link and you should redirect the URL to reach the real direct link. RedirectGlide is an extension over Glide's OkHttp3 Integration which adds the redirection functionality to Glide.

NOTE: Currently it's implemented only for Glide-v4.


Download

Add the following lines to your build.gradle file:

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

repositories {
    jcenter()
}
  
dependencies {
    implementation 'com.aminography:redirectglide:2.0.1'
    
    // Glide dependencies
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    kapt 'com.github.bumptech.glide:compiler:4.11.0'
}
  • If you write code in Java, you should also add kotlin dependency too:
dependencies {
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.70'
}

How to use RedirectGlide?

You can simply use RedirectGlide by Glide's generated API. Note that you should clean and rebuild your project to create the GlideApp class in compile time.

val imageUrl = "https://bit.ly/2zeMrFB"

GlideApp.with(context)
        .load(imageUrl)
        .into(imageView)

Example


• Customize the maximum redirection count

The default value for maximum redirection count is set to 5. However, you can change it by wrapping the image URL with an instance of RedirectGlideUrl.

GlideApp.with(context)
        .load(RedirectGlideUrl(imageUrl, 10))
        .into(imageView)

Change Log

Version 2.0.1

  • Fixing compatibility with Glide 4.11.0.

Version 2.0.0

  • Migrating to AndroidX.
  • Migrating to Kotlin.

License

Copyright 2019 Mohammad Amin Hassani.

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].