aboutsummaryrefslogtreecommitdiff
path: root/android/app/src/main/java/dev/ediblemonad/owynlauncher
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-10-25 13:26:44 +0530
committerAkshay Nair <phenax5@gmail.com>2024-10-25 13:32:31 +0530
commit95e4f3b1c1774aeab4fda1df1896ac86d3d36c47 (patch)
tree44ffaaec9dd786908977184f6f994b035a438824 /android/app/src/main/java/dev/ediblemonad/owynlauncher
parent110f56da5a3b9f3341a197ca3813ba7703cd4420 (diff)
downloaddaft-launcher-1.0.2.tar.gz
daft-launcher-1.0.2.zip
Rename project to daft1.0.2
Diffstat (limited to 'android/app/src/main/java/dev/ediblemonad/owynlauncher')
-rw-r--r--android/app/src/main/java/dev/ediblemonad/owynlauncher/MainActivity.kt22
-rw-r--r--android/app/src/main/java/dev/ediblemonad/owynlauncher/MainApplication.kt43
2 files changed, 0 insertions, 65 deletions
diff --git a/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainActivity.kt b/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainActivity.kt
deleted file mode 100644
index c72d8ee..0000000
--- a/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainActivity.kt
+++ /dev/null
@@ -1,22 +0,0 @@
-package dev.ediblemonad.owynlauncher
-
-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 = "OwynLauncherRewrite"
-
- /**
- * 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)
-}
diff --git a/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainApplication.kt b/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainApplication.kt
deleted file mode 100644
index 34763cb..0000000
--- a/android/app/src/main/java/dev/ediblemonad/owynlauncher/MainApplication.kt
+++ /dev/null
@@ -1,43 +0,0 @@
-package dev.ediblemonad.owynlauncher
-
-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()
- }
- }
-}