Skip to content

Commit

Permalink
Merge branch 'main' into twitterloginfrontend
Browse files Browse the repository at this point in the history
  • Loading branch information
codervivek5 authored Jul 15, 2023
2 parents 419510d + ed30ba0 commit 3e7bb49
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 14 deletions.
1 change: 1 addition & 0 deletions Android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ dependencies {
androidTestImplementation("androidx.navigation:navigation-testing:2.5.3")

implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.core:core-splashscreen:1.0.0-alpha01'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
Expand Down
6 changes: 4 additions & 2 deletions Android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.VigyBag"
android:theme="@style/Theme.CustomSplashScreenTheme"

tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/splashScreenTheme">
android:theme="@style/Theme.CustomSplashScreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>

</manifest>
4 changes: 2 additions & 2 deletions Android/app/src/main/java/com/vigbag/android/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package com.vigbag.android

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.fragment.app.Fragment
import com.vigbag.android.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
setContentView(R.layout.activity_main)
}


}

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.fragment.findNavController
import androidx.preference.PreferenceManager
import com.vigbag.android.databinding.FragmentSignInBinding
import com.vigbag.android.util.Constants.preferences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ package com.vigbag.android

import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.fragment.findNavController
import com.vigbag.android.databinding.FragmentSignUpBinding

class SignUpFragment : Fragment(R.layout.fragment_sign_up) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Android/app/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
android:id="@+id/nav_graph"
app:startDestination="@id/signInFragment">



<fragment
android:id="@+id/signInFragment"
android:name="com.vigbag.android.SignInFragment"
Expand Down
9 changes: 9 additions & 0 deletions Android/app/src/main/res/values/Theme.SplashScreen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.CustomSplashScreenTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">#F9A826</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/splashscreenlogo</item>
<item name="windowSplashScreenAnimationDuration">300</item>
<item name="postSplashScreenTheme">@style/Theme.VigyBag</item>
</style>
</resources>
2 changes: 2 additions & 0 deletions Android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
<string name="app_name">VigyBag</string>
<string name="email_key">email</string>
<string name="password_key">password</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>
5 changes: 1 addition & 4 deletions Android/app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="splashScreenTheme" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">@drawable/splash_image</item>
<item name="android:statusBarColor">@color/black</item>
</style>

<style name="Theme.VigyBag" parent="Theme.AppCompat.DayNight.NoActionBar" />
</resources>
4 changes: 2 additions & 2 deletions Android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}

0 comments on commit 3e7bb49

Please sign in to comment.