Skip to content

Commit 87fc858

Browse files
committed
package name changed
1 parent 6958740 commit 87fc858

18 files changed

Lines changed: 36 additions & 35 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ dependencies {
3838

3939
XML File
4040
```
41-
<com.example.docwatcher.DocView
41+
<com.docs.docwatcher.DocView
4242
android:id="@+id/docView"
4343
android:layout_width="match_parent"
4444
android:layout_height="match_parent"/>
4545
```
4646
Fragment/Activity
4747
```
4848
companion object {
49-
private const val PATH = "/data/data/com.example.pdfviewer/files/sample_pdf.pdf"
49+
private const val PATH = "/data/data/com.docs.pdfviewer/files/sample_pdf.pdf"
5050
private const val INTERNET_PATH =
5151
"https://research.nhm.org/pdfs/10840/10840-001.pdf"
5252
}

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ plugins {
44
}
55

66
android {
7-
namespace 'com.example.pdfviewer'
7+
namespace 'com.docs.pdfviewer'
88
compileSdk 33
99

1010
defaultConfig {
11-
applicationId "com.example.pdfviewer"
11+
applicationId "com.docs.pdfviewer"
1212
minSdk 26
1313
targetSdk 33
1414
versionCode 1

app/src/androidTest/java/com/example/pdfviewer/ExampleInstrumentedTest.kt renamed to app/src/androidTest/java/com/docs/pdfviewer/ExampleInstrumentedTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.pdfviewer
1+
package com.docs.pdfviewer
22

33
import androidx.test.platform.app.InstrumentationRegistry
44
import androidx.test.ext.junit.runners.AndroidJUnit4
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
1919
fun useAppContext() {
2020
// Context of the app under test.
2121
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22-
assertEquals("com.example.pdfviewer", appContext.packageName)
22+
assertEquals("com.docs.pdfviewer", appContext.packageName)
2323
}
2424
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
android:theme="@style/Theme.PdfViewer"
1616
tools:targetApi="31">
1717
<activity
18-
android:name=".MainActivity"
18+
android:name="com.docs.pdfviewer.MainActivity"
1919
android:exported="true">
2020
<intent-filter>
2121
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/example/pdfviewer/MainActivity.kt renamed to app/src/main/java/com/docs/pdfviewer/MainActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
package com.example.pdfviewer
1+
package com.docs.pdfviewer
22

33
import androidx.appcompat.app.AppCompatActivity
44
import android.os.Bundle
55
import android.view.View
66
import android.widget.Toast
7-
import com.example.docwatcher.state.DownloadState
8-
import com.example.pdfviewer.databinding.ActivityMainBinding
7+
import com.docs.docwatcher.state.DownloadState
8+
import com.docs.pdfviewer.databinding.ActivityMainBinding
99

1010
class MainActivity : AppCompatActivity() {
1111

1212
companion object {
1313
private const val INTERNAL_STORAGE_PATH =
14-
"/data/data/com.example.pdfviewer/files/sample_pdf.pdf"
14+
"/data/data/com.docs.pdfviewer/files/sample_pdf.pdf"
1515
private const val INTERNET_PATH =
1616
"https://research.nhm.org/pdfs/10840/10840-001.pdf"
1717
private const val EXTERNAL_STORAGE_PATH = ""

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity">
7+
tools:context="com.docs.pdfviewer.MainActivity">
88

9-
<com.example.docwatcher.DocView
9+
<com.docs.docwatcher.DocView
1010
android:id="@+id/docView"
1111
android:layout_width="match_parent"
1212
android:layout_height="match_parent"/>

app/src/test/java/com/example/pdfviewer/ExampleUnitTest.kt renamed to app/src/test/java/com/docs/pdfviewer/ExampleUnitTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.pdfviewer
1+
package com.docs.pdfviewer
22

33
import org.junit.Test
44

docwatcher/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
android {
8-
namespace 'com.example.docwatcher'
8+
namespace 'com.doc.docwatcher'
99
compileSdk 33
1010

1111
defaultConfig {

docwatcher/src/androidTest/java/com/example/docwatcher/ExampleInstrumentedTest.kt renamed to docwatcher/src/androidTest/java/com/docs/docwatcher/ExampleInstrumentedTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.docwatcher
1+
package com.docs.docwatcher
22

33
import androidx.test.platform.app.InstrumentationRegistry
44
import androidx.test.ext.junit.runners.AndroidJUnit4
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
1919
fun useAppContext() {
2020
// Context of the app under test.
2121
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22-
assertEquals("com.example.docwatcher.test", appContext.packageName)
22+
assertEquals("com.docs.docwatcher.test", appContext.packageName)
2323
}
2424
}

docwatcher/src/main/java/com/example/docwatcher/DocView.kt renamed to docwatcher/src/main/java/com/docs/docwatcher/DocView.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.docwatcher
1+
package com.docs.docwatcher
22

33
import android.content.Context
44
import android.graphics.Bitmap
@@ -11,11 +11,12 @@ import androidx.cardview.widget.CardView
1111
import androidx.constraintlayout.widget.ConstraintLayout
1212
import androidx.recyclerview.widget.LinearLayoutManager
1313
import androidx.recyclerview.widget.RecyclerView
14-
import com.example.docwatcher.data.PdfDownloader
15-
import com.example.docwatcher.model.PdfUiModel
16-
import com.example.docwatcher.state.DownloadState
17-
import com.example.docwatcher.util.show
18-
import com.example.docwatcher.util.showPagesViewForSomeSeconds
14+
import com.doc.docwatcher.R
15+
import com.docs.docwatcher.data.PdfDownloader
16+
import com.docs.docwatcher.model.PdfUiModel
17+
import com.docs.docwatcher.state.DownloadState
18+
import com.docs.docwatcher.util.show
19+
import com.docs.docwatcher.util.showPagesViewForSomeSeconds
1920
import kotlinx.coroutines.CoroutineScope
2021
import kotlinx.coroutines.Dispatchers
2122
import java.io.File

0 commit comments

Comments
 (0)