Feat(P3): Modularize module and add Pardakht Novin support
- Split `p3` module into `p3_pardakht_novin` and `p3_sepehr` sub-modules - Create `pardakht_novin_app` module with dedicated WebView and Hilt configuration - Rename P3 services, printers, and models to be vendor-specific (e.g., `P3PardakhtNovinService`) - Add `p3_pardakht_novin` and `p3_sepehr` product flavors to `tis_app` and `stage_app` - Update project settings and build configurations to include the new modular structure - Implement Sepehr-specific POS and Printer services in the new module
This commit is contained in:
+14
-15
@@ -22,28 +22,27 @@ android {
|
||||
|
||||
flavorDimensions.add("module")
|
||||
productFlavors {
|
||||
create("p3") {
|
||||
create("p3_pardakht_novin") {
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
dimension = "module"
|
||||
applicationId = "com.example.tis_app_p3"
|
||||
manifestPlaceholders["appName"] = "تیس"
|
||||
applicationId = "com.example.tis_app_p3_pardakht_novin"
|
||||
manifestPlaceholders["appName"] = "تیس (نوین)"
|
||||
}
|
||||
create("ps4") {
|
||||
create("p3_sepehr") {
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
dimension = "module"
|
||||
applicationId = "com.example.tis_app_p4"
|
||||
manifestPlaceholders["appName"] = "تیس" }
|
||||
create("standard") {
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
dimension = "module"
|
||||
applicationId = "com.example.tis_app"
|
||||
manifestPlaceholders["appName"] = "تیس" }
|
||||
applicationId = "com.example.tis_app_p3_sepehr"
|
||||
manifestPlaceholders["appName"] = "تیس (سپهر)"
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix = ".debug"
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
@@ -66,10 +65,10 @@ android {
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
implementation(project(":design_system"))
|
||||
"p3Implementation"(project(":p3"))
|
||||
|
||||
"ps4Implementation"(project(":ps4"))
|
||||
|
||||
"p3_pardakht_novinImplementation"(project(":p3:p3_pardakht_novin"))
|
||||
"p3_sepehrImplementation"(project(":p3:p3_sepehr"))
|
||||
|
||||
implementation(libs.hilt.android)
|
||||
ksp(libs.hilt.compiler)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user