Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated splash screen #42

Merged
merged 3 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.gradle
/local.properties
/.idea/caches
.idea
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

123 changes: 0 additions & 123 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

26 changes: 0 additions & 26 deletions .idea/gradle.xml

This file was deleted.

30 changes: 0 additions & 30 deletions .idea/jarRepositories.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/misc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

19 changes: 16 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ kapt {


android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "divyansh.tech.animeclassroom"
minSdkVersion 24
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -54,9 +54,13 @@ androidExtensions {
dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
//noinspection GradleDependency
implementation "androidx.core:core-ktx:$core_ktx"
//noinspection GradleDependency
implementation "androidx.appcompat:appcompat:$appcompat"
//noinspection GradleDependency
implementation "com.google.android.material:material:$material"
//noinspection GradleDependency
implementation "androidx.constraintlayout:constraintlayout:$constraint_layout"

// library modules
Expand All @@ -66,10 +70,13 @@ dependencies {

// test dependencies
testImplementation "junit:junit:$junit"
//noinspection GradleDependency
androidTestImplementation "androidx.test.ext:junit:$junit_ext"
//noinspection GradleDependency
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core"

//fragment
//noinspection GradleDependency
implementation "androidx.fragment:fragment-ktx:$fragment_ktx"

// navigation
Expand All @@ -83,6 +90,7 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_viewModels"

// dagger hilt
//noinspection GradleDependency
api "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"

Expand All @@ -91,13 +99,15 @@ dependencies {
kapt "androidx.hilt:hilt-compiler:$dagger_compiler"

// image loading
//noinspection GradleDependency
implementation "com.github.bumptech.glide:glide:$glide"
kapt "com.github.bumptech.glide:compiler:$glide"

// exoplayer
implementation (
"com.google.android.exoplayer:exoplayer:$exoplayer",
"com.google.android.exoplayer:extension-mediasession:$exoplayer",
"com.airbnb.android:lottie:4.1.0",
"com.google.android.exoplayer:exoplayer-core:$exoplayer",
"com.google.android.exoplayer:exoplayer-dash:$exoplayer",
"com.google.android.exoplayer:exoplayer-ui:$exoplayer",
Expand All @@ -110,4 +120,7 @@ dependencies {
kapt "com.airbnb.android:epoxy-processor:$epoxyVersion"

implementation "com.ms-square:expandableTextView:$expandableTextView"
//
// // Lottie

}
10 changes: 7 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".player.PlayerActivity" android:screenOrientation="sensorLandscape"/>
<activity android:name=".MainActivity">
<activity
android:name=".SplashActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".player.PlayerActivity"
android:screenOrientation="sensorLandscape" />
<activity android:name=".MainActivity" />
</application>

</manifest>
25 changes: 25 additions & 0 deletions app/src/main/java/divyansh/tech/animeclassroom/SplashActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package divyansh.tech.animeclassroom

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.WindowManager

class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)

window.setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN
)

Handler().postDelayed({
val intent = Intent(this,MainActivity::class.java)
startActivity(intent)
finish()
},3000)
}
}
Binary file added app/src/main/res/font/anime_font.ttf
Binary file not shown.
Binary file added app/src/main/res/font/blowbrush.ttf
Binary file not shown.
Loading