Skip to content

Commit

Permalink
YouMusic v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamYouDown committed Nov 4, 2023
1 parent 10160ad commit 0c5c155
Show file tree
Hide file tree
Showing 26 changed files with 104 additions and 8 deletions.
7 changes: 4 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ plugins {
kotlin("kapt")
id("com.google.dagger.hilt.android")
id("com.google.devtools.ksp")
id("com.huawei.agconnect")
// id("com.huawei.agconnect")
}

if (isFullBuild && System.getenv("PULL_REQUEST") == null) {
apply(plugin = "com.google.gms.google-services")
apply(plugin = "com.google.firebase.crashlytics")
apply(plugin = "com.google.firebase.firebase-perf")
apply(plugin = "com.huawei.agconnect")
}

android {
Expand All @@ -25,8 +26,8 @@ android {
applicationId = "com.ozsoft.youmusic"
minSdk = 24
targetSdk = 33
versionCode = 13
versionName = "1.0.5"
versionCode = 14
versionName = "1.0.7"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file modified app/full/release/app-full-release.aab
Binary file not shown.
4 changes: 2 additions & 2 deletions app/full/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 13,
"versionName": "1.0.5",
"versionCode": 14,
"versionName": "1.0.7",
"outputFile": "app-full-release.apk"
}
],
Expand Down
12 changes: 10 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,26 @@
android:name="org.apache.http.legacy"
android:required="false" />

<activity android:name=".SplashActivity"
android:theme="@style/SplashTheme"
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=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/Theme.InnerTune"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MUSIC_PLAYER" />

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.APP_MUSIC" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Expand Down
39 changes: 39 additions & 0 deletions app/src/main/java/com/zionhuang/music/SplashActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.zionhuang.music

import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

@SuppressLint("CustomSplashScreen")
class SplashActivity: AppCompatActivity() {
private var activityStarted = false

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
activityStarted = true
val timerThread: Thread = object : Thread() {
override fun run() {
try {
sleep(3000)
} catch (e: InterruptedException) {
e.printStackTrace()
} finally {
if (activityStarted && intent != null && intent.flags and Intent.FLAG_ACTIVITY_REORDER_TO_FRONT !== 0) {
finish()
} else {
val intent = Intent(this@SplashActivity, MainActivity::class.java)
startActivity(intent)
}
}
}
}
timerThread.start()
}

override fun onPause() {
super.onPause()
finish()
}
}
Binary file added app/src/main/res/drawable-hdpi/splash_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/splash_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/app_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/splash_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/font/amsterdam.ttf
Binary file not shown.
Binary file added app/src/main/res/font/arvo.ttf
Binary file not shown.
Binary file added app/src/main/res/font/bod.TTF
Binary file not shown.
Binary file added app/src/main/res/font/edutas.ttf
Binary file not shown.
Binary file added app/src/main/res/font/kenia.ttf
Binary file not shown.
Binary file added app/src/main/res/font/oswald.ttf
Binary file not shown.
Binary file added app/src/main/res/font/raleway1.ttf
Binary file not shown.
Binary file added app/src/main/res/font/raleway2.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto1.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto2.ttf
Binary file not shown.
Binary file added app/src/main/res/font/teko.ttf
Binary file not shown.
41 changes: 41 additions & 0 deletions app/src/main/res/layout/activity_splash.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".SplashActivity">

<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/app_name"
android:scaleType="centerCrop"
android:alpha="0.3"
android:src="@drawable/splash_image" />

<LinearLayout
android:id="@+id/splash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
<ImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:alpha="1"
android:src="@drawable/app_logo"
tools:ignore="ContentDescription" />
</LinearLayout>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/splash"
android:text="@string/app_name"
android:textColor="#FFFFFF"
android:textSize="35sp"
android:fontFamily="@font/kenia"
android:layout_centerHorizontal="true" />

</RelativeLayout>
6 changes: 6 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. -->
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
</style>
</resources>
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ buildscript {
maven { setUrl("https://developer.huawei.com/repo/") }
}
dependencies {
classpath("com.huawei.agconnect:agcp:1.9.0.300")
// classpath("com.huawei.agconnect:agcp:1.9.0.300")
classpath(libs.gradle)
classpath(kotlin("gradle-plugin", libs.versions.kotlin.get()))
if (isFullBuild) {
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.plugin)
classpath(libs.firebase.perf.plugin)
classpath("com.huawei.agconnect:agcp:1.9.0.300")
}
}
}
Expand Down

0 comments on commit 0c5c155

Please sign in to comment.