Feat(All): Tis

some changes
This commit is contained in:
Amir Mousavi
2026-05-06 23:33:56 +03:30
parent c9e656f705
commit d73df5524e
128 changed files with 1635 additions and 156 deletions
@@ -0,0 +1,9 @@
package com.example.core.data
import com.example.core.domain.AppConfig
class AppConfigImpl : AppConfig{
override fun androidId(id: String): String {
return "window.WebV.onUUID($id);"
}
}
@@ -10,7 +10,7 @@ class PaymentResultImpl @Inject constructor(
) : PaymentResult {
override fun post(paymentResultEntity: PaymentResultEntity?): String {
return "window.onPaymentResult(${gson.toJson(paymentResultEntity)});"
return "window.WebV.onPaymentResult(${gson.toJson(paymentResultEntity)});"
}
}
@@ -1,6 +1,8 @@
package com.example.core.di
import com.example.core.data.AppConfigImpl
import com.example.core.data.PaymentResultImpl
import com.example.core.domain.AppConfig
import com.example.core.domain.PaymentResult
import com.google.gson.Gson
import dagger.Module
@@ -23,4 +25,9 @@ class CoreModule {
): PaymentResult = PaymentResultImpl(
gson = gson
)
@Provides
fun provideAppConfig(
gson: Gson
): AppConfig = AppConfigImpl()
}
@@ -0,0 +1,7 @@
package com.example.core.domain
import com.example.core.model.PaymentResultEntity
interface AppConfig {
fun androidId(id : String) : String
}
@@ -0,0 +1,11 @@
package com.example.core.domain
import androidx.annotation.DrawableRes
import com.example.core.model.PrintEntity
interface Printer {
fun print(
printEntities: List<PrintEntity>,
@DrawableRes icon :Int)
}
@@ -0,0 +1,23 @@
package com.example.core.model
import androidx.annotation.Keep
@Keep
data class PrintEntity(
val title: String? = null,
val items: List<ItemEntity>? = null,
val paragraph: String? = null,
val type: Type
) {
data class ItemEntity(
val label: String,
val value: String,
)
enum class Type() {
CARD,
PARAGRAPH
}
}
+28
View File
@@ -0,0 +1,28 @@
<!--
~ Copyright (C) 2026 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="800dp"
android:height="200dp"
android:viewportWidth="800"
android:viewportHeight="200">
<path
android:pathData="M1.2,101.4L6.2,101.4L27.2,101.4L53.2,101.4L69.2,101.4L87.2,101.4L103.2,101.4L117.2,101.4L126.2,101.4L134.2,101.4L144.2,101.4L150.2,101.4L162.2,101.4L179.2,101.4L197.2,101.4L217.2,101.4L231.2,101.4L252.2,101.4L265.2,101.4L282.2,101.4L293.2,101.4L313.2,101.4L336.2,101.4L357.2,101.4L377.2,101.4L400.2,101.4L433.2,101.4L456.2,101.4L489.2,101.4L515.2,101.4L515.2,101.4L521.2,101.4L545.2,101.4L581.2,101.4L605.2,101.4L633.2,101.4L649.2,101.4L663.2,101.4L672.2,101.4L684.2,101.4L691.2,101.4L701.2,101.4L713.2,101.4L722.2,101.4L737.2,101.4L747.2,101.4L752.2,101.4L761.2,101.4L769.2,101.4L781.2,101.4L787.2,101.4L794.2,101.4L797.2,101.4L799.2,101.4L801.2,101.4"
android:strokeLineJoin="round"
android:strokeWidth="8"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeLineCap="round"/>
</vector>
@@ -0,0 +1,26 @@
<!--
~ Copyright (C) 2026 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="256dp"
android:height="2dp"
android:viewportWidth="24.8"
android:viewportHeight="8">
<path
android:pathData="M0,0h24.8v248h-24.8z"
android:strokeWidth="0"
android:fillColor="#000000"
android:strokeColor="#000000"/>
</vector>