Skip to content

Commit

Permalink
change the namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
airlink committed Dec 5, 2023
1 parent b56ddc0 commit f4a115c
Show file tree
Hide file tree
Showing 155 changed files with 965 additions and 618 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ build/

# Local configuration file (sdk path, etc)
local.properties

# gradle config
gradle.properties
#gradle.properties

# Proguard folder generated by Eclipse
proguard/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.github.longluo.util;

public class ClickDelayUtils {

private static final int MIN_CLICK_DELAY_TIME = 1000;

private static long lastClickTime;

public static boolean isFastClick() {
boolean flag = false;

long curClickTime = System.currentTimeMillis();

if ((curClickTime - lastClickTime) >= MIN_CLICK_DELAY_TIME) {
flag = true;
}

lastClickTime = curClickTime;

return flag;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package io.github.longluo.util.helpers;

import android.view.View;

public abstract class OnClickEvent implements View.OnClickListener {

private static long lastTime;

public abstract void singleClick(View v);

private long delay;

public OnClickEvent(long delay) {
this.delay = delay;
}

@Override
public void onClick(View v) {
if (onMoreClick(v)) {
return;
}
singleClick(v);
}

public boolean onMoreClick(View v) {
boolean flag = false;
long time = System.currentTimeMillis() - lastTime;
if (time < delay) {
flag = true;
}
lastTime = System.currentTimeMillis();
return flag;
}
}
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
defaultConfig {

// 无痛修改包名:https://www.jianshu.com/p/17327e191d2e
applicationId 'com.longluo.android'
applicationId 'me.longluo.android'

//multiDexEnabled true

Expand Down Expand Up @@ -147,7 +147,7 @@ android {
// GreenDao Database
greendao {
schemaVersion 1
daoPackage 'com.longluo.android.dao'
daoPackage 'me.longluo.android.dao'
targetGenDir 'src/main/java'
}

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- 清单文件合并指引:https://developer.android.google.cn/studio/build/manifest-merge?hl=zh-cn -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.longluo.android">
package="me.longluo.android">

<!-- 网络相关 -->
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.dao.gen;
package com.longluo.android.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.dao.gen;
package com.longluo.android.dao;

import java.util.Map;

Expand All @@ -8,9 +8,9 @@
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.longluo.android.entity.Student;
import me.longluo.android.entity.Student;

import com.longluo.android.dao.gen.StudentDao;
import com.longluo.android.dao.StudentDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.dao.gen;
package com.longluo.android.dao;

import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
Expand All @@ -9,7 +9,7 @@
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.database.DatabaseStatement;

import com.longluo.android.entity.Student;
import me.longluo.android.entity.Student;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android;
package me.longluo.android;

import android.app.Activity;
import android.app.Application;
Expand All @@ -17,18 +17,20 @@
import com.hjq.gson.factory.GsonFactory;
import com.hjq.http.EasyConfig;
import com.hjq.toast.ToastUtils;
import com.longluo.android.aop.Log;
import com.longluo.android.http.model.RequestHandler;
import com.longluo.android.http.model.RequestServer;
import com.longluo.android.manager.ActivityManager;
import com.longluo.android.other.AppConfig;
import com.longluo.android.other.CrashHandler;
import com.longluo.android.other.DebugLoggerTree;
import com.longluo.android.other.MaterialHeader;
import com.longluo.android.other.SmartBallPulseFooter;
import com.longluo.android.other.TitleBarStyle;
import com.longluo.android.other.ToastLogInterceptor;
import com.longluo.android.other.ToastStyle;

import me.longluo.android.aop.Log;
import me.longluo.android.http.model.RequestHandler;
import me.longluo.android.http.model.RequestServer;
import me.longluo.android.manager.ActivityManager;
import me.longluo.android.other.AppConfig;
import me.longluo.android.other.CrashHandler;
import me.longluo.android.other.DebugLoggerTree;
import me.longluo.android.other.MaterialHeader;
import me.longluo.android.other.SmartBallPulseFooter;
import me.longluo.android.other.TitleBarStyle;
import me.longluo.android.other.ToastLogInterceptor;
import me.longluo.android.other.ToastStyle;

import com.scwang.smart.refresh.layout.SmartRefreshLayout;
import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.mmkv.MMKV;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.action;
package me.longluo.android.action;

import android.content.Context;
import android.graphics.drawable.Drawable;
Expand All @@ -10,8 +10,8 @@
import androidx.annotation.StringRes;
import androidx.core.content.ContextCompat;

import com.longluo.android.R;
import com.longluo.android.widget.StatusLayout;
import me.longluo.android.R;
import me.longluo.android.widget.StatusLayout;

/**
* 状态布局意图
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.action;
package me.longluo.android.action;

import android.graphics.drawable.Drawable;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.action;
package me.longluo.android.action;

import androidx.annotation.StringRes;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import android.app.Application;
import android.net.ConnectivityManager;
Expand All @@ -7,8 +7,8 @@
import androidx.core.content.ContextCompat;

import com.hjq.toast.ToastUtils;
import com.longluo.android.R;
import com.longluo.android.manager.ActivityManager;
import me.longluo.android.R;
import me.longluo.android.manager.ActivityManager;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
Expand All @@ -24,7 +24,7 @@ public class CheckNetAspect {
/**
* 方法切入点
*/
@Pointcut("execution(@com.longluo.android.aop.CheckNet * *(..))")
@Pointcut("execution(@me.longluo.android.aop.CheckNet * *(..))")
public void method() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import android.os.Looper;
import android.os.Trace;
Expand Down Expand Up @@ -26,14 +26,14 @@ public class LogAspect {
/**
* 构造方法切入点
*/
@Pointcut("execution(@com.longluo.android.aop.Log *.new(..))")
@Pointcut("execution(@me.longluo.android.aop.Log *.new(..))")
public void constructor() {
}

/**
* 方法切入点
*/
@Pointcut("execution(@com.longluo.android.aop.Log * *(..))")
@Pointcut("execution(@me.longluo.android.aop.Log * *(..))")
public void method() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import android.app.Activity;

import com.hjq.permissions.XXPermissions;
import com.longluo.android.manager.ActivityManager;
import com.longluo.android.other.PermissionCallback;
import me.longluo.android.manager.ActivityManager;
import me.longluo.android.other.PermissionCallback;
import com.tencent.bugly.crashreport.CrashReport;

import org.aspectj.lang.ProceedingJoinPoint;
Expand All @@ -25,7 +25,7 @@ public class PermissionsAspect {
/**
* 方法切入点
*/
@Pointcut("execution(@com.longluo.android.aop.Permissions * *(..))")
@Pointcut("execution(@me.longluo.android.aop.Permissions * *(..))")
public void method() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.aop;
package me.longluo.android.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
Expand Down Expand Up @@ -27,7 +27,7 @@ public class SingleClickAspect {
/**
* 方法切入点
*/
@Pointcut("execution(@com.longluo.android.aop.SingleClick * *(..))")
@Pointcut("execution(@me.longluo.android.aop.SingleClick * *(..))")
public void method() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.app;
package me.longluo.android.app;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -10,11 +10,11 @@

import com.gyf.immersionbar.ImmersionBar;
import com.hjq.bar.TitleBar;
import com.longluo.android.R;
import com.longluo.android.action.TitleBarAction;
import com.longluo.android.action.ToastAction;
import com.longluo.android.http.model.HttpData;
import com.longluo.android.ui.dialog.WaitDialog;
import me.longluo.android.R;
import me.longluo.android.action.TitleBarAction;
import me.longluo.android.action.ToastAction;
import me.longluo.android.http.model.HttpData;
import me.longluo.android.ui.dialog.WaitDialog;
import com.hjq.http.listener.OnHttpListener;

import io.github.longluo.base.BaseActivity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.longluo.android.app;
package me.longluo.android.app;

import android.content.Context;
import android.view.View;
Expand Down
Loading

0 comments on commit f4a115c

Please sign in to comment.