Skip to content

Commit

Permalink
refactor:rename the package name (as I make a big mistake for the new…
Browse files Browse the repository at this point in the history
… project guide of the as)
  • Loading branch information
lemon committed Apr 4, 2018
1 parent ac17e03 commit cbdffaf
Show file tree
Hide file tree
Showing 24 changed files with 40 additions and 40 deletions.
Binary file added .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 27
defaultConfig {
applicationId "easily.tech.easybridge"
applicationId "tech.easily.easybridge"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge
package tech.easily.easybridge

import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="easily.tech.easybridge">
package="tech.easily.easybridge">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package easily.tech.easybridge
package tech.easily.easybridge

import android.net.Uri
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.webkit.*
import android.widget.Toast
import easily.tech.easybridge.lib.EBHandlerManager
import easily.tech.easybridge.lib.EasyBridgeWebChromeClient
import easily.tech.easybridge.lib.ResultCallBack
import tech.easily.easybridge.lib.EBHandlerManager
import tech.easily.easybridge.lib.EasyBridgeWebChromeClient
import tech.easily.easybridge.lib.ResultCallBack
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package easily.tech.easybridge.handler
package tech.easily.easybridge.handler

import android.widget.Toast
import easily.tech.easybridge.annotation.EasyBridgeHandler
import easily.tech.easybridge.lib.EasyBridgeWebView
import easily.tech.easybridge.lib.ResultCallBack
import easily.tech.easybridge.lib.handler.BaseBridgeHandler
import tech.easily.easybridge.annotation.EasyBridgeHandler
import tech.easily.easybridge.lib.EasyBridgeWebView
import tech.easily.easybridge.lib.ResultCallBack
import tech.easily.easybridge.lib.handler.BaseBridgeHandler

/**
* Created by lemon on 30/03/2018.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<easily.tech.easybridge.lib.EasyBridgeWebView
<tech.easily.easybridge.lib.EasyBridgeWebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webView"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge
package tech.easily.easybridge

import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.annotation;
package tech.easily.easybridge.annotation;

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 easily.tech.easybridge.processor;
package tech.easily.easybridge.processor;

/**
* Created by lemon on 04/04/2018.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.processor;
package tech.easily.easybridge.processor;

import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.FieldSpec;
Expand All @@ -24,7 +24,7 @@
public class EBHandlerManagerGenerator {

private static final String CLASS_NAME = "EBHandlerManager";
private static final String PACKAGE_NAME = "easily.tech.easybridge.lib";
private static final String PACKAGE_NAME = "tech.easily.easybridge.lib";
private static final String REGISTER_METHOD_NAME = "register";
private static final String WEB_VIEW_PARAMETER = "webview";
private static final String BRIDGE_WEB_VIEW_CLASS = PACKAGE_NAME + ".EasyBridgeWebView";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.processor;
package tech.easily.easybridge.processor;

import com.google.auto.service.AutoService;
import com.squareup.javapoet.JavaFile;
Expand All @@ -19,11 +19,11 @@
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;

import easily.tech.easybridge.annotation.EasyBridgeHandler;
import tech.easily.easybridge.annotation.EasyBridgeHandler;

@AutoService(Processor.class)
@SupportedSourceVersion(SourceVersion.RELEASE_8)
@SupportedAnnotationTypes({"easily.tech.easybridge.annotation.EasyBridgeHandler"})
@SupportedAnnotationTypes({"tech.easily.easybridge.annotation.EasyBridgeHandler"})
public class EasyBridgeProcessor extends AbstractProcessor {

private Filer filer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand Down
2 changes: 1 addition & 1 deletion easybridge/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="easily.tech.easybridge.lib" />
package="tech.easily.easybridge.lib" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

/**
* Created by lemon on 29/03/2018.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import android.os.Build;
import android.os.Handler;
Expand All @@ -13,9 +13,9 @@
import java.util.HashMap;
import java.util.Map;

import easily.tech.easybridge.lib.handler.BridgeHandler;
import tech.easily.easybridge.lib.handler.BridgeHandler;

import static easily.tech.easybridge.lib.CallBackMessage.CODE_SECURITY_FORBIDDEN;
import static tech.easily.easybridge.lib.CallBackMessage.CODE_SECURITY_FORBIDDEN;

/**
* the object will mapping to a js object when webView loaded.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import android.webkit.WebChromeClient;
import android.webkit.WebView;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import android.annotation.SuppressLint;
import android.content.Context;
Expand All @@ -10,7 +10,7 @@
import java.util.HashMap;
import java.util.Map;

import easily.tech.easybridge.lib.handler.BridgeHandler;
import tech.easily.easybridge.lib.handler.BridgeHandler;

/**
* this class is the main entrance of the library,you are supposed to do things as bellow:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

/**
* Created by lemon on 29/03/2018.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

/**
* a security policy checker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import android.content.Context;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package easily.tech.easybridge.lib.handler;
package tech.easily.easybridge.lib.handler;

import android.support.annotation.NonNull;

import easily.tech.easybridge.lib.EasyBridgeWebView;
import easily.tech.easybridge.lib.SecurityPolicyChecker;
import tech.easily.easybridge.lib.EasyBridgeWebView;
import tech.easily.easybridge.lib.SecurityPolicyChecker;

/**
* Created by lemon on 30/03/2018.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package easily.tech.easybridge.lib.handler;
package tech.easily.easybridge.lib.handler;

import easily.tech.easybridge.lib.ResultCallBack;
import easily.tech.easybridge.lib.SecurityPolicyChecker;
import tech.easily.easybridge.lib.ResultCallBack;
import tech.easily.easybridge.lib.SecurityPolicyChecker;

/**
* Created by lemon on 29/03/2018.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easily.tech.easybridge.lib;
package tech.easily.easybridge.lib;

import org.junit.Test;

Expand Down

0 comments on commit cbdffaf

Please sign in to comment.