step 19 : icon aplikasi, setting build apk
@@ -6,7 +6,7 @@
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
|
||||
<application
|
||||
android:label="absensi_sas"
|
||||
android:label="Absensi"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/launcher_icon">
|
||||
<activity
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 21 KiB |
BIN
images/icon_absensi_app1.png
Normal file
|
After Width: | Height: | Size: 332 KiB |
BIN
images/icon_absensi_app2.png
Normal file
|
After Width: | Height: | Size: 473 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 9.3 KiB |
@@ -65,6 +65,36 @@ abstract class BaseRepository {
|
||||
}
|
||||
}
|
||||
|
||||
// with handling
|
||||
Future<Map<String, dynamic>> postGraphQlQueryX(
|
||||
String query, Map<String, dynamic> inpVariables) async {
|
||||
try {
|
||||
final options =
|
||||
QueryOptions(document: gql(query), variables: inpVariables);
|
||||
final QueryResult result = await graphql.query(options);
|
||||
|
||||
if (result.hasException) {
|
||||
if (result.exception != null) {
|
||||
if (result.exception!.graphqlErrors.isNotEmpty
|
||||
is BaseRepositoryException) {
|
||||
final error = result.exception!.graphqlErrors[0];
|
||||
BaseRepositoryException exception =
|
||||
result.exception!.linkException as BaseRepositoryException;
|
||||
var errorMessage = exception.message;
|
||||
print(errorMessage);
|
||||
throw BaseRepositoryException(
|
||||
message: errorMessage,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result.data!;
|
||||
} catch (e) {
|
||||
throw BaseRepositoryException(message: e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
// NATIVE POST PAKE DIO
|
||||
Future<Map<String, dynamic>> post({
|
||||
required Map<String, dynamic> param,
|
||||
|
||||
@@ -152,15 +152,16 @@ class PresensiRepository extends BaseRepository {
|
||||
|
||||
// Map<String, dynamic> inpVariables = paramInpVariables;
|
||||
|
||||
// Map<String, dynamic> inpVariables = {
|
||||
// Map<String, dynamic> X = {
|
||||
// "M_StaffID": M_StaffID,
|
||||
// "M_CompanyID": M_CompanyID,
|
||||
// "token": token,
|
||||
// "token": token+"1",
|
||||
// };
|
||||
|
||||
print(paramInpVariables);
|
||||
|
||||
final resp = await postGraphQlQuery(query, paramInpVariables);
|
||||
// final resp = await postGraphQlQueryX(query, X);
|
||||
|
||||
// print(inpVariables);
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 945 B After Width: | Height: | Size: 673 B |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 3.6 KiB |
BIN
web/favicon.png
|
Before Width: | Height: | Size: 945 B After Width: | Height: | Size: 673 B |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.6 KiB |