From 028001faac8360646b21d2492ae5d444ddf69d67 Mon Sep 17 00:00:00 2001 From: Kishan Viramgama Date: Sun, 23 Dec 2018 15:17:59 +0530 Subject: [PATCH] change package name --- app/build.gradle | 2 +- .../kids/drawing/ExampleInstrumentedTest.java | 4 ++-- app/src/main/AndroidManifest.xml | 4 ++-- .../com/{drawing/kids/drawing => app/kids}/MainActivity.java | 4 +++- app/src/main/res/layout/activity_main.xml | 2 +- .../com/{drawing => app}/kids/drawing/ExampleUnitTest.java | 2 +- .../kids/mylibrary/ExampleInstrumentedTest.java | 2 +- library/src/main/AndroidManifest.xml | 2 +- .../com/{drawing/kids => app/drawing}/Util/CanvasView.java | 2 +- .../com/{drawing => app}/kids/mylibrary/ExampleUnitTest.java | 2 +- 10 files changed, 14 insertions(+), 12 deletions(-) rename app/src/androidTest/java/com/{drawing => app}/kids/drawing/ExampleInstrumentedTest.java (84%) rename app/src/main/java/com/{drawing/kids/drawing => app/kids}/MainActivity.java (84%) rename app/src/test/java/com/{drawing => app}/kids/drawing/ExampleUnitTest.java (91%) rename library/src/androidTest/java/com/{drawing => app}/kids/mylibrary/ExampleInstrumentedTest.java (95%) rename library/src/main/java/com/{drawing/kids => app/drawing}/Util/CanvasView.java (99%) rename library/src/test/java/com/{drawing => app}/kids/mylibrary/ExampleUnitTest.java (90%) diff --git a/app/build.gradle b/app/build.gradle index 41a2811..0793970 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { - applicationId "com.drawing.kids.drawing" + applicationId "com.app.kids" minSdkVersion 15 targetSdkVersion 28 versionCode 1 diff --git a/app/src/androidTest/java/com/drawing/kids/drawing/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/app/kids/drawing/ExampleInstrumentedTest.java similarity index 84% rename from app/src/androidTest/java/com/drawing/kids/drawing/ExampleInstrumentedTest.java rename to app/src/androidTest/java/com/app/kids/drawing/ExampleInstrumentedTest.java index 6225f7e..fc03d9c 100644 --- a/app/src/androidTest/java/com/drawing/kids/drawing/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/app/kids/drawing/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package com.drawing.kids.drawing; +package com.app.kids.drawing; import android.content.Context; import android.support.test.InstrumentationRegistry; @@ -21,6 +21,6 @@ public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); - assertEquals("com.drawing.kids.drawing", appContext.getPackageName()); + assertEquals("com.app.kids.drawing", appContext.getPackageName()); } } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 42a56a8..2f836a8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="com.app.kids.drawing"> - + diff --git a/app/src/main/java/com/drawing/kids/drawing/MainActivity.java b/app/src/main/java/com/app/kids/MainActivity.java similarity index 84% rename from app/src/main/java/com/drawing/kids/drawing/MainActivity.java rename to app/src/main/java/com/app/kids/MainActivity.java index 1692d96..d33d2b5 100644 --- a/app/src/main/java/com/drawing/kids/drawing/MainActivity.java +++ b/app/src/main/java/com/app/kids/MainActivity.java @@ -1,8 +1,10 @@ -package com.drawing.kids.drawing; +package com.app.kids; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import com.app.kids.drawing.R; + public class MainActivity extends AppCompatActivity { @Override diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 84f1951..943c453 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".MainActivity"> + tools:context="com.app.kids.MainActivity"> + package="com.app.kids.mylibrary" /> diff --git a/library/src/main/java/com/drawing/kids/Util/CanvasView.java b/library/src/main/java/com/app/drawing/Util/CanvasView.java similarity index 99% rename from library/src/main/java/com/drawing/kids/Util/CanvasView.java rename to library/src/main/java/com/app/drawing/Util/CanvasView.java index 153f6cf..7718129 100644 --- a/library/src/main/java/com/drawing/kids/Util/CanvasView.java +++ b/library/src/main/java/com/app/drawing/Util/CanvasView.java @@ -1,4 +1,4 @@ -package com.drawing.kids.Util; +package com.app.drawing.Util; import android.annotation.SuppressLint; import android.content.Context; diff --git a/library/src/test/java/com/drawing/kids/mylibrary/ExampleUnitTest.java b/library/src/test/java/com/app/kids/mylibrary/ExampleUnitTest.java similarity index 90% rename from library/src/test/java/com/drawing/kids/mylibrary/ExampleUnitTest.java rename to library/src/test/java/com/app/kids/mylibrary/ExampleUnitTest.java index 5dc33c8..15a4421 100644 --- a/library/src/test/java/com/drawing/kids/mylibrary/ExampleUnitTest.java +++ b/library/src/test/java/com/app/kids/mylibrary/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package com.drawing.kids.mylibrary; +package com.app.kids.mylibrary; import org.junit.Test;