common-utils

common-utils for Android

License

License

GroupId

GroupId

cn.wandersnail
ArtifactId

ArtifactId

common-utils
Last Version

Last Version

1.0.10
Release Date

Release Date

Type

Type

aar
Description

Description

common-utils
common-utils for Android
Project URL

Project URL

https://github.com/wandersnail/commons-utils
Source Code Management

Source Code Management

https://github.com/wandersnail/commons-utils

Download common-utils

How to add to project

<!-- https://jarcasting.com/artifacts/cn.wandersnail/common-utils/ -->
<dependency>
    <groupId>cn.wandersnail</groupId>
    <artifactId>common-utils</artifactId>
    <version>1.0.10</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/cn.wandersnail/common-utils/
implementation 'cn.wandersnail:common-utils:1.0.10'
// https://jarcasting.com/artifacts/cn.wandersnail/common-utils/
implementation ("cn.wandersnail:common-utils:1.0.10")
'cn.wandersnail:common-utils:aar:1.0.10'
<dependency org="cn.wandersnail" name="common-utils" rev="1.0.10">
  <artifact name="common-utils" type="aar" />
</dependency>
@Grapes(
@Grab(group='cn.wandersnail', module='common-utils', version='1.0.10')
)
libraryDependencies += "cn.wandersnail" % "common-utils" % "1.0.10"
[cn.wandersnail/common-utils "1.0.10"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

代码托管

Maven Central Download

使用

  1. 因为使用了jdk8的一些特性,需要在module的build.gradle里添加如下配置:
//纯java的项目
android {
	compileOptions {
		sourceCompatibility JavaVersion.VERSION_1_8
		targetCompatibility JavaVersion.VERSION_1_8
	}
}

//有kotlin的项目还需要在project的build.gradle里添加
allprojects {
    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8

        kotlinOptions {
            jvmTarget = '1.8'
            apiVersion = '1.3'
            languageVersion = '1.3'
        }
    }
}

  1. module的build.gradle中的添加依赖,自行修改为最新版本,需要哪个就依赖哪个,同步后通常就可以用了:
dependencies {
	...
	implementation 'cn.wandersnail:common-utils:latestVersion'
	implementation 'cn.wandersnail:common-base:latestVersion'
}
  1. 如果从jcenter下载失败。在project的build.gradle里的repositories添加内容,最好两个都加上,添加完再次同步即可。
allprojects {
	repositories {
		...
		mavenCentral()
		maven { url 'https://dl.bintray.com/wandersnail/androidx/' }
	}
}

Versions

Version
1.0.10
1.0.9
1.0.8
1.0.7
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1