parent
b0bac7d3c2
commit
843e8ffb27
@ -1,7 +1,7 @@
|
|||||||
package com.yinuo.commonlibtest
|
package com.common.commonlibtest
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import com.yinuo.commonlib.CommonApplication
|
import com.common.commonlib.CommonApplication
|
||||||
|
|
||||||
class MyApplication : Application() {
|
class MyApplication : Application() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlibtest.bean
|
package com.common.commonlibtest.bean
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlibtest.bean
|
package com.common.commonlibtest.bean
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
@ -1,7 +1,6 @@
|
|||||||
package com.yinuo.commonlibtest.bean
|
package com.common.commonlibtest.bean
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import com.yinuo.commonlibtest.bean.Article
|
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
|
|
||||||
@Parcelize
|
@Parcelize
|
@ -1,7 +1,7 @@
|
|||||||
package com.yinuo.commonlibtest.bean
|
package com.common.commonlibtest.bean
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import com.yinuo.commonlib.net.bean.BaseResponse
|
import com.common.commonlib.net.bean.BaseResponse
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
|
|
||||||
@Parcelize
|
@Parcelize
|
@ -1,8 +1,8 @@
|
|||||||
package com.yinuo.commonlibtest.manager
|
package com.common.commonlibtest.manager
|
||||||
|
|
||||||
import com.common.commonlib.net.RequestCallBack
|
import com.common.commonlib.net.RequestCallBack
|
||||||
import com.yinuo.commonlib.net.BaseObserve
|
import com.common.commonlib.net.BaseObserve
|
||||||
import com.yinuo.commonlibtest.bean.ArticlesResponse
|
import com.common.commonlibtest.bean.ArticlesResponse
|
||||||
import io.reactivex.Observable
|
import io.reactivex.Observable
|
||||||
import retrofit2.http.GET
|
import retrofit2.http.GET
|
||||||
import retrofit2.http.Headers
|
import retrofit2.http.Headers
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.yinuo.commonlib">
|
package="com.common.commonlib">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
</manifest>
|
</manifest>
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib
|
package com.common.commonlib
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.app.Application
|
import android.app.Application
|
@ -1,9 +1,7 @@
|
|||||||
package com.yinuo.commonlib.net
|
package com.common.commonlib.net
|
||||||
|
|
||||||
import android.net.ParseException
|
import android.net.ParseException
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.common.commonlib.net.RequestCallBack
|
|
||||||
import com.common.commonlib.net.RequestManager
|
|
||||||
import com.google.gson.JsonParseException
|
import com.google.gson.JsonParseException
|
||||||
import io.reactivex.Observable
|
import io.reactivex.Observable
|
||||||
import io.reactivex.Observer
|
import io.reactivex.Observer
|
@ -1,7 +1,7 @@
|
|||||||
package com.common.commonlib.net
|
package com.common.commonlib.net
|
||||||
|
|
||||||
import com.yinuo.commonlib.net.interceptor.BaseUrlInterceptor
|
import com.common.commonlib.net.interceptor.BaseUrlInterceptor
|
||||||
import com.yinuo.commonlib.net.interceptor.HttpCommonInterceptor
|
import com.common.commonlib.net.interceptor.HttpCommonInterceptor
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import retrofit2.Retrofit
|
import retrofit2.Retrofit
|
||||||
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
|
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.net.bean
|
package com.common.commonlib.net.bean
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.net.bean
|
package com.common.commonlib.net.bean
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求参数
|
* 请求参数
|
@ -1,9 +1,9 @@
|
|||||||
package com.yinuo.commonlib.net.interceptor
|
package com.common.commonlib.net.interceptor
|
||||||
|
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.yinuo.commonlib.BuildConfig
|
import com.common.commonlib.BuildConfig
|
||||||
import com.yinuo.commonlib.CommonApplication
|
import com.common.commonlib.CommonApplication
|
||||||
import okhttp3.HttpUrl
|
import okhttp3.HttpUrl
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
|
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.net.interceptor
|
package com.common.commonlib.net.interceptor
|
||||||
|
|
||||||
import okhttp3.Interceptor
|
import okhttp3.Interceptor
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.utils
|
package com.common.commonlib.utils
|
||||||
|
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.view;
|
package com.common.commonlib.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.view;
|
package com.common.commonlib.view;
|
||||||
|
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.view.View;
|
import android.view.View;
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.view.fragment;
|
package com.common.commonlib.view.fragment;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.yinuo.commonlib.view.fragment
|
package com.common.commonlib.view.fragment
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
Loading…
Reference in New Issue