Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: package name to org.mifospay #1616

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ captures/
/app/app-release.apk
app/app.iml
app/manifest-merger-release-report.txt

# Exclude Google services from prod flavour
mifospay/src/prod/google-services.json
2 changes: 1 addition & 1 deletion build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
`kotlin-dsl`
}

group = "org.mifos.mobilewallet.mifospay.buildlogic"
group = "org.mifospay.buildlogic"

// Configure the build-logic plugins to target JDK 17
// This matches the JDK used to build the project, and is not related to what is running on device.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.android.build.api.dsl.ApplicationExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
import org.mifos.mobilewallet.mifospay.configureAndroidCompose
import org.mifospay.configureAndroidCompose

class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.getByType
import org.mifos.mobilewallet.mifospay.configureBadgingTasks
import org.mifos.mobilewallet.mifospay.configureKotlinAndroid
import org.mifos.mobilewallet.mifospay.configurePrintApksTask
import org.mifospay.configureBadgingTasks
import org.mifospay.configureKotlinAndroid
import org.mifospay.configurePrintApksTask

class AndroidApplicationConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.mifos.mobilewallet.mifospay.libs
import org.mifospay.libs

class AndroidApplicationFirebaseConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.android.build.api.dsl.ApplicationExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.mifos.mobilewallet.mifospay.configureFlavors
import org.mifospay.configureFlavors

class AndroidApplicationFlavorsConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.mifos.mobilewallet.mifospay.libs
import org.mifospay.libs

class AndroidFeatureConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import org.mifos.mobilewallet.mifospay.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.mifospay.libs

class AndroidHiltConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.android.build.gradle.LibraryExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
import org.mifos.mobilewallet.mifospay.configureAndroidCompose
import org.mifospay.configureAndroidCompose

class AndroidLibraryComposeConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.kotlin
import org.mifos.mobilewallet.mifospay.configureKotlinAndroid
import org.mifos.mobilewallet.mifospay.configurePrintApksTask
import org.mifos.mobilewallet.mifospay.disableUnnecessaryAndroidTests
import org.mifos.mobilewallet.mifospay.libs
import org.mifospay.configureFlavors
import org.mifospay.configureKotlinAndroid
import org.mifospay.configurePrintApksTask
import org.mifospay.disableUnnecessaryAndroidTests
import org.mifospay.libs

class AndroidLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand All @@ -23,6 +24,7 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
configureKotlinAndroid(this)
defaultConfig.targetSdk = 34
testOptions.animationsDisabled = true
configureFlavors(this)
// The resource prefix is derived from the module name,
// so resources inside ":core:module1" must be prefixed with "core_module1_"
resourcePrefix = path.split("""\W""".toRegex()).drop(1).distinct().joinToString(separator = "_").lowercase() + "_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.mifos.mobilewallet.mifospay.libs
import org.mifospay.libs

class AndroidRoomConventionPlugin : Plugin<Project> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.android.build.gradle.TestExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.mifos.mobilewallet.mifospay.configureKotlinAndroid
import org.mifospay.configureKotlinAndroid

class AndroidTestConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.mifos.mobilewallet.mifospay.configureKotlinJvm
import org.mifospay.configureKotlinJvm

class JvmLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.variant.LibraryAndroidComponentsExtension
import org.gradle.api.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.artifact.SingleArtifact
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.dsl.CommonExtension
import org.gradle.api.JavaVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

/**
* This is shared between :app and :benchmarks module to provide configurations type safety.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.dsl.ApplicationExtension
import com.android.build.api.dsl.ApplicationProductFlavor
Expand All @@ -14,19 +14,19 @@ enum class FlavorDimension {
// purposes, or from a production backend server which supplies up-to-date, real content.
// These two product flavors reflect this behaviour.
@Suppress("EnumEntryName")
enum class NiaFlavor(val dimension: FlavorDimension, val applicationIdSuffix: String? = null) {
enum class MifosFlavor(val dimension: FlavorDimension, val applicationIdSuffix: String? = null) {
demo(FlavorDimension.contentType, applicationIdSuffix = ".demo"),
prod(FlavorDimension.contentType)
}

fun configureFlavors(
commonExtension: CommonExtension<*, *, *, *, *, *>,
flavorConfigurationBlock: ProductFlavor.(flavor: NiaFlavor) -> Unit = {}
flavorConfigurationBlock: ProductFlavor.(flavor: MifosFlavor) -> Unit = {}
) {
commonExtension.apply {
flavorDimensions += FlavorDimension.contentType.name
productFlavors {
NiaFlavor.values().forEach {
MifosFlavor.values().forEach {
create(it.name) {
dimension = it.dimension.name
flavorConfigurationBlock(this, it)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import com.android.build.api.artifact.SingleArtifact
import com.android.build.api.variant.AndroidComponentsExtension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay
package org.mifospay

import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
Expand Down
2 changes: 1 addition & 1 deletion core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

android {
namespace = "org.mifos.mobilewallet.mifospay.core.analytics"
namespace = "org.mifospay.core.analytics"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics
package org.mifospay.core.analytics

/**
* Represents an analytics event.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics
package org.mifospay.core.analytics

/**
* Interface for logging analytics events. See `FirebaseAnalyticsHelper` and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics
package org.mifospay.core.analytics

/**
* Implementation of AnalyticsHelper which does nothing. Useful for tests and previews.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics
package org.mifospay.core.analytics

import android.util.Log
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics
package org.mifospay.core.analytics

import androidx.compose.runtime.staticCompositionLocalOf

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.analytics.di
package org.mifospay.core.analytics.di

import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
Expand All @@ -8,7 +8,7 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.mifos.mobilewallet.mifospay.core.analytics.AnalyticsHelper
import org.mifospay.core.analytics.AnalyticsHelper
import javax.inject.Singleton

@Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.mifos.mobilewallet.mifospay.core.analytics.di
package org.mifospay.core.analytics.di

import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.logEvent
import org.mifos.mobilewallet.mifospay.core.analytics.AnalyticsEvent
import org.mifos.mobilewallet.mifospay.core.analytics.AnalyticsHelper
import org.mifospay.core.analytics.AnalyticsEvent
import org.mifospay.core.analytics.AnalyticsHelper
import javax.inject.Inject

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.designsystem
package org.mifospay.mobilewallet.mifospay.analytics

import org.junit.Test

Expand Down
2 changes: 1 addition & 1 deletion core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
apply(from = "${project.rootDir}/config/quality/quality.gradle")

android {
namespace = "org.mifos.mobilewallet.mifospay.common"
namespace = "org.mifospay.common"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.common
package org.mifospay.common

/**
* Created by naman on 17/6/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.common
package org.mifospay.common

object CreditCardUtils {
fun validateCreditCardNumber(str: String): Boolean {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.common
package org.mifospay.common

import android.util.Log

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.common
package org.mifospay.common

import android.app.Activity
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.mifospay.core.network
package org.mifospay.core.network

import javax.inject.Qualifier
import kotlin.annotation.AnnotationRetention.RUNTIME
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.mifos.mobilewallet.mifospay.core.network.di
package org.mifospay.core.network.di

import org.mifos.mobilewallet.mifospay.core.network.Dispatcher
import org.mifos.mobilewallet.mifospay.core.network.MifosDispatchers.Default
import org.mifospay.core.network.Dispatcher
import org.mifospay.core.network.MifosDispatchers.Default
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.mifos.mobilewallet.mifospay.core.network.di
package org.mifospay.core.network.di

import org.mifos.mobilewallet.mifospay.core.network.Dispatcher
import org.mifos.mobilewallet.mifospay.core.network.MifosDispatchers.Default
import org.mifos.mobilewallet.mifospay.core.network.MifosDispatchers.IO
import org.mifospay.core.network.Dispatcher
import org.mifospay.core.network.MifosDispatchers.Default
import org.mifospay.core.network.MifosDispatchers.IO
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.datastore
package org.mifospay.common

import org.junit.Test

Expand Down
2 changes: 1 addition & 1 deletion core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apply(from = "${project.rootDir}/config/quality/quality.gradle")
group = "com.github.ankurs287"

android {
namespace = "org.mifos.mobilewallet.core"
namespace = "org.mifospay.core.data"
testOptions {
unitTests {
isIncludeAndroidResources = true
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.mifos.mobilewallet.core.base
package org.mifospay.core.data.base

import org.mifos.mobilewallet.core.base.UseCase.UseCaseCallback
import org.mifospay.core.data.base.UseCase.UseCaseCallback
import javax.inject.Inject

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.core.base
package org.mifospay.core.data.base

import java.util.concurrent.ArrayBlockingQueue

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobilewallet.core.base
package org.mifospay.core.data.base

/**
* Use cases are the entry points to the domain layer.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.mifos.mobilewallet.core.base
package org.mifospay.core.data.base

import org.mifos.mobilewallet.core.data.fineract.repository.FineractRepository
import org.mifos.mobilewallet.core.domain.usecase.account.FetchAccountTransfer
import org.mifos.mobilewallet.core.domain.usecase.client.FetchClientDetails
import org.mifos.mobilewallet.core.util.Constants
import org.mifospay.core.data.fineract.repository.FineractRepository
import org.mifospay.core.data.domain.usecase.account.FetchAccountTransfer
import org.mifospay.core.data.domain.usecase.client.FetchClientDetails
import org.mifospay.core.data.util.Constants
import javax.inject.Inject

/**
Expand Down
Loading
Loading