Skip to content

Commit 2eec4fe

Browse files
committed
Rename root package to org.fairscan.app
1 parent 49cdbaf commit 2eec4fe

38 files changed

+94
-95
lines changed

app/build.gradle.kts

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

99
android {
10-
namespace = "org.mydomain.myscan"
10+
namespace = "org.fairscan.app"
1111
compileSdk = 35
1212
sourceSets["main"].assets.srcDir(layout.buildDirectory.dir("generated/assets"))
1313

app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
-dontwarn com.gemalto.jp2.JP2Decoder
2424
-dontwarn com.gemalto.jp2.JP2Encoder
2525

26-
-keep class org.mydomain.myscan.RecentDocument* { *; }
26+
-keep class org.fairscan.app.RecentDocument* { *; }
2727
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { *; }

app/src/androidTest/java/org/mydomain/myscan/DocumentDetectionTest.kt renamed to app/src/androidTest/java/org/fairscan/app/DocumentDetectionTest.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.content.Context
1818
import android.graphics.Bitmap
1919
import android.graphics.BitmapFactory
2020
import android.util.Log
2121
import androidx.test.core.app.ApplicationProvider
22-
import androidx.test.platform.app.InstrumentationRegistry
2322
import androidx.test.ext.junit.runners.AndroidJUnit4
23+
import androidx.test.platform.app.InstrumentationRegistry
2424
import kotlinx.coroutines.runBlocking
25-
25+
import org.junit.Assert.assertEquals
26+
import org.junit.Assert.fail
2627
import org.junit.Test
2728
import org.junit.runner.RunWith
28-
29-
import org.junit.Assert.*
3029
import org.opencv.android.OpenCVLoader
3130
import java.io.File
3231
import java.io.FileOutputStream
@@ -36,7 +35,7 @@ class DocumentDetectionTest {
3635
@Test
3736
fun extractDocumentFromImage() {
3837
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
39-
assertEquals("org.mydomain.myscan", appContext.packageName)
38+
assertEquals("org.fairscan.app", appContext.packageName)
4039

4140
val context = ApplicationProvider.getApplicationContext<Context>()
4241
val segmentationService = ImageSegmentationService(context)

app/src/main/java/org/mydomain/myscan/CameraPermission.kt renamed to app/src/main/java/org/fairscan/app/CameraPermission.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.Manifest
1818
import android.content.Context

app/src/main/java/org/mydomain/myscan/DocumentDetection.kt renamed to app/src/main/java/org/fairscan/app/DocumentDetection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.graphics.Bitmap
1818
import androidx.core.graphics.createBitmap

app/src/main/java/org/mydomain/myscan/Geometry.kt renamed to app/src/main/java/org/fairscan/app/Geometry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import kotlin.math.atan2
1818
import kotlin.math.sqrt

app/src/main/java/org/mydomain/myscan/ImageRepository.kt renamed to app/src/main/java/org/fairscan/app/ImageRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import java.io.File
1818

app/src/main/java/org/mydomain/myscan/ImageSegmentation.kt renamed to app/src/main/java/org/fairscan/app/ImageSegmentation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.content.Context
1818
import android.graphics.Bitmap

app/src/main/java/org/mydomain/myscan/LiveAnalysisState.kt renamed to app/src/main/java/org/fairscan/app/LiveAnalysisState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.graphics.Bitmap
1818
import androidx.compose.runtime.Immutable

app/src/main/java/org/mydomain/myscan/MainActivity.kt renamed to app/src/main/java/org/fairscan/app/MainActivity.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* You should have received a copy of the GNU General Public License along with
1313
* this program. If not, see <https://www.gnu.org/licenses/>.
1414
*/
15-
package org.mydomain.myscan
15+
package org.fairscan.app
1616

1717
import android.content.ActivityNotFoundException
1818
import android.content.Intent
@@ -37,12 +37,12 @@ import kotlinx.coroutines.Dispatchers
3737
import kotlinx.coroutines.launch
3838
import kotlinx.coroutines.suspendCancellableCoroutine
3939
import kotlinx.coroutines.withContext
40-
import org.mydomain.myscan.ui.theme.MyScanTheme
41-
import org.mydomain.myscan.view.AboutScreen
42-
import org.mydomain.myscan.view.CameraScreen
43-
import org.mydomain.myscan.view.DocumentScreen
44-
import org.mydomain.myscan.view.HomeScreen
45-
import org.mydomain.myscan.view.LibrariesScreen
40+
import org.fairscan.app.ui.theme.MyScanTheme
41+
import org.fairscan.app.view.AboutScreen
42+
import org.fairscan.app.view.CameraScreen
43+
import org.fairscan.app.view.DocumentScreen
44+
import org.fairscan.app.view.HomeScreen
45+
import org.fairscan.app.view.LibrariesScreen
4646
import org.opencv.android.OpenCVLoader
4747

4848
private const val PDF_MIME_TYPE = "application/pdf"

0 commit comments

Comments
 (0)