Implementato dynamic load module per VGAlimenti.
Implementato framework per gestire le path.
This commit is contained in:
12
dynamic_vgalimenti/src/main/AndroidManifest.xml
Normal file
12
dynamic_vgalimenti/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:dist="http://schemas.android.com/apk/distribution"
|
||||
package="it.integry.wms.dynamic_customization">
|
||||
|
||||
<dist:module
|
||||
dist:instant="false"
|
||||
dist:onDemand="true"
|
||||
dist:title="@string/title_dynamic_vgalimenti">
|
||||
<dist:fusing dist:include="true" />
|
||||
</dist:module>
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package it.integry.wms.dynamic_customization;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import it.integry.integrywmsnative.core.class_router.BaseRouter;
|
||||
import it.integry.integrywmsnative.core.class_router.MethodDTO;
|
||||
import it.integry.integrywmsnative.core.class_router.exceptions.MethodPathAlreadyDeclaredException;
|
||||
|
||||
public class DynamicContext {
|
||||
|
||||
public static void init() {
|
||||
Log.d("DynamicContext", "Caricamento personalizzazioni per VGAlimenti");
|
||||
|
||||
try {
|
||||
BaseRouter.registerPath("testToast", MethodDTO.fromName(OrdineVendita.class, "testMe"));
|
||||
BaseRouter.registerPath("distribuzioneColloV", MethodDTO.fromName(OrdineVendita.class, "distribuisciColloV"));
|
||||
|
||||
} catch (MethodPathAlreadyDeclaredException ex) {
|
||||
|
||||
}
|
||||
|
||||
Log.d("DynamicContext", "Caricamento personalizzazioni per VGAlimenti COMPLETATO");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.integry.wms.dynamic_customization;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class OrdineVendita {
|
||||
|
||||
|
||||
public static void testMe(Context context) {
|
||||
Toast.makeText(context, "Questo è un fottuto test di questo maledetto framework", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
public static void distribuisciColloV() {
|
||||
Log.d("OrdineVendita", "Completata distribuzione collo");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user