#配置阿里云加速docker镜像下载,建议自己注册(免费获取)
https://mf43icmq.mirror.aliyuncs.com
#安装并配置postgres数据库
docker run --name postgresdb -e POSTGRES_PASSWORD=sonar -e POSTGRES_USER=sonar -p 5432:5432 -d postgres
| allprojects{ | |
| repositories { | |
| maven{ url 'https://maven.aliyun.com/repository/jcenter'} | |
| maven{ url 'https://maven.aliyun.com/repository/google'} | |
| maven { url "https://jitpack.io" } | |
| maven { url 'http://172.17.16.112:8081/nexus/content/repositories/releases/' } | |
| } | |
| buildscript { | |
| repositories { | |
| maven{ url 'https://maven.aliyun.com/repository/jcenter'} |
| <?xml version="1.0" encoding="utf-8"?> | |
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:shape="rectangle"> | |
| <size android:width="2dp" /> | |
| <solid android:color="#ff6a45" /> | |
| </shape> |
| package com.ibeilly.utils.gson; | |
| import android.os.Parcelable; | |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonElement; | |
| import com.google.gson.JsonObject; | |
| import com.google.gson.TypeAdapter; | |
| import com.google.gson.TypeAdapterFactory; |
| apply plugin: HJPackPlugin | |
| class HJPackPlugin implements Plugin<Project> { | |
| @Override | |
| void apply(Project project) { | |
| def file = project.rootProject.file("packageHJ.properties") | |
| project.extensions.create("hjConf", InnerStorage, file) | |
| } |
#配置阿里云加速docker镜像下载,建议自己注册(免费获取)
https://mf43icmq.mirror.aliyuncs.com
#安装并配置postgres数据库
docker run --name postgresdb -e POSTGRES_PASSWORD=sonar -e POSTGRES_USER=sonar -p 5432:5432 -d postgres
| package com.vcredit.cp.view; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v4.content.ContextCompat; | |
| import android.support.v7.widget.LinearLayoutManager; |
| package com.vcredit.utils; | |
| import android.annotation.TargetApi; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.os.Build; | |
| import android.support.annotation.ColorInt; | |
| import android.support.annotation.IntRange; | |
| import android.support.design.widget.CoordinatorLayout; |
| ## Project-wide Gradle settings. | |
| # | |
| # For more details on how to configure your build environment visit | |
| # http://www.gradle.org/docs/current/userguide/build_environment.html | |
| # | |
| # Specifies the JVM arguments used for the daemon process. | |
| # The setting is particularly useful for tweaking memory settings. | |
| # Default value: -Xmx1024m -XX:MaxPermSize=256m | |
| org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
| # |
| package com.vcredit.utils.net; | |
| import com.android.volley.AuthFailureError; | |
| import com.android.volley.DefaultRetryPolicy; | |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Request; | |
| import com.android.volley.Response; | |
| import com.android.volley.RetryPolicy; | |
| import com.android.volley.toolbox.HttpHeaderParser; |