use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appCompTsChanged.
@Override
public void appCompTsChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppComponentTs(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appCompTsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method getTempTsRelativePath.
@Override
public String getTempTsRelativePath(IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
try {
if (app != null) {
File appComponentTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
String filePath = appComponentTsFile.getPath().replace(projectDir.getPath(), File.separator);
return filePath;
}
} catch (Exception e) {
}
return null;
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appTsChanged.
@Override
public void appTsChanged(final IApplicationComponent appComponent, boolean forceTemp) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppComponentTs(app);
moveFiles();
File tempTsFile = new File(ionicWorkDir, "src/app/app.component.temp.ts");
if (forceTemp && tempTsFile.exists()) {
writeAppComponentTempTs(app);
}
Engine.logEngine.trace("(MobileBuilder) Handled 'appTsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appPwaChanged.
@Override
public void appPwaChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
// for worker
configurePwaApp(app);
// for prod mode
writeAppComponentTs(app);
// for worker
writeAppModuleTs(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appPwaChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class Ionic3Builder method appThemeChanged.
@Override
public void appThemeChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppTheme(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appThemeChanged'");
}
}
}
Aggregations