Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
anawork-mobile-v2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
dungtnguyen
anawork-mobile-v2
Commits
484cdb64
Commit
484cdb64
authored
Mar 24, 2025
by
Lê Hoàng Dương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] android
parent
a0bab342
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
63 deletions
+0
-63
MainActivity.kt
android/app/src/main/java/com/anawork_mobile/MainActivity.kt
+0
-22
MainApplication.kt
...d/app/src/main/java/com/anawork_mobile/MainApplication.kt
+0
-41
No files found.
android/app/src/main/java/com/anawork_mobile/MainActivity.kt
deleted
100644 → 0
View file @
a0bab342
package
com.anawork_mobile
import
com.facebook.react.ReactActivity
import
com.facebook.react.ReactActivityDelegate
import
com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import
com.facebook.react.defaults.DefaultReactActivityDelegate
class
MainActivity
:
ReactActivity
()
{
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
override
fun
getMainComponentName
():
String
=
"anawork_mobile"
/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override
fun
createReactActivityDelegate
():
ReactActivityDelegate
=
DefaultReactActivityDelegate
(
this
,
mainComponentName
,
fabricEnabled
)
}
android/app/src/main/java/com/anawork_mobile/MainApplication.kt
deleted
100644 → 0
View file @
a0bab342
package
com.anawork_mobile
import
android.app.Application
import
com.facebook.react.PackageList
import
com.facebook.react.ReactApplication
import
com.facebook.react.ReactHost
import
com.facebook.react.ReactNativeHost
import
com.facebook.react.ReactPackage
import
com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import
com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import
com.facebook.react.defaults.DefaultReactNativeHost
import
com.facebook.soloader.SoLoader
class
MainApplication
:
Application
(),
ReactApplication
{
override
val
reactNativeHost
:
ReactNativeHost
=
object
:
DefaultReactNativeHost
(
this
)
{
override
fun
getPackages
():
List
<
ReactPackage
>
=
PackageList
(
this
).
packages
.
apply
{
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}
override
fun
getJSMainModuleName
():
String
=
"index"
override
fun
getUseDeveloperSupport
():
Boolean
=
BuildConfig
.
DEBUG
override
val
isNewArchEnabled
:
Boolean
=
BuildConfig
.
IS_NEW_ARCHITECTURE_ENABLED
override
val
isHermesEnabled
:
Boolean
=
BuildConfig
.
IS_HERMES_ENABLED
}
override
val
reactHost
:
ReactHost
get
()
=
getDefaultReactHost
(
applicationContext
,
reactNativeHost
)
override
fun
onCreate
()
{
super
.
onCreate
()
SoLoader
.
init
(
this
,
false
)
if
(
BuildConfig
.
IS_NEW_ARCHITECTURE_ENABLED
)
{
// If you opted-in for the New Architecture, we load the native entry point for this app.
load
()
}
}
}
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