slip font change
This commit is contained in:
parent
a47137f624
commit
d5bef92cff
@ -113,7 +113,7 @@ public class HostConfigFragment extends DataBindingFragment {
|
||||
return;
|
||||
}
|
||||
printer.setGray(GrayLevelEnum.LEVEL_2);
|
||||
Typeface typeface = ResourcesCompat.getFont(requireContext(), R.font.consolas_regular);
|
||||
Typeface typeface = ResourcesCompat.getFont(requireContext(), R.font.consolas_bold);
|
||||
printer.setTypeface(typeface);
|
||||
SystemParamsOperation sp = SystemParamsOperation.getInstance();
|
||||
|
||||
|
||||
BIN
app/src/main/res/font/consolas_bold.ttf
Normal file
BIN
app/src/main/res/font/consolas_bold.ttf
Normal file
Binary file not shown.
@ -289,8 +289,8 @@ public class NetworkModule {
|
||||
tmsAddress = getTMSUrlFromNative();
|
||||
}
|
||||
|
||||
String baseUrl = tmsAddress.trim() + "/api/v1/";
|
||||
// String baseUrl = tmsAddress.trim() + "/";
|
||||
String baseUrl = tmsAddress.trim() + "/api/v1/"; //for on prim
|
||||
// String baseUrl = tmsAddress.trim() + "/"; //for uat
|
||||
|
||||
final Gson gson =
|
||||
new GsonBuilder().create();
|
||||
@ -487,8 +487,8 @@ public Retrofit provideKPayRefundRetrofit(@ApplicationContext Context context) {
|
||||
OkHttpClient client = new OkHttpClient.Builder()
|
||||
.addInterceptor(interceptor)
|
||||
.build();
|
||||
String baseUrl = "http://receipt-nest.utsmyanmar.com/";
|
||||
// String baseUrl = "https://api-tms-uat.kbzbank.com:8443/receipt/";
|
||||
String eReceiptAddress = SystemParamsOperation.getInstance().getEreceiptAddress();
|
||||
String baseUrl = eReceiptAddress + "/";
|
||||
|
||||
return new Retrofit.Builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@ -40,6 +40,7 @@ import com.utsmyanmar.baselib.network.model.KPayRefund;
|
||||
import com.utsmyanmar.baselib.repo.local.PayWaveRepository;
|
||||
import com.utsmyanmar.baselib.util.EReceiptHelper;
|
||||
import com.utsmyanmar.paylibs.model.PayDetail;
|
||||
import com.utsmyanmar.paylibs.utils.LogUtil;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -113,6 +114,7 @@ public class Repository {
|
||||
}
|
||||
public Observable<EReceiptResponse> sendReceipt(Object body){
|
||||
String apiSecret = BuildConfig.ERECEIPT_SECRET;
|
||||
LogUtil.d("kmk", "receipt secret =>" + apiSecret);
|
||||
String timestamp = String.valueOf(System.currentTimeMillis());
|
||||
String bodyString = new Gson().toJson(body);
|
||||
String dataToHash = bodyString + apiSecret + timestamp;
|
||||
|
||||
@ -29,4 +29,5 @@ android.useAndroidX=true
|
||||
android.nonTransitiveRClass=true
|
||||
# Disable Android Studio's Jetifier to avoid conflicts
|
||||
android.enableJetifier=false
|
||||
ERECEIPT_SECRET=y812J21lhha11OS
|
||||
#ERECEIPT_SECRET=y812J21lhha11OS
|
||||
ERECEIPT_SECRET=8f4df38d1001bcc4620b5c736c66a03eef4653eb3ba31105faa2f2ee294c4a46
|
||||
|
||||
BIN
paylibs/src/main/assets/fonts/consolab.ttf
Normal file
BIN
paylibs/src/main/assets/fonts/consolab.ttf
Normal file
Binary file not shown.
@ -117,7 +117,7 @@ public abstract class BaseXPrint {
|
||||
Resources resources = PayLibsUtils.getInstance().context.getResources();
|
||||
// Typeface typeface = ResourcesCompat.getFont(PayLibsUtils.getInstance().context, R.font.consolas);
|
||||
// printer.setTypeface(typeface);
|
||||
printer.setTypeface(Typeface.createFromAsset(PayLibsUtils.getInstance().context.getAssets(), "fonts/ubuntu_mono.ttf"));
|
||||
printer.setTypeface(Typeface.createFromAsset(PayLibsUtils.getInstance().context.getAssets(), "fonts/consolab.ttf"));
|
||||
printer.setGray(getGrayLevel());
|
||||
|
||||
}
|
||||
|
||||
@ -1649,4 +1649,9 @@ public class SystemParamsOperation {
|
||||
SystemParamsSettings params = getSystemParamsSettings();
|
||||
return params.getCertificatePassword();
|
||||
}
|
||||
|
||||
public String getEreceiptAddress() {
|
||||
SystemParamsSettings params = getSystemParamsSettings();
|
||||
return params.getEreceiptAddress();
|
||||
}
|
||||
}
|
||||
@ -43,8 +43,10 @@ public class SystemParamsSettings implements Serializable {
|
||||
// private String tmsAddress = "https://tms.smile-mm.com";
|
||||
// private String tmsAddress = "http://128.199.170.203";
|
||||
private String tmsAddress = "http://sirius-nest.utsmyanmar.com";
|
||||
// private String tmsAddress = "https://api-tms-uat.kbzbank.com:8443/sirius";
|
||||
// private String tmsAddress = "https://api-tms-uat.kbzbank.com:8443/sirius"; //for uat
|
||||
private String ereceiptAddress = "http://receipt-nest.utsmyanmar.com";
|
||||
// String baseUrl = "http://receipt-nest.utsmyanmar.com/"; //for uat
|
||||
|
||||
|
||||
private String terminalCapability = "E0E8C8";
|
||||
|
||||
|
||||
BIN
paylibs/src/main/res/font/consolab.ttf
Normal file
BIN
paylibs/src/main/res/font/consolab.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user