Commit fd564390 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Test macOS amd ipa builds

parent 1f08b416
......@@ -48,12 +48,12 @@ debug:
artifacts:
expire_in: 2 weeks
paths:
- android/build/outputs/apk/*debug*.apk
- desktop/build/libs/*debug*.jar
# - desktop/build/outputApp/*debug*.app
- desktop/build/outputs/*debug*.exe
- desktop/build/libs/*debug*.deb
# - ios/build/robovm/*debug*.ipa
# - android/build/outputs/apk/*debug*.apk
# - desktop/build/libs/*debug*.jar
- desktop/build/outputApp/*debug*.app
# - desktop/build/outputs/*debug*.exe
# - desktop/build/libs/*debug*.deb
- ios/build/robovm/*debug*.ipa
unitTest:
stage: unitTest
script:
......
......@@ -68,6 +68,7 @@ import cz.nic.tablexia.util.ui.button.TablexiaButton;
import cz.nic.tablexia.util.ui.dialog.TablexiaComponentDialog;
import cz.nic.tablexia.util.ui.dialog.TablexiaComponentDialogFactory;
import cz.nic.tablexia.util.ui.dialog.components.AdaptiveSizeDialogComponent;
import cz.nic.tablexia.util.ui.dialog.components.AlertOnShowDialogComponent;
import cz.nic.tablexia.util.ui.dialog.components.BackButtonHideComponent;
import cz.nic.tablexia.util.ui.dialog.components.CenterPositionDialogComponent;
import cz.nic.tablexia.util.ui.dialog.components.DimmerDialogComponent;
......@@ -669,6 +670,48 @@ public class Tablexia extends TablexiaApplication {
private ApplicationReturnToLastLocaleEvent(){}
}
private void showNoValidPackageDialog(){
Gdx.app.postRunnable(new Runnable() {
@Override
public void run() {
ArrayList<TablexiaDialogComponentAdapter> adapters = new ArrayList<>();
adapters.add(new ResizableSpaceContentDialogComponent());
adapters.add(
new TextContentDialogComponent(
ApplicationTextManager.getInstance().getText(ApplicationTextManager.ApplicationTextsAssets.ASSETS_MANAGER_NO_VALID_PACKAGE),
true,
true));
adapters.add(new ResizableSpaceContentDialogComponent());
adapters.add(new SingleButtonContentDialogComponent(ApplicationTextManager.getInstance().getText(ApplicationTextManager.ApplicationTextsAssets.SYSTEM_UNDERSTAND),
StandardTablexiaButton.TablexiaButtonType.RED,
new ClickListener(){
@Override
public void clicked(InputEvent event, float x, float y) {
super.clicked(event, x, y);
Gdx.app.exit();
}
}));
adapters.add(new BackButtonHideComponent(){
@Override
public void onBackButtonPress(BackButtonPressed event) {
Gdx.app.exit();
}
});
adapters.add(new FixedSpaceContentDialogComponent(1f/40));
adapters.add(new AlertOnShowDialogComponent());
adapters.add(new AdaptiveSizeDialogComponent());
adapters.add(new CenterPositionDialogComponent());
adapters.add(new DimmerDialogComponent());
TablexiaComponentDialogFactory.getInstance().createDialog(adapters.toArray(new TablexiaDialogComponentAdapter[]{}))
.show(Tablexia.ERROR_DIALOG_WIDTH, Tablexia.ERROR_DIALOG_HEIGHT);
}
});
}
//////////////////////////// CHANGE SCREEN EVENT
......@@ -762,21 +805,13 @@ public class Tablexia extends TablexiaApplication {
public void handleApplicationLocaleResetEvent(ApplicationLocaleResetEvent applicationLocaleResetEvent){
List<TablexiaSettings.LocaleDefinition> availableLocale = assetsManager.checkAvailablePackages();
if (availableLocale.size() > 0){
Log.debug(getClass().getSimpleName(), ": some lang. packs were found");
ApplicationBus.getInstance().post(TablexiaAssetsManager.AssetsManagerEvent.loadFinished()).asynchronously();
showLanguageChooseDialog(availableLocale);
}else {
Log.info(getClass(),"No valid locale package was found");
// TODO: 1.3.17 add exit on back pressed
TablexiaComponentDialogFactory.getInstance().createSingleButtonNotifyDialog(
ApplicationTextManager.getInstance().getText(ApplicationTextManager.ApplicationTextsAssets.ASSETS_MANAGER_NO_VALID_PACKAGE),
new ClickListener(){
@Override
public void clicked(InputEvent event, float x, float y) {
super.clicked(event, x, y);
Gdx.app.exit();
}
}
).show(Tablexia.ERROR_DIALOG_WIDTH, Tablexia.ERROR_DIALOG_HEIGHT);
Log.debug(getClass().getSimpleName(), ": nothing found");
showNoValidPackageDialog();
}
}
......
#
#Tue Dec 05 17:53:30 CET 2017
app.buildtype=release
app.version=3.5-45
app.mainclass=cz.nic.tablexia.desktop.DesktopLauncher
app.icon=mac_icon_release.icns
app.executable=JavaAppLauncher
app.sentryDSN=None
app.build=1512489502
app.name=Tablexia (feature-osx-desktop)
app.id=cz.nic.tablexia.featureosxdesktop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment