Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.razerdp:basepopup:2.2.10'
}
dependencies {
implementation("com.github.razerdp:basepopup:2.2.10")
}
<dependency>
<groupId>com.github.razerdp</groupId>
<artifactId>basepopup</artifactId>
<version>2.2.10</version>
</dependency>
libraryDependencies += "com.github.razerdp" % "basepopup" % "2.2.10"
:dependencies [[com.github.razerdp/basepopup "2.2.10"]]
中文 | English
<p align="center"><img src="./img/logo.png" alt="Logo图片似乎加载不出来" height="360"/></p> <h2 align="center">BasePopup - Android下打造通用便捷的PopupWindow弹窗库</h2> <div align="center"> <table align="center"> <tr> <th align="center" width="9999">Release</th> <th align="center" width="9999">Snapshot</th> <th align="center" width="9999">License</th> <th align="center" width="9999">Api</th> <th align="center" width="9999">Author</th> </tr> <tr> <td align="center"> <a href ="https://search.maven.org/artifact/io.github.razerdp/BasePopup"> <img src="https://img.shields.io/maven-central/v/io.github.razerdp/BasePopup"/> </a> </td> <td align="center"> <a href = "https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/razerdp/BasePopup/"> <img src="https://img.shields.io/nexus/s/io.github.razerdp/BasePopup?server=https%3A%2F%2Fs01.oss.sonatype.org%2F"/> </a> </td> <td align="center"> <a href = "https://github.com/razerdp/BasePopup/blob/master/LICENSE"> <img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"/> </a> <br></br> <a href = "https://github.com/razerdp/BasePopup/blob/master/LICENSE_996"> <img src="https://img.shields.io/badge/license-Anti%20996-blue.svg?style=flat-square"/> </a> </td> <td align="center"> <a href="https://img.shields.io/badge/Api-19%2B-green.svg"> <img src="https://img.shields.io/badge/Api-19%2B-green.svg"/> </a> </td> <td align="center"> <a href = "https://github.com/razerdp"> <img src="https://img.shields.io/badge/Author-razerdp-blue.svg"/> </a> </td> </tr> </table> </div>由于工作繁忙,且目前issue问题影响并不大,因此本库维护速度较慢。
同时希望大佬们也可以推送自己的PR,我这边review后会进行合并的~
下一次更新大概在24年3月份
BasePopup是一个对系统PopupWindow进行封装并改进的弹窗库,它是一个基础库类,有着非常高的自由度与丰富的API,您可以在BasePopup的框架下非常轻松的完成各种各样的弹窗。
// root gradle
allprojects {
repositories {
// release依赖仓库(4.1后as默认配置有)
mavenCentral()
// snapshot仓库(如果需要snapshot依赖,请配置该maven)
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
}
// project dependencies
dependencies {
implementation 'io.github.razerdp:BasePopup:3.2.1'
// for snapshot
// implementation 'io.github.razerdp:BasePopup:3.2.1-SNAPSHOT'
}
| | | |
| - | - | - |
| |
|
|
|
|
|
|