upload project skripsi
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
|
||||
include 'koneksi.php';
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
$id_user = $_POST['id_user'];
|
||||
$tkp = $_POST['tkp'];
|
||||
$jumlah_kejahatan = $_POST['jumlah_kejahatan'];
|
||||
$jarak_tkp_polres = $_POST['jarak_tkp_polres'];
|
||||
$status = $_POST['status'];
|
||||
|
||||
$sql_check = "SELECT * FROM kasus_testing WHERE tkp = '$tkp'";
|
||||
$sql_id_terakhir = "SELECT * FROM kasus_testing ORDER BY id_kasus_testing DESC LIMIT 1";
|
||||
|
||||
$result_check = $koneksi->query($sql_check);
|
||||
$result_id_terakhir = $koneksi->query($sql_id_terakhir);
|
||||
|
||||
$id_terakhir = 0;
|
||||
|
||||
if ($result_id_terakhir->num_rows > 0) {
|
||||
$id = 0;
|
||||
while ($row = $result_id_terakhir->fetch_assoc()) {
|
||||
$id = $row['id_kasus_testing'];
|
||||
}
|
||||
$id_terakhir = $id + 1;
|
||||
} else {
|
||||
$id_terakhir = 1;
|
||||
}
|
||||
|
||||
if ($tkp == "" || $jumlah_kejahatan == "" || $jarak_tkp_polres == "" || $status == "") {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal! Harap Isi Bagian Yang Belum Terisi',
|
||||
'success' => false
|
||||
));
|
||||
} else if ($result_check->num_rows > 0) {
|
||||
echo json_encode(array(
|
||||
'message' => 'TKP Sudah Ada!',
|
||||
'success' => false,
|
||||
));
|
||||
} else {
|
||||
$sql = "INSERT INTO kasus_testing SET
|
||||
id_kasus_testing = '$id_terakhir',
|
||||
id_user = '$id_user',
|
||||
tkp = '$tkp',
|
||||
jumlah_kejahatan = '$jumlah_kejahatan',
|
||||
jarak_tkp_polres = '$jarak_tkp_polres',
|
||||
status = '$status'
|
||||
";
|
||||
|
||||
$result = $koneksi->query($sql);
|
||||
|
||||
if ($result) {
|
||||
echo json_encode(array(
|
||||
'message' => 'Kasus Testing Berhasil Diinputkan',
|
||||
'success' => true,
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal Input Kasus Testing',
|
||||
'success' => false
|
||||
));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
|
||||
include 'koneksi.php';
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
$id_user = $_POST['id_user'];
|
||||
$tkp = $_POST['tkp'];
|
||||
$jumlah_kejahatan = $_POST['jumlah_kejahatan'];
|
||||
$jarak_tkp_polres = $_POST['jarak_tkp_polres'];
|
||||
$status = $_POST['status'];
|
||||
|
||||
$sql_check = "SELECT * FROM kasus_training WHERE tkp = '$tkp'";
|
||||
$sql_id_terakhir = "SELECT * FROM kasus_training ORDER BY id_kasus_training DESC LIMIT 1";
|
||||
|
||||
$result_check = $koneksi->query($sql_check);
|
||||
$result_id_terakhir = $koneksi->query($sql_id_terakhir);
|
||||
|
||||
$id_terakhir = 0;
|
||||
|
||||
if ($result_id_terakhir->num_rows > 0) {
|
||||
$id = 0;
|
||||
while ($row = $result_id_terakhir->fetch_assoc()) {
|
||||
$id = $row['id_kasus_training'];
|
||||
}
|
||||
$id_terakhir = $id + 1;
|
||||
} else {
|
||||
$id_terakhir = 1;
|
||||
}
|
||||
|
||||
if ($tkp == "" || $jumlah_kejahatan == "" || $jarak_tkp_polres == "" || $status == "") {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal! Harap Isi Bagian Yang Belum Terisi',
|
||||
'success' => false
|
||||
));
|
||||
} else if ($result_check->num_rows > 0) {
|
||||
echo json_encode(array(
|
||||
'message' => 'TKP Sudah Ada!',
|
||||
'success' => false,
|
||||
));
|
||||
} else {
|
||||
$sql = "INSERT INTO kasus_training SET
|
||||
id_kasus_training = '$id_terakhir',
|
||||
id_user = '$id_user',
|
||||
tkp = '$tkp',
|
||||
jumlah_kejahatan = '$jumlah_kejahatan',
|
||||
jarak_tkp_polres = '$jarak_tkp_polres',
|
||||
status = '$status'
|
||||
";
|
||||
|
||||
$result = $koneksi->query($sql);
|
||||
|
||||
if ($result) {
|
||||
echo json_encode(array(
|
||||
'message' => 'Kasus Training Berhasil Diinputkan',
|
||||
'success' => true,
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal Input Kasus Training',
|
||||
'success' => false
|
||||
));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
$server = "localhost";
|
||||
$username = "root";
|
||||
$password = "";
|
||||
$db = "patrolin";
|
||||
$koneksi = mysqli_connect($server, $username, $password,$db);
|
||||
|
||||
if (mysqli_connect_errno()) {
|
||||
echo "koneksi gagal : ".mysqli_connect_error();
|
||||
}
|
||||
?>
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
include 'koneksi.php';
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
$username = $_POST['username'];
|
||||
$password = md5($_POST['password']);
|
||||
|
||||
$sql = "SELECT * FROM user WHERE
|
||||
username = '$username' AND password = '$password'
|
||||
";
|
||||
|
||||
$result = $koneksi->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
$user = array();
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
$user[] = $row;
|
||||
}
|
||||
echo json_encode(array(
|
||||
'message' => 'Berhasil Login',
|
||||
'success' => true,
|
||||
'data' => $user[0]
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal Login',
|
||||
'success' => false
|
||||
));
|
||||
}
|
|
@ -0,0 +1,153 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost:3306
|
||||
-- Waktu pembuatan: 14 Bulan Mei 2024 pada 18.14
|
||||
-- Versi server: 10.5.20-MariaDB
|
||||
-- Versi PHP: 7.3.33
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `id22129459_patrolin`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `kasus_testing`
|
||||
--
|
||||
|
||||
CREATE TABLE `kasus_testing` (
|
||||
`id_kasus_testing` int(11) NOT NULL,
|
||||
`tkp` varchar(100) NOT NULL,
|
||||
`jumlah_kejahatan` int(11) NOT NULL,
|
||||
`jarak_tkp_polres` varchar(10) NOT NULL,
|
||||
`status` varchar(10) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `kasus_testing`
|
||||
--
|
||||
|
||||
INSERT INTO `kasus_testing` (`id_kasus_testing`, `tkp`, `jumlah_kejahatan`, `jarak_tkp_polres`, `status`) VALUES
|
||||
(1, 'jl pb sudirman', 4, '2.3', 'Rendah');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `kasus_training`
|
||||
--
|
||||
|
||||
CREATE TABLE `kasus_training` (
|
||||
`id_kasus_training` int(11) NOT NULL,
|
||||
`tkp` varchar(100) NOT NULL,
|
||||
`jumlah_kejahatan` varchar(4) NOT NULL,
|
||||
`jarak_tkp_polres` varchar(10) NOT NULL,
|
||||
`status` varchar(10) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `kasus_training`
|
||||
--
|
||||
|
||||
INSERT INTO `kasus_training` (`id_kasus_training`, `tkp`, `jumlah_kejahatan`, `jarak_tkp_polres`, `status`) VALUES
|
||||
(1, 'prum tegalbesar', '1', '3.2', 'Rendah'),
|
||||
(2, 'jl bangka', '1', '3.7', 'Rendah'),
|
||||
(3, 'jenggawah', '5', '5.1', 'Sedang'),
|
||||
(4, 'jl. Mojopahit', '1', '1.6', 'Rendah'),
|
||||
(5, 'balung', '6', '0.7', 'Sedang'),
|
||||
(6, 'sukowono', '3', '0.8', 'Rendah'),
|
||||
(7, 'jl sunangiri', '2', '2.6', 'Rendah'),
|
||||
(8, 'jetos', '1', '4', 'Rendah'),
|
||||
(9, 'jl semeru', '3', '3', 'Rendah'),
|
||||
(10, 'jl dr soetomo', '1', '1.8', 'Rendah'),
|
||||
(11, 'ajung', '4', '2.8', 'Rendah'),
|
||||
(12, 'umbulsari', '1', '0.4', 'Rendah'),
|
||||
(13, 'jl halmahera', '3', '3.7', 'Rendah'),
|
||||
(14, 'tempurejo', '1', '18.6', 'Rendah'),
|
||||
(15, 'arjasa', '1', '1.8', 'Rendah'),
|
||||
(16, 'jl letj sutoyo', '2', '3.2', 'Rendah'),
|
||||
(17, 'sumberbaru', '1', '0.2', 'Rendah'),
|
||||
(18, 'jl brawijaya', '1', '2.2', 'Rendah'),
|
||||
(19, 'jl wijaya kusuma', '1', '2.2', 'Rendah'),
|
||||
(20, 'prum muktisari', '1', '4.5', 'Rendah'),
|
||||
(21, 'jl udang windu', '1', '1.6', 'Rendah'),
|
||||
(22, 'kalisat', '2', '0.2', 'Rendah'),
|
||||
(23, 'jl basuki rahmat', '1', '7.6', 'Rendah'),
|
||||
(24, 'jl jawa', '4', '3.5', 'Rendah'),
|
||||
(25, 'jl manyar', '1', '4.8', 'Rendah'),
|
||||
(26, 'jl tidar', '2', '5.8', 'Rendah'),
|
||||
(27, 'ambulu', '2', '0.4', 'Rendah'),
|
||||
(28, 'roxy', '1', '1.6', 'Rendah'),
|
||||
(29, 'jl sultan agung', '1', '2.1', 'Rendah'),
|
||||
(30, 'panti', '1', '7.8', 'Rendah');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur dari tabel `user`
|
||||
--
|
||||
|
||||
CREATE TABLE `user` (
|
||||
`id_user` int(11) NOT NULL,
|
||||
`name` varchar(60) NOT NULL,
|
||||
`username` varchar(60) NOT NULL,
|
||||
`password` varchar(60) NOT NULL,
|
||||
`no_telp` varchar(13) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data untuk tabel `user`
|
||||
--
|
||||
|
||||
INSERT INTO `user` (`id_user`, `name`, `username`, `password`, `no_telp`) VALUES
|
||||
(1, 'Jingga Sabira Xeiru', 'jingga', '1f08ce2f4af61ccee8fe9b52cd8428df', '0897625538821'),
|
||||
(2, 'Joana Geru Neisha', 'joana', '202cb962ac59075b964b07152d234b70', '088765223000'),
|
||||
(3, 'Juta Veira', 'juta', '202cb962ac59075b964b07152d234b70', '081726378923');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `kasus_testing`
|
||||
--
|
||||
ALTER TABLE `kasus_testing`
|
||||
ADD PRIMARY KEY (`id_kasus_testing`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `kasus_training`
|
||||
--
|
||||
ALTER TABLE `kasus_training`
|
||||
ADD PRIMARY KEY (`id_kasus_training`);
|
||||
|
||||
--
|
||||
-- Indeks untuk tabel `user`
|
||||
--
|
||||
ALTER TABLE `user`
|
||||
ADD PRIMARY KEY (`id_user`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel yang dibuang
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT untuk tabel `user`
|
||||
--
|
||||
ALTER TABLE `user`
|
||||
MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
include 'koneksi.php';
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
$username = $_POST['username'];
|
||||
$name = $_POST['name'];
|
||||
$password = md5($_POST['password']);
|
||||
$noTelp = $_POST['no_telp'];
|
||||
$role = 'user';
|
||||
|
||||
$sql_check = "SELECT * FROM user WHERE username = '$username'";
|
||||
|
||||
$result_check = $koneksi->query($sql_check);
|
||||
|
||||
if ($username == "" || $name == "" || $password == "") {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal! Field tidak diisi',
|
||||
'success' => false
|
||||
));
|
||||
} else if ($result_check->num_rows > 0) {
|
||||
echo json_encode(array(
|
||||
'message' => 'Username sudah terdaftar!',
|
||||
'success' => false,
|
||||
));
|
||||
} else {
|
||||
$sql = "INSERT INTO user SET
|
||||
username = '$username',
|
||||
name = '$name',
|
||||
password = '$password',
|
||||
no_telp = '$noTelp'
|
||||
";
|
||||
|
||||
$result = $koneksi->query($sql);
|
||||
|
||||
if ($result) {
|
||||
echo json_encode(array(
|
||||
'message' => 'Register Berhasil',
|
||||
'success' => true,
|
||||
));
|
||||
} else {
|
||||
echo json_encode(array(
|
||||
'message' => 'Gagal Register',
|
||||
'success' => false
|
||||
));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
require("koneksi.php");
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
// $perintah = "SELECT * FROM kasus_testing WHERE status = 'Tinggi'";
|
||||
$perintah = "SELECT * FROM kasus_testing ORDER BY id_kasus_testing DESC";
|
||||
$eksekusi = mysqli_query($koneksi, $perintah);
|
||||
$cek = mysqli_affected_rows($koneksi);
|
||||
|
||||
if ($cek > 0) {
|
||||
$response["code"] = 200;
|
||||
$response["status"] = "Kasus Testing Tersedia";
|
||||
$response["data"] = array();
|
||||
|
||||
while ($ambil = mysqli_fetch_object($eksekusi)) {
|
||||
$F["id_kasus_testing"] = $ambil->id_kasus_testing;
|
||||
$F["tkp"] = $ambil->tkp;
|
||||
$F["jumlah_kejahatan"] = $ambil->jumlah_kejahatan;
|
||||
$F["jarak_tkp_polres"] = $ambil->jarak_tkp_polres;
|
||||
$F["status"] = $ambil->status;
|
||||
|
||||
array_push($response["data"], $F);
|
||||
}
|
||||
} else {
|
||||
$response["code"] = 400;
|
||||
$response["status"] = "Kasus Testing Tidak Tersedia";
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
mysqli_close($koneksi);
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
require("koneksi.php");
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
// $perintah = "SELECT * FROM kasus_testing ORDER BY id_kasus_testing ASC";
|
||||
$perintah = "SELECT A.id_kasus_testing, A.tkp, A.jumlah_kejahatan, A.jarak_tkp_polres, A.status, B.name FROM kasus_testing A INNER JOIN user B ON A.id_user = B.id_user ORDER BY A.id_kasus_testing";
|
||||
$eksekusi = mysqli_query($koneksi, $perintah);
|
||||
$cek = mysqli_affected_rows($koneksi);
|
||||
|
||||
if ($cek > 0) {
|
||||
$response["code"] = 200;
|
||||
$response["status"] = "Kasus Testing Tersedia";
|
||||
$response["data"] = array();
|
||||
|
||||
while ($ambil = mysqli_fetch_object($eksekusi)) {
|
||||
$F["id_kasus_testing"] = $ambil->id_kasus_testing;
|
||||
$F["tkp"] = $ambil->tkp;
|
||||
$F["jumlah_kejahatan"] = $ambil->jumlah_kejahatan;
|
||||
$F["jarak_tkp_polres"] = $ambil->jarak_tkp_polres;
|
||||
$F["status"] = $ambil->status;
|
||||
$F["name"] = $ambil->name;
|
||||
|
||||
array_push($response["data"], $F);
|
||||
}
|
||||
} else {
|
||||
$response["code"] = 400;
|
||||
$response["status"] = "Kasus Testing Tidak Tersedia";
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
mysqli_close($koneksi);
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
require("koneksi.php");
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
// $perintah = "SELECT * FROM kasus_training ORDER BY id_kasus_training ASC";
|
||||
$perintah = "SELECT A.id_kasus_training, A.tkp, A.jumlah_kejahatan, A.jarak_tkp_polres, A.status, B.name FROM kasus_training A INNER JOIN user B ON A.id_user = B.id_user ORDER BY A.id_kasus_training";
|
||||
$eksekusi = mysqli_query($koneksi, $perintah);
|
||||
$cek = mysqli_affected_rows($koneksi);
|
||||
|
||||
if ($cek > 0) {
|
||||
$response["code"] = 200;
|
||||
$response["status"] = "Kasus Training Tersedia";
|
||||
$response["data"] = array();
|
||||
|
||||
while ($ambil = mysqli_fetch_object($eksekusi)) {
|
||||
$F["id_kasus_training"] = $ambil->id_kasus_training;
|
||||
$F["tkp"] = $ambil->tkp;
|
||||
$F["jumlah_kejahatan"] = $ambil->jumlah_kejahatan;
|
||||
$F["jarak_tkp_polres"] = $ambil->jarak_tkp_polres;
|
||||
$F["status"] = $ambil->status;
|
||||
$F["name"] = $ambil->name;
|
||||
|
||||
array_push($response["data"], $F);
|
||||
}
|
||||
} else {
|
||||
$response["code"] = 400;
|
||||
$response["status"] = "Kasus Training Tidak Tersedia";
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
mysqli_close($koneksi);
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
require("koneksi.php");
|
||||
|
||||
header('Content-Type:application/json;charset=UTF-8');
|
||||
|
||||
$perintah = "SELECT A.id_kasus_training, A.tkp, A.jumlah_kejahatan, A.jarak_tkp_polres, A.status, B.name FROM kasus_training A INNER JOIN user B ON A.id_user = B.id_user ORDER BY A.id_kasus_training";
|
||||
$eksekusi = mysqli_query($koneksi, $perintah);
|
||||
$cek = mysqli_affected_rows($koneksi);
|
||||
|
||||
if ($cek > 0) {
|
||||
$response["code"] = 200;
|
||||
$response["status"] = "Kasus Training Tersedia";
|
||||
$response["data"] = array();
|
||||
|
||||
while ($ambil = mysqli_fetch_object($eksekusi)) {
|
||||
$F["id_kasus_training"] = $ambil->id_kasus_training;
|
||||
$F["tkp"] = $ambil->tkp;
|
||||
$F["jumlah_kejahatan"] = $ambil->jumlah_kejahatan;
|
||||
$F["jarak_tkp_polres"] = $ambil->jarak_tkp_polres;
|
||||
$F["status"] = $ambil->status;
|
||||
$F["name"] = $ambil->name;
|
||||
|
||||
array_push($response["data"], $F);
|
||||
}
|
||||
} else {
|
||||
$response["code"] = 400;
|
||||
$response["status"] = "Kasus Training Tidak Tersedia";
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
mysqli_close($koneksi);
|
|
@ -0,0 +1,43 @@
|
|||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
**/ios/Flutter/.last_build_id
|
||||
.dart_tool/
|
||||
.flutter-plugins
|
||||
.flutter-plugins-dependencies
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
|
||||
# Symbolication related
|
||||
app.*.symbols
|
||||
|
||||
# Obfuscation related
|
||||
app.*.map.json
|
||||
|
||||
# Android Studio will place build artifacts here
|
||||
/android/app/debug
|
||||
/android/app/profile
|
||||
/android/app/release
|
|
@ -0,0 +1,45 @@
|
|||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a"
|
||||
channel: "stable"
|
||||
|
||||
project_type: app
|
||||
|
||||
# Tracks metadata for the flutter migrate command
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: android
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: ios
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: linux
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: macos
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: web
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
- platform: windows
|
||||
create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a
|
||||
|
||||
# User provided section
|
||||
|
||||
# List of Local paths (relative to this file) that should be
|
||||
# ignored by the migrate tool.
|
||||
#
|
||||
# Files that are not part of the templates will be ignored by default.
|
||||
unmanaged_files:
|
||||
- 'lib/main.dart'
|
||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
|
@ -0,0 +1,16 @@
|
|||
# skripsi
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
|
@ -0,0 +1,28 @@
|
|||
# This file configures the analyzer, which statically analyzes Dart code to
|
||||
# check for errors, warnings, and lints.
|
||||
#
|
||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||
# invoked from the command line by running `flutter analyze`.
|
||||
|
||||
# The following line activates a set of recommended lints for Flutter apps,
|
||||
# packages, and plugins designed to encourage good coding practices.
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
linter:
|
||||
# The lint rules applied to this project can be customized in the
|
||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||
# included above or to enable additional rules. A list of all available lints
|
||||
# and their documentation is published at https://dart.dev/lints.
|
||||
#
|
||||
# Instead of disabling a lint rule for the entire project in the
|
||||
# section below, it can also be suppressed for a single line of code
|
||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||
# producing the lint.
|
||||
rules:
|
||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
|
@ -0,0 +1,13 @@
|
|||
gradle-wrapper.jar
|
||||
/.gradle
|
||||
/captures/
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||
key.properties
|
||||
**/*.keystore
|
||||
**/*.jks
|
|
@ -0,0 +1,67 @@
|
|||
plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.example.skripsi"
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.example.skripsi"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
||||
|
||||
dependencies {}
|
|
@ -0,0 +1,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
|
@ -0,0 +1,34 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<application
|
||||
android:label="skripsi"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||
the Android process has started. This theme is visible to the user
|
||||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
</manifest>
|
|
@ -0,0 +1,6 @@
|
|||
package com.example.skripsi
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity: FlutterActivity() {
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="?android:colorBackground" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 442 B |
After Width: | Height: | Size: 721 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.4 KiB |
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -0,0 +1,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
|
@ -0,0 +1,30 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = '1.7.10'
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
org.gradle.jvmargs=-Xmx4G
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
|
@ -0,0 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
|
|
@ -0,0 +1,29 @@
|
|||
pluginManagement {
|
||||
def flutterSdkPath = {
|
||||
def properties = new Properties()
|
||||
file("local.properties").withInputStream { properties.load(it) }
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
return flutterSdkPath
|
||||
}
|
||||
settings.ext.flutterSdkPath = flutterSdkPath()
|
||||
|
||||
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "7.3.0" apply false
|
||||
}
|
||||
|
||||
include ":app"
|
After Width: | Height: | Size: 44 KiB |
|
@ -0,0 +1,34 @@
|
|||
**/dgph
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.moved-aside
|
||||
*.pbxuser
|
||||
*.perspectivev3
|
||||
**/*sync/
|
||||
.sconsign.dblite
|
||||
.tags*
|
||||
**/.vagrant/
|
||||
**/DerivedData/
|
||||
Icon?
|
||||
**/Pods/
|
||||
**/.symlinks/
|
||||
profile
|
||||
xcuserdata
|
||||
**/.generated/
|
||||
Flutter/App.framework
|
||||
Flutter/Flutter.framework
|
||||
Flutter/Flutter.podspec
|
||||
Flutter/Generated.xcconfig
|
||||
Flutter/ephemeral/
|
||||
Flutter/app.flx
|
||||
Flutter/app.zip
|
||||
Flutter/flutter_assets/
|
||||
Flutter/flutter_export_environment.sh
|
||||
ServiceDefinitions.json
|
||||
Runner/GeneratedPluginRegistrant.*
|
||||
|
||||
# Exceptions to above rules.
|
||||
!default.mode1v3
|
||||
!default.mode2v3
|
||||
!default.pbxuser
|
||||
!default.perspectivev3
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>11.0</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1 @@
|
|||
#include "Generated.xcconfig"
|
|
@ -0,0 +1 @@
|
|||
#include "Generated.xcconfig"
|
|
@ -0,0 +1,614 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 54;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
|
||||
remoteInfo = Runner;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
||||
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||
);
|
||||
name = Flutter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
331C807B294A618700263BE5 /* RunnerTests.swift */,
|
||||
);
|
||||
path = RunnerTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146E51CF9000F007C117D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
331C8082294A63A400263BE5 /* RunnerTests */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146EF1CF9000F007C117D /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146EE1CF9000F007C117D /* Runner.app */,
|
||||
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F01CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||
97C147021CF9000F007C117D /* Info.plist */,
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
|
||||
);
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
331C8080294A63A400263BE5 /* RunnerTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||
buildPhases = (
|
||||
331C807D294A63A400263BE5 /* Sources */,
|
||||
331C807E294A63A400263BE5 /* Frameworks */,
|
||||
331C807F294A63A400263BE5 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
331C8086294A63A400263BE5 /* PBXTargetDependency */,
|
||||
);
|
||||
name = RunnerTests;
|
||||
productName = RunnerTests;
|
||||
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
97C146ED1CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Runner;
|
||||
productName = Runner;
|
||||
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
97C146E61CF9000F007C117D /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = YES;
|
||||
LastUpgradeCheck = 1430;
|
||||
ORGANIZATIONNAME = "";
|
||||
TargetAttributes = {
|
||||
331C8080294A63A400263BE5 = {
|
||||
CreatedOnToolsVersion = 14.0;
|
||||
TestTargetID = 97C146ED1CF9000F007C117D;
|
||||
};
|
||||
97C146ED1CF9000F007C117D = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
LastSwiftMigration = 1100;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
||||
compatibilityVersion = "Xcode 9.3";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 97C146E51CF9000F007C117D;
|
||||
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
97C146ED1CF9000F007C117D /* Runner */,
|
||||
331C8080294A63A400263BE5 /* RunnerTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
331C807F294A63A400263BE5 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EC1CF9000F007C117D /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
331C807D294A63A400263BE5 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
97C146EA1CF9000F007C117D /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 97C146ED1CF9000F007C117D /* Runner */;
|
||||
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C146FB1CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C147001CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
331C8088294A63A400263BE5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
331C8089294A63A400263BE5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
331C808A294A63A400263BE5 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi.RunnerTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
97C147031CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147041CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTED_PLATFORMS = iphoneos;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
97C147061CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 5.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147071CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.skripsi;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
331C8088294A63A400263BE5 /* Debug */,
|
||||
331C8089294A63A400263BE5 /* Release */,
|
||||
331C808A294A63A400263BE5 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147031CF9000F007C117D /* Debug */,
|
||||
97C147041CF9000F007C117D /* Release */,
|
||||
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147061CF9000F007C117D /* Debug */,
|
||||
97C147071CF9000F007C117D /* Release */,
|
||||
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 97C146E61CF9000F007C117D /* Project object */;
|
||||
}
|
7
Mobile/patrolin/skripsi/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PreviewsEnabled</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,98 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1430"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO"
|
||||
parallelizable = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "331C8080294A63A400263BE5"
|
||||
BuildableName = "RunnerTests.xctest"
|
||||
BlueprintName = "RunnerTests"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Profile"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>PreviewsEnabled</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,13 @@
|
|||
import UIKit
|
||||
import Flutter
|
||||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,122 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 704 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 862 B |
After Width: | Height: | Size: 862 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 762 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
23
Mobile/patrolin/skripsi/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "LaunchImage@3x.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
BIN
Mobile/patrolin/skripsi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
BIN
Mobile/patrolin/skripsi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
BIN
Mobile/patrolin/skripsi/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
vendored
Normal file
After Width: | Height: | Size: 68 B |
5
Mobile/patrolin/skripsi/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Launch Screen Assets
|
||||
|
||||
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
|
||||
|
||||
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="LaunchImage" width="168" height="185"/>
|
||||
</resources>
|
||||
</document>
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Flutter View Controller-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Skripsi</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>skripsi</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
<string>Main</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1 @@
|
|||
#import "GeneratedPluginRegistrant.h"
|
|
@ -0,0 +1,12 @@
|
|||
import Flutter
|
||||
import UIKit
|
||||
import XCTest
|
||||
|
||||
class RunnerTests: XCTestCase {
|
||||
|
||||
func testExample() {
|
||||
// If you add code to the Runner application, consider adding tests here.
|
||||
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
class Api {
|
||||
// static const baseUrl = 'https://skripsinaja.000webhostapp.com/';
|
||||
// static const baseUrl = 'http://192.168.200.3/patrolin/';
|
||||
// static const baseUrl = 'http://192.168.1.4/patrolin/';
|
||||
static const baseUrl = 'http://192.168.1.4/testing/';
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class AppRequest {
|
||||
static Future<Map?> gets(String url) async {
|
||||
try {
|
||||
var response = await http.get(Uri.parse(url));
|
||||
Map responseBody = jsonDecode(response.body);
|
||||
return responseBody;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static Future<Map?> post(String url, Object? body) async {
|
||||
try {
|
||||
var response = await http.post(Uri.parse(url), body: body);
|
||||
Map responseBody = jsonDecode(response.body);
|
||||
return responseBody;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import '../controller/cUser.dart';
|
||||
import '../model/user.dart';
|
||||
|
||||
class Session {
|
||||
static Future<bool> saveUser(User user) async {
|
||||
final pref = await SharedPreferences.getInstance();
|
||||
Map<String, dynamic> mapUser = user.toJson();
|
||||
String stringUser = jsonEncode(mapUser);
|
||||
bool succes = await pref.setString('user', stringUser);
|
||||
if (succes) {
|
||||
final cUser = Get.put(CUser());
|
||||
cUser.setData(user);
|
||||
}
|
||||
return succes;
|
||||
}
|
||||
|
||||
static Future<User> getUser() async {
|
||||
User user = User(); //Nilai default
|
||||
final pref = await SharedPreferences.getInstance();
|
||||
String? stringUser = pref.getString('user');
|
||||
if (stringUser != null) {
|
||||
Map<String, dynamic> mapUser = jsonDecode(stringUser);
|
||||
user = User.fromJson(mapUser);
|
||||
}
|
||||
final cUser = Get.put(CUser());
|
||||
cUser.setData(user);
|
||||
return user;
|
||||
}
|
||||
|
||||
static Future<bool> clearUser() async {
|
||||
final pref = await SharedPreferences.getInstance();
|
||||
bool success = await pref.remove('user');
|
||||
final cUser = Get.put(CUser());
|
||||
cUser.setData(User());
|
||||
return success;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
Color primaryColor = const Color(0xff1B5BFD);
|
||||
Color secondaryColor = const Color(0xffE6E6E6);
|
||||
Color textSideColor = const Color(0xff677278);
|
||||
Color rendahColor = const Color(0xff198A16);
|
||||
Color sedangColor = const Color(0xffFFE500);
|
||||
Color tinggiColor = const Color(0xffEB0606);
|
||||
Color whiteColor = const Color(0xffFFFFFF);
|
||||
Color blackColor = const Color(0xff000000);
|
||||
Color dialogColor = const Color(0xff5C84EB);
|
||||
|
||||
TextStyle robotoBesarPutih =
|
||||
GoogleFonts.roboto(fontSize: 20.sp, color: whiteColor);
|
||||
|
||||
TextStyle robotoBesarHitam =
|
||||
GoogleFonts.roboto(fontSize: 20.sp, color: blackColor);
|
||||
|
||||
TextStyle robotoSedangPutih =
|
||||
GoogleFonts.roboto(fontSize: 16, color: whiteColor);
|
||||
|
||||
TextStyle robotoSedangHitam =
|
||||
GoogleFonts.roboto(fontSize: 16, color: blackColor);
|
||||
|
||||
TextStyle robotoKecilPutih =
|
||||
GoogleFonts.roboto(fontSize: 14, color: whiteColor);
|
||||
|
||||
TextStyle robotoKecilHitam =
|
||||
GoogleFonts.roboto(fontSize: 14, color: blackColor);
|
|
@ -0,0 +1,33 @@
|
|||
// ignore_for_file: invalid_use_of_protected_member, file_names
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/model/kasus_testing.dart';
|
||||
import 'package:skripsi/source/source_kasus_testing.dart';
|
||||
|
||||
class CKasusTesting extends GetxController {
|
||||
final _loading = false.obs;
|
||||
bool get loading => _loading.value;
|
||||
|
||||
final _listKasusTesting = <KasusTesting>[].obs;
|
||||
List<KasusTesting> get listKasusTesting => _listKasusTesting.value;
|
||||
|
||||
final _listKasusTestingTinggi = <KasusTesting>[].obs;
|
||||
List<KasusTesting> get listKasusTestingTinggi => _listKasusTestingTinggi;
|
||||
|
||||
getListKasusTesting() async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_listKasusTesting.value = await SourceKasusTesting.getKasusTesting();
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
|
||||
getListKasusTestingTinggi() async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_listKasusTestingTinggi.value =
|
||||
await SourceKasusTesting.getKasusTestingTinggi();
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
// ignore_for_file: invalid_use_of_protected_member, file_names
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/model/kasus_training.dart';
|
||||
import 'package:skripsi/source/source_kasus_training.dart';
|
||||
|
||||
class CKasusTraining extends GetxController {
|
||||
final _loading = false.obs;
|
||||
bool get loading => _loading.value;
|
||||
|
||||
final _listKasusTraining = <KasusTraining>[].obs;
|
||||
List<KasusTraining> get listKasusTraining => _listKasusTraining.value;
|
||||
|
||||
|
||||
|
||||
getListKasusTraining() async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_listKasusTraining.value = await SourceKasusTraining.getKasusTraining();
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
// ignore_for_file: file_names
|
||||
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../source/source_user.dart';
|
||||
|
||||
class CLogin extends GetxController {
|
||||
final _loading = false.obs;
|
||||
bool get loading => _loading.value;
|
||||
final _successLogin = false.obs;
|
||||
bool get successLogin => _successLogin.value;
|
||||
final _successRegister = false.obs;
|
||||
bool get successRegister => _successRegister.value;
|
||||
|
||||
login(String username, String password) async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_successLogin.value = await SourceUser.login(username, password);
|
||||
update();
|
||||
_loading.value = false;
|
||||
update();
|
||||
}
|
||||
|
||||
register(String username, String name, String password, String noTelp) async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_successRegister.value =
|
||||
await SourceUser.register(username, name, password, noTelp);
|
||||
update();
|
||||
_loading.value = false;
|
||||
update();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
// ignore_for_file: file_names
|
||||
|
||||
import 'dart:math';
|
||||
|
||||
class PerhitunganKNN {
|
||||
List<List<double>> features;
|
||||
List<String> labels;
|
||||
|
||||
PerhitunganKNN(this.features, this.labels);
|
||||
|
||||
Map<String, dynamic> classify(List<double> newPoint, int k) {
|
||||
List<Map<String, dynamic>> distances = [];
|
||||
|
||||
// Hitung jarak dari newPoint ke setiap titik dalam features
|
||||
for (int i = 0; i < features.length; i++) {
|
||||
double dist = euclideanDistance(features[i], newPoint);
|
||||
distances.add({'index': i, 'distance': dist});
|
||||
}
|
||||
|
||||
// Urutkan berdasarkan jarak
|
||||
distances.sort((a, b) => a['distance'].compareTo(b['distance']));
|
||||
|
||||
// Pilih K tetangga terdekat
|
||||
Map<String, int> votes = {};
|
||||
List<String> nearestNeighbors = [];
|
||||
for (int i = 0; i < k; i++) {
|
||||
String label = labels[distances[i]['index']];
|
||||
nearestNeighbors.add(label);
|
||||
votes[label] = votes.containsKey(label) ? votes[label]! + 1 : 1;
|
||||
}
|
||||
|
||||
// Tentukan mayoritas kelas dari K tetangga terdekat
|
||||
String majorityLabel =
|
||||
votes.entries.reduce((a, b) => a.value > b.value ? a : b).key;
|
||||
|
||||
return {
|
||||
'result': majorityLabel,
|
||||
'nearestNeighbors': nearestNeighbors,
|
||||
'distances': distances
|
||||
};
|
||||
}
|
||||
|
||||
double euclideanDistance(List<double> p1, List<double> p2) {
|
||||
double sum = 0.0;
|
||||
for (int i = 0; i < p1.length; i++) {
|
||||
sum += pow((p1[i] - p2[i]), 2);
|
||||
}
|
||||
return sqrt(sum);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
// ignore_for_file: file_names, invalid_use_of_protected_member
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/model/kasus_training.dart';
|
||||
import 'package:skripsi/source/source_kasus_testing.dart';
|
||||
import 'package:skripsi/source/source_kasus_training.dart';
|
||||
|
||||
class CTambahDataTesting extends GetxController {
|
||||
final _loading = false.obs;
|
||||
bool get loading => _loading.value;
|
||||
|
||||
final _listTambahDataTesting = <KasusTraining>[].obs;
|
||||
List<KasusTraining> get listTambahDataTesting => _listTambahDataTesting.value;
|
||||
|
||||
final _success = false.obs;
|
||||
bool get success => _success.value;
|
||||
|
||||
getDataTrainingForTesting() async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_listTambahDataTesting.value = await SourceKasusTraining.getKasusTraining();
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
|
||||
postDataTesting(String idUser, String tkp, String jumlahKejahatan,
|
||||
String jarakTkpPolres, String status) async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_success.value = await SourceKasusTesting.postDataTesting(
|
||||
idUser, tkp, jumlahKejahatan, jarakTkpPolres, status);
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
// ignore_for_file: file_names
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/source/source_kasus_training.dart';
|
||||
|
||||
class CTambahDataTraining extends GetxController {
|
||||
final _loading = false.obs;
|
||||
bool get loading => _loading.value;
|
||||
|
||||
final _success = false.obs;
|
||||
bool get success => _success.value;
|
||||
|
||||
postDataTraining(String idUser, String tkp, String jumlahKejahatan,
|
||||
String jarakTkpPolres, String status) async {
|
||||
_loading.value = true;
|
||||
update();
|
||||
_success.value = await SourceKasusTraining.postDataTraining(
|
||||
idUser, tkp, jumlahKejahatan, jarakTkpPolres, status);
|
||||
update();
|
||||
_loading.value = false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
// ignore_for_file: file_names
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/model/user.dart';
|
||||
|
||||
|
||||
class CUser extends GetxController {
|
||||
final _data = User().obs;
|
||||
User get data => _data.value;
|
||||
setData(n) => _data.value = n;
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/view/splashscreen.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenUtilInit(
|
||||
designSize: const Size(360, 800),
|
||||
builder: (_, child) {
|
||||
return GetMaterialApp(
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: primaryColor),
|
||||
useMaterial3: true,
|
||||
),
|
||||
title: 'Skripsi',
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: const SplashScreen(),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
class KasusTesting {
|
||||
String? idKasusTesting;
|
||||
String? idUser;
|
||||
String? tkp;
|
||||
String? jumlahKejahatan;
|
||||
String? jarakTkpPolres;
|
||||
String? status;
|
||||
String? name;
|
||||
|
||||
KasusTesting({
|
||||
this.idKasusTesting,
|
||||
this.idUser,
|
||||
this.tkp,
|
||||
this.jumlahKejahatan,
|
||||
this.jarakTkpPolres,
|
||||
this.status,
|
||||
this.name,
|
||||
});
|
||||
|
||||
factory KasusTesting.fromJson(Map<String, dynamic> json) => KasusTesting(
|
||||
idKasusTesting: json["id_kasus_testing"],
|
||||
idUser: json["id_user"],
|
||||
tkp: json["tkp"],
|
||||
jumlahKejahatan: json["jumlah_kejahatan"],
|
||||
jarakTkpPolres: json["jarak_tkp_polres"],
|
||||
status: json["status"],
|
||||
name: json["name"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"id_kasus_testing": idKasusTesting,
|
||||
"id_user": idUser,
|
||||
"tkp": tkp,
|
||||
"jumlah_kejahatan": jumlahKejahatan,
|
||||
"jarak_tkp_polres": jarakTkpPolres,
|
||||
"status": status,
|
||||
"name": name,
|
||||
};
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
class KasusTraining {
|
||||
String? idKasusTraining;
|
||||
String? idUser;
|
||||
String? tkp;
|
||||
String? jumlahKejahatan;
|
||||
String? jarakTkpPolres;
|
||||
String? status;
|
||||
String? name;
|
||||
|
||||
KasusTraining({
|
||||
this.idKasusTraining,
|
||||
this.idUser,
|
||||
this.tkp,
|
||||
this.jumlahKejahatan,
|
||||
this.jarakTkpPolres,
|
||||
this.status,
|
||||
this.name,
|
||||
});
|
||||
|
||||
factory KasusTraining.fromJson(Map<String, dynamic> json) => KasusTraining(
|
||||
idKasusTraining: json["id_kasus_training"],
|
||||
idUser: json["id_user"],
|
||||
tkp: json["tkp"],
|
||||
jumlahKejahatan: json["jumlah_kejahatan"],
|
||||
jarakTkpPolres: json["jarak_tkp_polres"],
|
||||
status: json["status"],
|
||||
name: json["name"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"id_kasus_training": idKasusTraining,
|
||||
"id_user": idUser,
|
||||
"tkp": tkp,
|
||||
"jumlah_kejahatan": jumlahKejahatan,
|
||||
"jarak_tkp_polres": jarakTkpPolres,
|
||||
"status": status,
|
||||
"name": name,
|
||||
};
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
class RuteP {
|
||||
int id;
|
||||
String alamat;
|
||||
String jam;
|
||||
String status;
|
||||
|
||||
RuteP({
|
||||
required this.id,
|
||||
required this.alamat,
|
||||
required this.jam,
|
||||
required this.status,
|
||||
});
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
class User {
|
||||
String? idUser;
|
||||
String? name;
|
||||
String? username;
|
||||
String? password;
|
||||
String? noTelp;
|
||||
|
||||
User({
|
||||
this.idUser,
|
||||
this.name,
|
||||
this.username,
|
||||
this.password,
|
||||
this.noTelp,
|
||||
});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => User(
|
||||
idUser: json["id_user"],
|
||||
name: json["name"],
|
||||
username: json["username"],
|
||||
password: json["password"],
|
||||
noTelp: json["no_telp"],
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"id_user": idUser,
|
||||
"name": name,
|
||||
"username": username,
|
||||
"password": password,
|
||||
"no_telp": noTelp,
|
||||
};
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
import 'package:skripsi/config/api.dart';
|
||||
import 'package:skripsi/config/app_request.dart';
|
||||
import 'package:skripsi/model/kasus_testing.dart';
|
||||
|
||||
class SourceKasusTesting {
|
||||
static Future<List<KasusTesting>> getKasusTesting() async {
|
||||
String url = '${Api.baseUrl}/tampil-data-testing.php';
|
||||
Map? responseBody = await AppRequest.gets(url);
|
||||
|
||||
if (responseBody == null) return [];
|
||||
if (responseBody.isNotEmpty) {
|
||||
List list = responseBody['data'];
|
||||
return list.map((e) => KasusTesting.fromJson(e)).toList();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
static Future<bool> postDataTesting(String idUser, String tkp,
|
||||
String jumlahKejahatan, String jarakTkpPolres, String status) async {
|
||||
String url = "${Api.baseUrl}/insert-kasus-testing.php";
|
||||
Map? responseBody = await AppRequest.post(url, {
|
||||
"id_user": idUser,
|
||||
"tkp": tkp,
|
||||
"jumlah_kejahatan": jumlahKejahatan,
|
||||
"jarak_tkp_polres": jarakTkpPolres,
|
||||
"status": status,
|
||||
});
|
||||
if (responseBody == null) return false;
|
||||
if (responseBody['success']) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static Future<List<KasusTesting>> getKasusTestingTinggi() async {
|
||||
String url = '${Api.baseUrl}/tampil-data-testing-tinggi.php';
|
||||
Map? responseBody = await AppRequest.gets(url);
|
||||
|
||||
if (responseBody == null) return [];
|
||||
if (responseBody.isNotEmpty) {
|
||||
List list = responseBody['data'];
|
||||
return list.map((e) => KasusTesting.fromJson(e)).toList();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
import 'package:skripsi/config/api.dart';
|
||||
import 'package:skripsi/config/app_request.dart';
|
||||
import 'package:skripsi/model/kasus_training.dart';
|
||||
|
||||
class SourceKasusTraining {
|
||||
static Future<List<KasusTraining>> getKasusTraining() async {
|
||||
String url = '${Api.baseUrl}/tampil-data-training.php';
|
||||
Map? responseBody = await AppRequest.gets(url);
|
||||
|
||||
if (responseBody == null) return [];
|
||||
if (responseBody.isNotEmpty) {
|
||||
List list = responseBody['data'];
|
||||
return list.map((e) => KasusTraining.fromJson(e)).toList();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
static Future<bool> postDataTraining(String idUser, String tkp,
|
||||
String jumlahKejahatan, String jarakTkpPolres, String status) async {
|
||||
String url = "${Api.baseUrl}/insert-kasus-training.php";
|
||||
Map? responseBody = await AppRequest.post(url, {
|
||||
"id_user": idUser,
|
||||
"tkp": tkp,
|
||||
"jumlah_kejahatan": jumlahKejahatan,
|
||||
"jarak_tkp_polres": jarakTkpPolres,
|
||||
"status": status,
|
||||
});
|
||||
if (responseBody == null) return false;
|
||||
if (responseBody['success']) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import '../config/app_request.dart';
|
||||
import '../config/api.dart';
|
||||
import '../config/session.dart';
|
||||
import '../model/user.dart';
|
||||
|
||||
class SourceUser {
|
||||
static Future<bool> login(String username, String password) async {
|
||||
String url = '${Api.baseUrl}/login.php';
|
||||
Map? responseBody = await AppRequest.post(
|
||||
url, {'username': username, 'password': password});
|
||||
if (responseBody == null) return false;
|
||||
if (responseBody['success'] == null) return false;
|
||||
if (responseBody['success']) {
|
||||
var mapUser = responseBody['data'];
|
||||
Session.saveUser(User.fromJson(mapUser));
|
||||
}
|
||||
return responseBody['success'];
|
||||
}
|
||||
|
||||
static Future<bool> register(
|
||||
String username, String name, String password, String noTelp) async {
|
||||
String url = '${Api.baseUrl}/register.php';
|
||||
Map? responseBody = await AppRequest.post(
|
||||
url, {'username': username, 'name': name, 'password': password,
|
||||
'no_telp': noTelp
|
||||
});
|
||||
|
||||
if (responseBody == null) return false;
|
||||
if (responseBody['success'] == null) return false;
|
||||
return responseBody['success'];
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
import 'package:d_view/d_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/controller/cKasusTesting.dart';
|
||||
import 'package:skripsi/model/kasus_testing.dart';
|
||||
import 'package:skripsi/view/detail_training_page.dart';
|
||||
import 'package:skripsi/view/tambah_data_testing.dart';
|
||||
import 'package:skripsi/widget/card_kasus_testing.dart';
|
||||
|
||||
class TestingPage extends StatefulWidget {
|
||||
const TestingPage({super.key});
|
||||
|
||||
@override
|
||||
State<TestingPage> createState() => TestingPageState();
|
||||
}
|
||||
|
||||
class TestingPageState extends State<TestingPage> {
|
||||
final cKasusTesting = Get.put(CKasusTesting());
|
||||
|
||||
refresh() {
|
||||
cKasusTesting.getListKasusTesting();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
refresh();
|
||||
cKasusTesting.listKasusTesting;
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
backgroundColor: whiteColor,
|
||||
leadingWidth: 70.w,
|
||||
centerTitle: true,
|
||||
title: Text(
|
||||
'Data Testing',
|
||||
style: robotoSedangHitam,
|
||||
),
|
||||
leading: TextButton(
|
||||
onPressed: () {},
|
||||
child: Text('', style: robotoSedangHitam.copyWith(color: whiteColor)),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const TmbhDataTesting()));
|
||||
},
|
||||
child: const Icon(Icons.add)),
|
||||
],
|
||||
),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 60.w),
|
||||
child: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: GetBuilder<CKasusTesting>(
|
||||
builder: (_) {
|
||||
if (_.loading) return DView.loadingCircle();
|
||||
if (_.listKasusTesting.isEmpty) return DView.empty('Kosong');
|
||||
return RefreshIndicator(
|
||||
onRefresh: () async => refresh(),
|
||||
child: ListView.builder(
|
||||
itemCount: _.listKasusTesting.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
KasusTesting kasusTesting = _.listKasusTesting[index];
|
||||
return CardKasusTesting(
|
||||
kasusTesting: kasusTesting,
|
||||
ontap: () {
|
||||
Get.to(DetailPage(
|
||||
tkp: kasusTesting.tkp ?? "Kosong",
|
||||
jk: kasusTesting.jumlahKejahatan ?? "Kosong",
|
||||
jtp: kasusTesting.jarakTkpPolres ?? "Kosong",
|
||||
status: kasusTesting.status ?? "Kosong",
|
||||
name: kasusTesting.name ?? "Kosong"));
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
import 'package:d_view/d_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/controller/cKasusTraining.dart';
|
||||
import 'package:skripsi/model/kasus_training.dart';
|
||||
import 'package:skripsi/view/detail_training_page.dart';
|
||||
import 'package:skripsi/view/tambah_data_training.dart';
|
||||
import 'package:skripsi/widget/card_kasus_training.dart';
|
||||
|
||||
class TrainingPage extends StatefulWidget {
|
||||
const TrainingPage({super.key});
|
||||
|
||||
@override
|
||||
State<TrainingPage> createState() => TrainingPageState();
|
||||
}
|
||||
|
||||
class TrainingPageState extends State<TrainingPage> {
|
||||
final cKasusTraining = Get.put(CKasusTraining());
|
||||
|
||||
refresh() {
|
||||
cKasusTraining.getListKasusTraining();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
refresh();
|
||||
cKasusTraining.listKasusTraining;
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
backgroundColor: whiteColor,
|
||||
leadingWidth: 70.w,
|
||||
centerTitle: true,
|
||||
title: Text(
|
||||
'Data Training',
|
||||
style: robotoSedangHitam,
|
||||
),
|
||||
leading:
|
||||
Text('', style: robotoSedangHitam.copyWith(color: whiteColor)),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const TmbhDataTraining()));
|
||||
Get.to(const TmbhDataTraining());
|
||||
},
|
||||
child: const Icon(Icons.add)),
|
||||
],
|
||||
),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 60.w),
|
||||
child: Column(
|
||||
children: [
|
||||
Expanded(child: GetBuilder<CKasusTraining>(
|
||||
builder: (_) {
|
||||
if (_.loading) return DView.loadingCircle();
|
||||
if (_.listKasusTraining.isEmpty) return DView.empty('Kosong');
|
||||
return RefreshIndicator(
|
||||
onRefresh: () async => refresh(),
|
||||
child: ListView.builder(
|
||||
itemCount: _.listKasusTraining.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
KasusTraining kasusTraining =
|
||||
_.listKasusTraining[index];
|
||||
return CardKasusTraining(
|
||||
kasusTraining: kasusTraining,
|
||||
onTap: () {
|
||||
Get.to(DetailPage(
|
||||
tkp: kasusTraining.tkp ?? "Kosong",
|
||||
jk: kasusTraining.jumlahKejahatan ?? "Kosong",
|
||||
jtp: kasusTraining.jarakTkpPolres ?? "Kosong",
|
||||
status: kasusTraining.status ?? "Kosong",
|
||||
name: kasusTraining.name ?? "Kosong"));
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
)),
|
||||
],
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/widget/card_detail_training.dart';
|
||||
|
||||
class DetailPage extends StatelessWidget {
|
||||
final String tkp, jk, jtp, status, name;
|
||||
const DetailPage({
|
||||
super.key,
|
||||
required this.tkp,
|
||||
required this.jk,
|
||||
required this.jtp,
|
||||
required this.status,
|
||||
required this.name,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: whiteColor,
|
||||
leading: IconButton(
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
},
|
||||
icon: Icon(Icons.arrow_back_ios_new_sharp, size: 20.w)),
|
||||
centerTitle: true,
|
||||
title: Text('Detail Kasus Training', style: robotoSedangHitam),
|
||||
),
|
||||
body: SafeArea(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16.w),
|
||||
child: Column(
|
||||
children: [
|
||||
CardDetailTraining(
|
||||
tkp: tkp,
|
||||
jk: jk,
|
||||
jtp: jtp,
|
||||
status: status,
|
||||
name: name,
|
||||
),
|
||||
],
|
||||
),
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,131 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
|
||||
class EditProfilePage extends StatefulWidget {
|
||||
const EditProfilePage({super.key});
|
||||
|
||||
@override
|
||||
State<EditProfilePage> createState() => _EditProfilePageState();
|
||||
}
|
||||
|
||||
class _EditProfilePageState extends State<EditProfilePage> {
|
||||
final formKey = GlobalKey<FormState>();
|
||||
final namaController = TextEditingController();
|
||||
final numberController = TextEditingController();
|
||||
final sektorController = TextEditingController();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
backgroundColor: const Color(0xffffffff),
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
backgroundColor: const Color(0xffffffff),
|
||||
leadingWidth: 70,
|
||||
leading: TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Text('Batal', style: robotoSedangHitam),
|
||||
),
|
||||
centerTitle: true,
|
||||
title: Text('Edit', style: robotoSedangHitam),
|
||||
actions: [
|
||||
Text('Simpan', style: robotoSedangHitam),
|
||||
],
|
||||
),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Form(
|
||||
key: formKey,
|
||||
child: Column(
|
||||
children: [
|
||||
TextFormField(
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
controller: namaController,
|
||||
autofocus: true,
|
||||
decoration: InputDecoration(
|
||||
labelText: 'Nama',
|
||||
labelStyle: robotoSedangHitam.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
hintText: 'Update Nama Anda',
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
focusedBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
TextFormField(
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return 'Isi No. Telp';
|
||||
} else if (value.length < 10 || value.length > 12) {
|
||||
return 'Nomor Tidak Valid';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
keyboardType: TextInputType.number,
|
||||
controller: numberController,
|
||||
autofocus: true,
|
||||
decoration: InputDecoration(
|
||||
labelText: 'No. Telp',
|
||||
labelStyle:
|
||||
robotoSedangHitam.copyWith(fontWeight: FontWeight.bold),
|
||||
hintText: 'Update No. Telp',
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
focusedBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
TextFormField(
|
||||
validator: (value) {
|
||||
if (value == null || value.isEmpty) {
|
||||
return 'Isi Sektor Anda';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
keyboardType: TextInputType.streetAddress,
|
||||
controller: sektorController,
|
||||
autofocus: true,
|
||||
decoration: InputDecoration(
|
||||
labelText: 'Alamat',
|
||||
labelStyle:
|
||||
robotoSedangHitam.copyWith(fontWeight: FontWeight.bold),
|
||||
hintText: 'Update Sektor',
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
focusedBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xffC6C6C6),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/view/data_testing_page.dart';
|
||||
import 'package:skripsi/view/data_training_page.dart';
|
||||
import 'package:skripsi/view/patroli_page.dart';
|
||||
import 'package:skripsi/view/profile_page.dart';
|
||||
|
||||
class HomePage extends StatefulWidget {
|
||||
const HomePage({super.key});
|
||||
|
||||
@override
|
||||
State<HomePage> createState() => _HomePageState();
|
||||
}
|
||||
|
||||
class _HomePageState extends State<HomePage> {
|
||||
int _selectedIndex = 0;
|
||||
|
||||
final List<Widget> _widgetHome = <Widget>[
|
||||
const PatroliPage(),
|
||||
const TestingPage(),
|
||||
const TrainingPage(),
|
||||
const ProfilePage(),
|
||||
];
|
||||
|
||||
void itemSelected(int index) {
|
||||
setState(() {
|
||||
_selectedIndex = index;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Stack(
|
||||
children: [
|
||||
Center(
|
||||
child: _widgetHome.elementAt(_selectedIndex),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: SizedBox(
|
||||
width: 360.w,
|
||||
height: 60.h,
|
||||
child: ClipRect(
|
||||
child: BottomNavigationBar(
|
||||
unselectedItemColor: blackColor,
|
||||
showSelectedLabels: true,
|
||||
items: const <BottomNavigationBarItem>[
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.home),
|
||||
label: 'Home',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.assessment_outlined),
|
||||
label: 'Testing',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.assessment_outlined),
|
||||
label: 'Training',
|
||||
),
|
||||
BottomNavigationBarItem(
|
||||
icon: Icon(Icons.account_balance),
|
||||
label: 'Profile',
|
||||
),
|
||||
],
|
||||
backgroundColor: secondaryColor,
|
||||
currentIndex: _selectedIndex,
|
||||
selectedItemColor: primaryColor,
|
||||
onTap: itemSelected,
|
||||
iconSize: 16.w,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,130 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/controller/cLogin.dart';
|
||||
import 'package:skripsi/view/home_page.dart';
|
||||
import 'package:skripsi/view/register_page.dart';
|
||||
import 'package:skripsi/widget/cust_button.dart';
|
||||
import 'package:skripsi/widget/cust_text_field.dart';
|
||||
import 'package:skripsi/widget/cust_text_field_psw.dart';
|
||||
import 'package:skripsi/widget/dialog.dart';
|
||||
|
||||
class LoginPage extends StatefulWidget {
|
||||
const LoginPage({super.key});
|
||||
|
||||
@override
|
||||
State<LoginPage> createState() => _LoginPageState();
|
||||
}
|
||||
|
||||
class _LoginPageState extends State<LoginPage> {
|
||||
final cLogin = Get.put(CLogin());
|
||||
|
||||
final formKey = GlobalKey<FormState>();
|
||||
|
||||
TextEditingController usernameController = TextEditingController();
|
||||
TextEditingController passwordController = TextEditingController();
|
||||
|
||||
login() async {
|
||||
if (usernameController.text.isEmpty) {
|
||||
Get.snackbar("Error", "Masukkan Username", backgroundColor: Colors.red);
|
||||
} else if (passwordController.text.isEmpty) {
|
||||
Get.snackbar("Error", "Masukkan Password", backgroundColor: Colors.red);
|
||||
} else {
|
||||
await cLogin.login(usernameController.text, passwordController.text);
|
||||
if (cLogin.successLogin) {
|
||||
Get.snackbar("Success", "Berhasil Login",
|
||||
backgroundColor: Colors.green);
|
||||
Get.off(const HomePage());
|
||||
} else {
|
||||
Get.snackbar("Error", "Username dan password salah!",
|
||||
backgroundColor: Colors.red);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Stack(children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 20.w, right: 20.w),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset('assets/logo.png'),
|
||||
SizedBox(
|
||||
height: 20.h,
|
||||
),
|
||||
Text(
|
||||
'Patrol.In',
|
||||
style: robotoBesarHitam.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: blackColor,
|
||||
decorationThickness: 1),
|
||||
),
|
||||
SizedBox(
|
||||
height: 20.h,
|
||||
),
|
||||
CustTextField(
|
||||
controller: usernameController,
|
||||
hint: 'Masukkan Username',
|
||||
),
|
||||
SizedBox(
|
||||
height: 20.h,
|
||||
),
|
||||
CustTextFieldPreffSuff(
|
||||
controller: passwordController,
|
||||
hint: 'Masukkan Password',
|
||||
),
|
||||
SizedBox(
|
||||
height: 40.h,
|
||||
),
|
||||
CustButton(
|
||||
onTap: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const HomePage()));
|
||||
login();
|
||||
},
|
||||
text: 'LOGIN',
|
||||
backgroundColor: primaryColor,
|
||||
width: 120.w,
|
||||
height: 40.h),
|
||||
SizedBox(height: 20.h),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'Belum Memiliki Akun?',
|
||||
style: robotoSedangHitam,
|
||||
),
|
||||
SizedBox(width: 8.w),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Get.to(const RegisterPage());
|
||||
},
|
||||
child: Text(
|
||||
'Mendaftar',
|
||||
style:
|
||||
robotoSedangHitam.copyWith(color: Colors.blue[400]),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Obx(() {
|
||||
if (cLogin.loading) {
|
||||
return showCustomLoadingDialog(context);
|
||||
}
|
||||
return const SizedBox.shrink();
|
||||
}),
|
||||
]),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,152 @@
|
|||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
|
||||
import 'package:d_view/d_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/controller/cKasusTesting.dart';
|
||||
import 'package:skripsi/model/kasus_testing.dart';
|
||||
import 'package:skripsi/widget/card_kasus_riwayat.dart';
|
||||
|
||||
class PatroliPage extends StatefulWidget {
|
||||
const PatroliPage({super.key});
|
||||
|
||||
@override
|
||||
State<PatroliPage> createState() => _PatroliPageState();
|
||||
}
|
||||
|
||||
class _PatroliPageState extends State<PatroliPage> {
|
||||
final cKasusTestingTinggi = Get.put(CKasusTesting());
|
||||
|
||||
refresh() {
|
||||
cKasusTestingTinggi.getListKasusTestingTinggi();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
refresh();
|
||||
cKasusTestingTinggi.listKasusTestingTinggi;
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Padding(
|
||||
padding: EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 60.w),
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/logo.png', height: 120.w, width: 120.w),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
'Patrol.In',
|
||||
style: robotoBesarHitam.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: blackColor,
|
||||
decorationThickness: 1),
|
||||
),
|
||||
// SingleChildScrollView(
|
||||
// scrollDirection: Axis.horizontal,
|
||||
// child: Row(
|
||||
// children: [
|
||||
// const StatisticCard(judul: 'Total Daerah', isi: '16'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Rendah', isi: '5'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Sedang', isi: '7'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Tinggi', isi: '4'),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
SizedBox(height: 16.h),
|
||||
Text('Riwayat Testing',
|
||||
style: robotoBesarHitam.copyWith(fontWeight: FontWeight.bold)),
|
||||
const Divider(),
|
||||
Expanded(
|
||||
child: GetBuilder<CKasusTesting>(
|
||||
builder: (_) {
|
||||
if (_.loading) return DView.loadingCircle();
|
||||
if (_.listKasusTestingTinggi.isEmpty)
|
||||
return DView.empty('Kosong');
|
||||
return RefreshIndicator(
|
||||
onRefresh: () async => refresh(),
|
||||
child: ListView.builder(
|
||||
itemCount: _.listKasusTestingTinggi.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
KasusTesting kasusTesting =
|
||||
_.listKasusTestingTinggi[index];
|
||||
return CardRiwayat(kasusTesting: kasusTesting);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
// Image.asset('assets/logo.png', height: 120.w, width: 120.w),
|
||||
// SizedBox(height: 8.h),
|
||||
// Text(
|
||||
// 'Patrol.In',
|
||||
// style: robotoBesarHitam.copyWith(
|
||||
// decoration: TextDecoration.underline,
|
||||
// decorationColor: blackColor,
|
||||
// decorationThickness: 1),
|
||||
// ),
|
||||
// SizedBox(height: 16.h),
|
||||
// SingleChildScrollView(
|
||||
// scrollDirection: Axis.horizontal,
|
||||
// child: Row(
|
||||
// children: [
|
||||
// const StatisticCard(judul: 'Total Daerah', isi: '16'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Rendah', isi: '5'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Sedang', isi: '7'),
|
||||
// SizedBox(width: 12.w),
|
||||
// const StatisticCard(
|
||||
// judul: 'Tingkat Kriminal Tinggi', isi: '4'),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// Container(
|
||||
// height: MediaQuery.of(context).size.width + 90.w,
|
||||
// decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(12.w),
|
||||
// ),
|
||||
// child: Padding(
|
||||
// padding: EdgeInsets.only(top: 8.w, left: 8.w, right: 8.w),
|
||||
// child: SingleChildScrollView(
|
||||
// child: Column(
|
||||
// children: [
|
||||
// Text('Riwayat Test',
|
||||
// style: robotoBesarHitam.copyWith(
|
||||
// fontWeight: FontWeight.bold)),
|
||||
// const Divider(),
|
||||
// ListView.builder(
|
||||
// scrollDirection: Axis.vertical,
|
||||
// shrinkWrap: true,
|
||||
// physics: const NeverScrollableScrollPhysics(),
|
||||
// itemCount: _ruteP.length,
|
||||
// itemBuilder: (context, index) => CardRuteP(
|
||||
// alamat: _ruteP[index].alamat,
|
||||
// jam: _ruteP[index].jam,
|
||||
// status: _ruteP[index].status,
|
||||
// id: _ruteP[index].id),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,229 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:skripsi/config/session.dart';
|
||||
import 'package:skripsi/config/theme.dart';
|
||||
import 'package:skripsi/controller/cUser.dart';
|
||||
import 'package:skripsi/view/login_page.dart';
|
||||
|
||||
class ProfilePage extends StatefulWidget {
|
||||
const ProfilePage({super.key});
|
||||
|
||||
@override
|
||||
State<ProfilePage> createState() => _ProfilePageState();
|
||||
}
|
||||
|
||||
class _ProfilePageState extends State<ProfilePage> {
|
||||
final cUser = Get.put(CUser());
|
||||
|
||||
logout() async {
|
||||
Session.clearUser();
|
||||
Navigator.pushAndRemoveUntil(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const LoginPage()),
|
||||
(route) => false);
|
||||
Get.snackbar("Success", "Berhasil LogOut", backgroundColor: Colors.green);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Padding(
|
||||
padding: EdgeInsets.fromLTRB(10.w, 10.w, 10.w, 60.w),
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/logo.png', height: 120.w, width: 120.w),
|
||||
SizedBox(height: 8.h),
|
||||
Text(
|
||||
'Patrol.In',
|
||||
style: robotoBesarHitam.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: blackColor,
|
||||
decorationThickness: 1),
|
||||
),
|
||||
SizedBox(height: 16.h),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: secondaryColor,
|
||||
borderRadius: BorderRadius.circular(12.w),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(12.w),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text('Tentang Anda',
|
||||
style: robotoSedangHitam.copyWith(
|
||||
fontWeight: FontWeight.bold)),
|
||||
// GestureDetector(
|
||||
// onTap: () {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => const EditProfilePage(),
|
||||
// ),
|
||||
// );
|
||||
// },
|
||||
// child: Icon(
|
||||
// Icons.arrow_forward_ios,
|
||||
// size: 18.w,
|
||||
// ),
|
||||
// )
|
||||
],
|
||||
),
|
||||
const Divider(),
|
||||
SizedBox(height: 8.w),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text('Nama',
|
||||
style: robotoKecilHitam.copyWith(
|
||||
fontWeight: FontWeight.bold)),
|
||||
Text(cUser.data.name ?? '', style: robotoKecilHitam),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text('No. Telp',
|
||||
style: robotoKecilHitam.copyWith(
|
||||
fontWeight: FontWeight.bold)),
|
||||
Text(cUser.data.noTelp ?? 'kosong',
|
||||
style: robotoKecilHitam),
|
||||
],
|
||||
),
|
||||
// SizedBox(height: 16.w),
|
||||
// Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// Text('Sektor',
|
||||
// style: robotoKecilHitam.copyWith(
|
||||
// fontWeight: FontWeight.bold)),
|
||||
// Text('Patrang', style: robotoKecilHitam),
|
||||
// ],
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12.h),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
decoration: BoxDecoration(
|
||||
color: secondaryColor,
|
||||
borderRadius: BorderRadius.circular(12.w),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(10.w),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Row(
|
||||
children: [
|
||||
// const Icon(
|
||||
// Icons.logout,
|
||||
// ),
|
||||
SizedBox(width: 6.w),
|
||||
Text(
|
||||
'Keluar',
|
||||
style: robotoSedangHitam.copyWith(
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.vertical(
|
||||
top: Radius.circular(10.r),
|
||||
),
|
||||
),
|
||||
builder: (context) {
|
||||
return SizedBox(
|
||||
child: Column(
|
||||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ListTile(
|
||||
title: Center(
|
||||
child: Text(
|
||||
'Anda yakin ingin keluar?',
|
||||
style:
|
||||
robotoBesarHitam.copyWith(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w100,
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
title: Center(
|
||||
child: Text(
|
||||
'Keluar',
|
||||
style:
|
||||
robotoBesarHitam.copyWith(
|
||||
fontSize: 18.sp,
|
||||
color: Colors.red,
|
||||
),
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
logout();
|
||||
},
|
||||
),
|
||||
const Divider(),
|
||||
ListTile(
|
||||
title: Center(
|
||||
child: Text(
|
||||
'Batal',
|
||||
style:
|
||||
robotoBesarHitam.copyWith(
|
||||
fontSize: 18.sp,
|
||||
fontWeight: FontWeight.w100,
|
||||
color:
|
||||
const Color(0xff5E5E5E),
|
||||
),
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Icon(
|
||||
Icons.arrow_forward_ios,
|
||||
size: 16.w,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|