use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder 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 NgxBuilder 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(appDir, "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 NgxBuilder method appContributorsChanged.
@Override
public void appContributorsChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppSourceFiles(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appContributorsChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method appStyleChanged.
@Override
public void appStyleChanged(final IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
if (app != null && initDone) {
synchronized (app) {
writeAppStyle(app);
moveFiles();
Engine.logEngine.trace("(MobileBuilder) Handled 'appStyleChanged'");
}
}
}
use of com.twinsoft.convertigo.beans.core.IApplicationComponent in project convertigo by convertigo.
the class NgxBuilder method getTempTsRelativePath.
@Override
public String getTempTsRelativePath(IApplicationComponent appComponent) throws EngineException {
ApplicationComponent app = (ApplicationComponent) appComponent;
try {
if (app != null) {
File appComponentTsFile = new File(appDir, "app.component.temp.ts");
String filePath = appComponentTsFile.getPath().replace(projectDir.getPath(), File.separator);
return filePath;
}
} catch (Exception e) {
}
return null;
}
Aggregations