qrcode

A set of Android libraries

License

License

The MIT License
GroupId

GroupId

cn.6xyun.android
ArtifactId

ArtifactId

qrcode
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

aar
Description

Description

qrcode
A set of Android libraries
Project URL

Project URL

https://github.com/lx0758/Android
Source Code Management

Source Code Management

https://github.com/lx0758/Android

Download qrcode

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
androidx.core » core jar 1.0.2
com.google.zxing : core jar 3.4.0

Project Modules

There are no modules declared in this project.

About

一个包含框架和库类的开源项目

Use

子模块法

进入项目执行:

git submodule add -b master --name android git@github.com:lx0758/Android.git android

然后在 setting.gradle 中按需添加模块:

include ':framework-kotlin'
include ':framework-java'

include ':librarys:abstracts'
include ':librarys:banner'
include ':librarys:downloader'
include ':librarys:http'
include ':librarys:list'
include ':librarys:pay'
include ':librarys:permission'
include ':librarys:mediaer'
include ':librarys:qrcode'
include ':librarys:io'
include ':librarys:tool'
include ':librarys:util'
include ':librarys:view'

def androidDir = rootProject.projectDir.path + File.separator + 'android'
rootProject.children.each { project ->
    if (project.path.startsWith(':framework')) {
        project.projectDir = file(androidDir + File.separator + project.name)
    }
    if (project.path.startsWith(':librarys')) {
        project.children.each { childProject ->
            childProject.projectDir = file(androidDir + File.separator + 'librarys' + File.separator + childProject.name)
        }
    }
}

然后依赖使用:

implementation project(':framework-kotlin')

implementation project(':librarys:list')
implementation project(':librarys:http')
implementation project(':librarys:tool')

本地引用

首先在 local.properties 中定义一个路径:

android.dir={path}

然后在 setting.gradle 中按需添加模块:

include ':framework-kotlin'
include ':framework-java'

include ':librarys:abstracts'
include ':librarys:banner'
include ':librarys:downloader'
include ':librarys:http'
include ':librarys:list'
include ':librarys:pay'
include ':librarys:permission'
include ':librarys:mediaer'
include ':librarys:qrcode'
include ':librarys:io'
include ':librarys:tool'
include ':librarys:util'
include ':librarys:view'

Properties properties = new Properties()
InputStream inputStream = file('local.properties').newDataInputStream()
properties.load(inputStream)
def androidDir = properties.getProperty('android.dir')
inputStream.close()
rootProject.children.each { project ->
    if (project.path.startsWith(':framework')) {
        project.projectDir = file(androidDir + File.separator + project.name)
    }
    if (project.path.startsWith(':librarys')) {
        project.children.each { childProject ->
            childProject.parent = rootProject
            childProject.projectDir = file(androidDir + File.separator + 'librarys' + File.separator + childProject.name)
        }
    }
}

然后依赖使用:

implementation project(':framework-kotlin')

implementation project(':librarys:list')
implementation project(':librarys:http')
implementation project(':librarys:tool')
implementation project(':librarys:abstracts')

远程依赖

详见文档: README.md

License

The MIT License Copyright (c) 2017-2020 6x

Versions

Version
0.2.0