Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IMI-Apps
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Trendy Dwi Anugrah
IMI-Apps
Commits
56506d32
Commit
56506d32
authored
Oct 07, 2026
by
gustixjerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: repoint mobile API to
https://imi.khansia.co.id/api/v1
parent
30d2144f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
mobile/lib/core/constants/app_constants.dart
mobile/lib/core/constants/app_constants.dart
+4
-10
mobile/lib/screens/auth/login_screen.dart
mobile/lib/screens/auth/login_screen.dart
+2
-2
mobile/lib/screens/profile/profile_screen.dart
mobile/lib/screens/profile/profile_screen.dart
+2
-2
No files found.
mobile/lib/core/constants/app_constants.dart
View file @
56506d32
import
'dart:io'
show
Platform
;
import
'package:flutter/foundation.dart'
;
class
AppConstants
{
static
const
String
appName
=
'IMI Jawa Barat'
;
static
const
String
appVersion
=
'1.0.0'
;
// P
ublic Ngrok URL for testing on physical mobile devices
static
const
String
ngrokBaseUrl
=
'https://wilt-process-demanding.ngrok-free.dev
/api/v1'
;
// P
roduction domain & API configuration
static
const
String
productionBaseUrl
=
'https://imi.khansia.co.id
/api/v1'
;
// Base API configuration
static
String
get
defaultBaseUrl
{
if
(
kIsWeb
)
{
return
'http://127.0.0.1:8000/api/v1'
;
}
// Default to public ngrok tunnel for physical mobile devices
return
ngrokBaseUrl
;
// Default to official production server imi.khansia.co.id for APK & Web
return
productionBaseUrl
;
}
// Storage keys
...
...
mobile/lib/screens/auth/login_screen.dart
View file @
56506d32
...
...
@@ -102,12 +102,12 @@ class _LoginScreenState extends State<LoginScreen> {
TextField
(
controller:
controller
,
decoration:
const
InputDecoration
(
hintText:
'http
://127.0.0.1:8000
/api/v1'
,
hintText:
'http
s://imi.khansia.co.id
/api/v1'
,
),
),
const
SizedBox
(
height:
10
),
Text
(
'
Browser Web: http://127.0.0.1:8000/api/v1
\n
Ngrok / HP:
${AppConstants.ngrokBaseUrl}
'
,
'
Default Server:
${AppConstants.productionBaseUrl}
\n
Lokal Server: http://127.0.0.1:8000/api/v1
'
,
style:
const
TextStyle
(
fontSize:
11
,
color:
AppColors
.
textMuted
),
),
],
...
...
mobile/lib/screens/profile/profile_screen.dart
View file @
56506d32
...
...
@@ -70,12 +70,12 @@ class _ProfileScreenState extends State<ProfileScreen> {
TextField
(
controller:
controller
,
decoration:
const
InputDecoration
(
hintText:
'http
://10.0.2.2:8000
/api/v1'
,
hintText:
'http
s://imi.khansia.co.id
/api/v1'
,
),
),
const
SizedBox
(
height:
10
),
const
Text
(
'
Emulator Android gunakan: http://10.0.2.2:8000/api/v1
\n
HP Fisik gunakan IP LAN komputer: http://192.168.x.x
:8000/api/v1'
,
'
Default Server: https://imi.khansia.co.id/api/v1
\n
Lokal Server: http://10.0.2.2
:8000/api/v1'
,
style:
TextStyle
(
fontSize:
11
,
color:
AppColors
.
textMuted
),
),
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment