Racib and Crypto_int
This commit is contained in:
@@ -28,15 +28,28 @@ android {
|
|||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
applicationId "com.dinect.checker"
|
applicationId "com.dinect.checker"
|
||||||
}
|
}
|
||||||
|
signingConfigs {
|
||||||
|
debug {
|
||||||
|
storeFile file("../../debug.keystore")
|
||||||
|
keyAlias 'androiddebugkey'
|
||||||
|
keyPassword 'android'
|
||||||
|
storePassword 'android'
|
||||||
|
}
|
||||||
|
release {
|
||||||
|
storeFile file("../../dinect-release-key.keystore")
|
||||||
|
storePassword 'df3bsfb6ale'
|
||||||
|
keyAlias 'key0'
|
||||||
|
keyPassword 'vquyc4b8smdk2'
|
||||||
|
}
|
||||||
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
debug {
|
debug {
|
||||||
debuggable true
|
debuggable true
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
|
signingConfig signingConfigs.release
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -123,21 +136,21 @@ android {
|
|||||||
buildConfigField "boolean", "showBonus", "false"
|
buildConfigField "boolean", "showBonus", "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
pip {
|
crypto {
|
||||||
applicationId 'com.dinect.checker.pip'
|
applicationId 'digital.joys.checker.app'
|
||||||
buildConfigField "String", "locale", "\"ua\""
|
buildConfigField "String", "locale", "\"ru\""
|
||||||
buildConfigField "String", "flavor", "\"pip\""
|
buildConfigField "String", "flavor", "\"crypto\""
|
||||||
buildConfigField "int", "currency", "980"
|
buildConfigField "int", "currency", "643"
|
||||||
buildConfigField "String", "supportPhone", "\"+38 080 030 9997\\n+38 044 390 1697\""
|
buildConfigField "String", "supportPhone", "\"support@joys.digital\""
|
||||||
buildConfigField "String", "supportUrl", "\"http://discount.kiev.ua/\""
|
buildConfigField "String", "supportUrl", "\"https://joys.digital/\""
|
||||||
buildConfigField "String", "endpoint", "\"https://pos-api.discount.kiev.ua/20130701/\""
|
buildConfigField "String", "endpoint", "\"https://pos.api.joys.digital/20130701/\""
|
||||||
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
||||||
buildConfigField "String", "appTitle", "\"PIP\""
|
buildConfigField "String", "appTitle", "\"POSapp Joys\""
|
||||||
buildConfigField "boolean", "showBonus", "true"
|
buildConfigField "boolean", "showBonus", "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
crypto {
|
crypto_INT {
|
||||||
applicationId 'digital.joys.checker'
|
applicationId 'digital.joys.checker.int'
|
||||||
buildConfigField "String", "locale", "\"ru\""
|
buildConfigField "String", "locale", "\"ru\""
|
||||||
buildConfigField "String", "flavor", "\"crypto\""
|
buildConfigField "String", "flavor", "\"crypto\""
|
||||||
buildConfigField "int", "currency", "643"
|
buildConfigField "int", "currency", "643"
|
||||||
@@ -145,8 +158,8 @@ android {
|
|||||||
buildConfigField "String", "supportUrl", "\"https://joys.digital/\""
|
buildConfigField "String", "supportUrl", "\"https://joys.digital/\""
|
||||||
buildConfigField "String", "endpoint", "\"https://pos-api-crypto-int.dinect.com/20130701/\""
|
buildConfigField "String", "endpoint", "\"https://pos-api-crypto-int.dinect.com/20130701/\""
|
||||||
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
||||||
buildConfigField "String", "appTitle", "\"POSapp Joys\""
|
buildConfigField "String", "appTitle", "\"POSapp Joys (INT)\""
|
||||||
buildConfigField "boolean", "showBonus", "true"
|
buildConfigField "boolean", "showBonus", "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
develop {
|
develop {
|
||||||
@@ -162,17 +175,17 @@ android {
|
|||||||
buildConfigField "boolean", "showBonus", "true"
|
buildConfigField "boolean", "showBonus", "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
biohacker {
|
racib {
|
||||||
applicationId 'ru.fivefit.biochecker'
|
applicationId 'digital.joys.checker.racib'
|
||||||
buildConfigField "String", "locale", "\"ru\""
|
buildConfigField "String", "locale", "\"ru\""
|
||||||
buildConfigField "String", "flavor", "\"biohacker\""
|
buildConfigField "String", "flavor", "\"racib\""
|
||||||
buildConfigField "int", "currency", "643"
|
buildConfigField "int", "currency", "643"
|
||||||
buildConfigField "String", "supportPhone", "\"support@dinect.com\""
|
buildConfigField "String", "supportPhone", "\"support@dinect.com\""
|
||||||
buildConfigField "String", "supportUrl", "\"http://www.dinect.com\""
|
buildConfigField "String", "supportUrl", "\"http://www.dinect.com\""
|
||||||
buildConfigField "String", "endpoint", "\"https://pos-api.dinect.com/20130701/\""
|
buildConfigField "String", "endpoint", "\"https://pos-api.dinect.com/20130701/\""
|
||||||
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
buildConfigField "String", "appToken", "\"bdea0f3ba9034b688019a7cac753d1209e2b227f\""
|
||||||
buildConfigField "String", "appTitle", "\"BioChecker\""
|
buildConfigField "String", "appTitle", "\"Racib\""
|
||||||
buildConfigField "boolean", "showBonus", "true"
|
buildConfigField "boolean", "showBonus", "false"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ public class ScannerActivity extends AppCompatActivity implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (!"crypto".equals(BuildConfig.FLAVOR)) {
|
if (!"crypto".equals(BuildConfig.FLAVOR) || !"racib".equals(BuildConfig.FLAVOR)) {
|
||||||
if (mSearchType == SearchType.CARD) {
|
if (mSearchType == SearchType.CARD) {
|
||||||
resetSearchType(SearchType.PHONE_NUMBER, R.drawable.ic_phone, "enter_phone");
|
resetSearchType(SearchType.PHONE_NUMBER, R.drawable.ic_phone, "enter_phone");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ echo on
|
|||||||
call flutter clean
|
call flutter clean
|
||||||
call flutter build apk --flavor autobonus
|
call flutter build apk --flavor autobonus
|
||||||
call flutter build apk --flavor crypto
|
call flutter build apk --flavor crypto
|
||||||
|
call flutter build apk --flavor crypto_int
|
||||||
call flutter build apk --flavor dinect
|
call flutter build apk --flavor dinect
|
||||||
call flutter build apk --flavor dinect_INT
|
call flutter build apk --flavor dinect_INT
|
||||||
call flutter build apk --flavor dinect_OTE
|
call flutter build apk --flavor dinect_OTE
|
||||||
call flutter build apk --flavor biohacker
|
call flutter build apk --flavor racib
|
||||||
|
|||||||
BIN
debug.keystore
Normal file
BIN
debug.keystore
Normal file
Binary file not shown.
@@ -85,26 +85,15 @@
|
|||||||
@"appTitle" : @"POSapp Joys INT",
|
@"appTitle" : @"POSapp Joys INT",
|
||||||
@"showBonus" : @YES,
|
@"showBonus" : @YES,
|
||||||
},
|
},
|
||||||
@"com.dinect.checker.pip" : @{
|
@"digital.joys.checker.racib" : @{
|
||||||
@"locale" : @"ua",
|
|
||||||
@"flavor" : @"pip",
|
|
||||||
@"currency" : @980,
|
|
||||||
@"supportPhone" : @"+38 080 030 9997\n+38 044 390 1697",
|
|
||||||
@"supportUrl" : @"http://discount.kiev.ua/",
|
|
||||||
@"endPoint" : @"https://pos-api.discount.kiev.ua/20130701/",
|
|
||||||
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
|
|
||||||
@"appTitle" : @"PIP",
|
|
||||||
@"showBonus" : @YES,
|
|
||||||
},
|
|
||||||
@"ru.fivefit.biochecker" : @{
|
|
||||||
@"locale" : @"ru",
|
@"locale" : @"ru",
|
||||||
@"flavor" : @"biohacker",
|
@"flavor" : @"racib",
|
||||||
@"currency" : @643,
|
@"currency" : @643,
|
||||||
@"supportPhone" : @"support@dinect.com",
|
@"supportPhone" : @"support@dinect.com",
|
||||||
@"supportUrl" : @"http://www.dinect.com",
|
@"supportUrl" : @"http://www.dinect.com",
|
||||||
@"endPoint" : @"https://pos-api.dinect.com/20130701/",
|
@"endPoint" : @"https://pos-api.dinect.com/20130701/",
|
||||||
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
|
@"appToken" : @"bdea0f3ba9034b688019a7cac753d1209e2b227f",
|
||||||
@"appTitle" : @"BioChecker",
|
@"appTitle" : @"Racib",
|
||||||
@"showBonus" : @YES,
|
@"showBonus" : @YES,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Resources {
|
|||||||
case 'autobonus': return new Color(0xffeb0004);
|
case 'autobonus': return new Color(0xffeb0004);
|
||||||
case 'dinect': return new Color(0xff3daee3);
|
case 'dinect': return new Color(0xff3daee3);
|
||||||
case 'crypto': return new Color(0xff0f3d87);
|
case 'crypto': return new Color(0xff0f3d87);
|
||||||
case 'biohacker': return new Color(0xff464646);
|
case 'racib': return new Color(0xff464646);
|
||||||
default: return new Color(0xffffffff);
|
default: return new Color(0xffffffff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@ class Resources {
|
|||||||
case 'autobonus': return new Color(0xffeb0004);
|
case 'autobonus': return new Color(0xffeb0004);
|
||||||
case 'dinect': return new Color(0xff33cc99);
|
case 'dinect': return new Color(0xff33cc99);
|
||||||
case 'crypto': return new Color(0xffffc34d);
|
case 'crypto': return new Color(0xffffc34d);
|
||||||
case 'biohacker': return new Color(0xffff6134);
|
case 'racib': return new Color(0xffff6134);
|
||||||
default: return new Color(0xffffffff);
|
default: return new Color(0xffffffff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
void initState() {
|
void initState() {
|
||||||
loading = true;
|
loading = true;
|
||||||
requestAsyncData(user);
|
requestAsyncData(user);
|
||||||
|
loading = false;
|
||||||
buildFocusNode();
|
buildFocusNode();
|
||||||
scrollController = new ScrollController();
|
scrollController = new ScrollController();
|
||||||
super.initState();
|
super.initState();
|
||||||
@@ -74,11 +75,8 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
));
|
));
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.card(), card));
|
widgetList.add(getValueWithDescription(StringsLocalization.card(), card));
|
||||||
|
|
||||||
if (app != 'crypto') {
|
if (app != 'crypto' || app != 'racib') {
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.reward(), loyalty));
|
widgetList.add(getValueWithDescription(StringsLocalization.reward(), loyalty));
|
||||||
}
|
|
||||||
|
|
||||||
if (app != 'crypto') {
|
|
||||||
if (bonus.length > 0) {
|
if (bonus.length > 0) {
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.bonus(), bonus));
|
widgetList.add(getValueWithDescription(StringsLocalization.bonus(), bonus));
|
||||||
}
|
}
|
||||||
@@ -87,7 +85,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
widgetList.add(getHintLabel());
|
widgetList.add(getHintLabel());
|
||||||
widgetList.add(getInputField()); // Нельзя добавить еще одно поле таким же способом
|
widgetList.add(getInputField()); // Нельзя добавить еще одно поле таким же способом
|
||||||
|
|
||||||
if ((app != 'autobonus') || (app != 'crypto')) {
|
if ((app != 'autobonus') || (app != 'crypto') || (app != 'racib')) {
|
||||||
|
|
||||||
if (this.loyalityType == 'bonus') {
|
if (this.loyalityType == 'bonus') {
|
||||||
widgetList.add(getBonusInputField());
|
widgetList.add(getBonusInputField());
|
||||||
@@ -133,7 +131,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
var bonusTextField = new TextField(
|
var bonusTextField = new TextField(
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: new InputDecoration.collapsed(
|
decoration: new InputDecoration.collapsed(
|
||||||
hintText: (app != 'crypto') ? StringsLocalization.bonusHint() : StringsLocalization.joysHint(),
|
hintText: StringsLocalization.bonusHint(),
|
||||||
hintStyle: new TextStyle(color: greyTextColor, fontSize: 16.0)
|
hintStyle: new TextStyle(color: greyTextColor, fontSize: 16.0)
|
||||||
),
|
),
|
||||||
focusNode: bonusFocusNode,
|
focusNode: bonusFocusNode,
|
||||||
@@ -163,7 +161,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
top: 5.0
|
top: 5.0
|
||||||
),
|
),
|
||||||
child: new Text(
|
child: new Text(
|
||||||
(app == 'crypto') ? " " : StringsLocalization.bonusExplanation(),
|
StringsLocalization.bonusExplanation(),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: new TextStyle(color: greyTextColor, fontSize: 11.0),
|
style: new TextStyle(color: greyTextColor, fontSize: 11.0),
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
|||||||
widgetList.add(getValueWithDescription(StringsLocalization.buyer(), username));
|
widgetList.add(getValueWithDescription(StringsLocalization.buyer(), username));
|
||||||
widgetList.add(getSuccessMessage());
|
widgetList.add(getSuccessMessage());
|
||||||
|
|
||||||
if (app != 'crypto') {
|
if (app != 'crypto' || app != 'racib') {
|
||||||
if (bonusPlus > 0) {
|
if (bonusPlus > 0) {
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.bonusPlus(), bonusPlus.toString()));
|
widgetList.add(getValueWithDescription(StringsLocalization.bonusPlus(), bonusPlus.toString()));
|
||||||
}
|
}
|
||||||
@@ -103,11 +103,11 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
|||||||
|
|
||||||
if (app != 'autobonus') {
|
if (app != 'autobonus') {
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.discountRate(), '${details['discount']}%'));
|
widgetList.add(getValueWithDescription(StringsLocalization.discountRate(), '${details['discount']}%'));
|
||||||
if (app != 'crypto') {
|
if (app != 'crypto' || app != 'racib') {
|
||||||
widgetList.add(getValueWithDescription(StringsLocalization.discountSum(), '${details['sum_discount']}'));
|
widgetList.add(getValueWithDescription(StringsLocalization.discountSum(), '${details['sum_discount']}'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (app != 'crypto' && this.coupons.length > 0) {
|
if ((app != 'crypto' || app != 'racib') && this.coupons.length > 0) {
|
||||||
widgetList.add(getItemTitle(StringsLocalization.couponsUsed()));
|
widgetList.add(getItemTitle(StringsLocalization.couponsUsed()));
|
||||||
this.coupons.forEach((couponItem) {
|
this.coupons.forEach((couponItem) {
|
||||||
widgetList.add(getItemToggle(
|
widgetList.add(getItemToggle(
|
||||||
@@ -165,7 +165,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
|||||||
|
|
||||||
getMessageTitle() {
|
getMessageTitle() {
|
||||||
if (currency != null) {
|
if (currency != null) {
|
||||||
if (app != 'crypto') {
|
if (app != 'crypto' || app != 'racib') {
|
||||||
return StringsLocalization.paymentCompleted(sum, currency);
|
return StringsLocalization.paymentCompleted(sum, currency);
|
||||||
} else {
|
} else {
|
||||||
return StringsLocalization.purchaseCompleted(sum, currency);
|
return StringsLocalization.purchaseCompleted(sum, currency);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ packages:
|
|||||||
name: synchronized
|
name: synchronized
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.5.3+2"
|
version: "1.5.3"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user