Skip to content

Commit 0a76c49

Browse files
committed
Added fonts, colors, all necessary dependencies
1 parent 84a7d10 commit 0a76c49

15 files changed

+113
-23
lines changed

.idea/gradle.xml

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
22
id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
4+
id 'kotlin-kapt'
45
id 'androidx.navigation.safeargs.kotlin'
56
id 'org.jetbrains.kotlin.plugin.parcelize'
67
id 'com.google.dagger.hilt.android'
7-
id 'kotlin-kapt'
88
}
99

1010
android {
@@ -32,11 +32,11 @@ android {
3232
dataBinding true
3333
}
3434
compileOptions {
35-
sourceCompatibility JavaVersion.VERSION_17
36-
targetCompatibility JavaVersion.VERSION_17
35+
sourceCompatibility JavaVersion.VERSION_1_8
36+
targetCompatibility JavaVersion.VERSION_1_8
3737
}
3838
kotlinOptions {
39-
jvmTarget = '17'
39+
jvmTarget = '1.8'
4040
}
4141
}
4242

app/src/main/AndroidManifest.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@
1414
tools:targetApi="31">
1515
<activity
1616
android:name=".GetStartedActivity"
17-
android:exported="false" />
18-
<activity
19-
android:name=".MainActivity"
2017
android:exported="true">
2118
<intent-filter>
2219
<action android:name="android.intent.action.MAIN" />
2320

2421
<category android:name="android.intent.category.LAUNCHER" />
2522
</intent-filter>
2623
</activity>
24+
<activity
25+
android:name=".MainActivity"
26+
android:exported="true">
27+
28+
</activity>
2729
</application>
2830

2931
</manifest>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
package dev.redfox.planetpulse
22

3+
import android.annotation.SuppressLint
4+
import android.graphics.Color
5+
import android.net.Uri
36
import androidx.appcompat.app.AppCompatActivity
47
import android.os.Bundle
8+
import android.view.ViewGroup
9+
import dev.redfox.planetpulse.databinding.ActivityGetStartedBinding
10+
import dev.redfox.planetpulse.databinding.ActivityMainBinding
11+
12+
@SuppressLint("StaticFieldLeak")
13+
private lateinit var binding: ActivityGetStartedBinding
514

615
class GetStartedActivity : AppCompatActivity() {
716
override fun onCreate(savedInstanceState: Bundle?) {
817
super.onCreate(savedInstanceState)
9-
setContentView(R.layout.activity_get_started)
18+
binding = ActivityGetStartedBinding.inflate(layoutInflater)
19+
setContentView(binding.root)
20+
var uri: Uri = Uri.parse("android.resource://" + packageName + "/" + R.raw.introvideo)
21+
binding.videoView.layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
22+
binding.videoView.setVideoURI(uri)
23+
binding.videoView.start()
24+
binding.videoView.setOnPreparedListener { it.isLooping = true }
25+
26+
binding.btnGetStarted.setOnClickListener {
27+
28+
}
1029
}
1130
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector android:autoMirrored="true" android:height="24dp"
2+
android:tint="#000000" android:viewportHeight="24"
3+
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="@android:color/white" android:pathData="M12,4l-1.41,1.41L16.17,11H4v2h12.17l-5.58,5.59L12,20l8,-8z"/>
5+
</vector>
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version = "1.0" encoding = "utf-8"?>
2+
<selector xmlns:android = "http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed = "false">
4+
<shape android:shape = "rectangle">
5+
<solid android:color = "@color/material_green"/>
6+
<corners android:radius="10dp"/>
7+
</shape>
8+
</item>
9+
<item android:state_pressed = "true">
10+
<shape android:shape = "oval">
11+
<solid android:color = "@color/material_green"/>
12+
</shape>
13+
</item>
14+
</selector>

app/src/main/res/layout/activity_get_started.xml

+26
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,34 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
tools:context=".GetStartedActivity">
89

10+
<VideoView
11+
android:id="@+id/videoView"
12+
android:layout_width="match_parent"
13+
android:layout_height="match_parent" />
914

15+
<com.google.android.material.card.MaterialCardView
16+
android:id="@+id/btnGetStarted"
17+
android:layout_width="wrap_content"
18+
android:layout_height="wrap_content"
19+
app:cardBackgroundColor="@color/material_green"
20+
app:cardCornerRadius="10dp"
21+
app:layout_constraintBottom_toBottomOf="parent"
22+
android:layout_marginBottom="80dp"
23+
app:layout_constraintEnd_toEndOf="parent"
24+
app:layout_constraintStart_toStartOf="parent"
25+
app:strokeColor="@color/transparent">
26+
27+
<TextView
28+
android:layout_width="wrap_content"
29+
android:layout_height="wrap_content"
30+
android:layout_margin="15dp"
31+
android:fontFamily="@font/sofiaprosoftmedium"
32+
android:text="Get Started"
33+
android:textColor="@color/white" />
34+
35+
</com.google.android.material.card.MaterialCardView>
1036

1137
</androidx.constraintlayout.widget.ConstraintLayout>

app/src/main/res/raw/introvideo.mp4

33.1 MB
Binary file not shown.

app/src/main/res/raw/lottieintro.json

+1
Large diffs are not rendered by default.

app/src/main/res/values-night/themes.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<resources xmlns:tools="http://schemas.android.com/tools">
22
<!-- Base application theme. -->
3-
<style name="Base.Theme.PlanetPulse" parent="Theme.Material3.DayNight.NoActionBar">
3+
<style name="Base.Theme.PlanetPulse" parent="Theme.Material3.Light.NoActionBar">
44
<!-- Customize your dark theme here. -->
55
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
66
</style>

app/src/main/res/values/colors.xml

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="black">#FF000000</color>
4-
<color name="white">#FFFFFFFF</color>
53
<color name="purple_200">#FFBB86FC</color>
64
<color name="purple_500">#FF6200EE</color>
75
<color name="purple_700">#FF3700B3</color>
86
<color name="teal_200">#FF03DAC5</color>
97
<color name="teal_700">#FF018786</color>
8+
<color name="black">#FF000000</color>
9+
<color name="white">#FFFFFFFF</color>
1010
<color name="material_red">#FF7189</color>
1111
<color name="material_red_dark">#FF4766</color>
1212
<color name="material_blue">#4599FF</color>
13+
<color name="material_yellow">#D9FFA9</color>
14+
<color name="material_yellow_alt">#FDFFD4</color>
1315
<color name="material_purple">#B15AFF</color>
1416
<color name="material_green">#43C685</color>
17+
<color name="material_green_dark">#25A365</color>
1518
<color name="material_orange">#FF6D63</color>
1619
<color name="subtle_red">#D2FFC8D2</color>
1720
<color name="dark">#4D4D4D</color>
@@ -21,9 +24,27 @@
2124
<color name="card_color1">#FFF1D4</color>
2225
<color name="card_color2">#FFDAB8</color>
2326
<color name="card_color3">#FFD3D3</color>
27+
<color name="card_color4">#FFE28D</color>
28+
29+
<color name="black_alpha10">#1A000000</color>
30+
31+
<color name="black_alpha60">#99000000</color>
32+
<color name="black_alpha40">#66000000</color>
33+
34+
<color name="white_alpha30">#4DFFFFFF</color>
35+
36+
<color name="bg_light_blue">#D3EDFF</color>
37+
<color name="bg_light_blue_alpha10">#1A63BEFF</color>
2438

2539
<!--SnackBar Colors-->
2640
<color name="colorSuccess">#4caf50</color>
2741
<color name="colorError">#d32f2f</color>
2842
<color name="colorWarning">#ff9800</color>
43+
<color name="transparent">#00000000</color>
44+
45+
<color name="intro_small_card_one">#26F1DE54</color>
46+
<color name="intro_small_card_two">#268C95FB</color>
47+
48+
<color name="color_top_card">#E7E7E7</color>
49+
<color name="color_bottom_card">#7DE4BF</color>
2950
</resources>

app/src/main/res/values/themes.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<resources xmlns:tools="http://schemas.android.com/tools">
22
<!-- Base application theme. -->
3-
<style name="Base.Theme.PlanetPulse" parent="Theme.Material3.DayNight.NoActionBar">
4-
<!-- Customize your light theme here. -->
5-
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
3+
<style name="Base.Theme.PlanetPulse" parent="Theme.Material3.Light.NoActionBar">
4+
<item name="android:windowTranslucentStatus">true</item>
5+
<item name="android:windowTranslucentNavigation">true</item>
6+
<item name="android:statusBarColor">@android:color/transparent</item>
67
</style>
78

89
<style name="Theme.PlanetPulse" parent="Base.Theme.PlanetPulse" />

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ buildscript {
88
hilt_version = '2.44.2'
99
}
1010
dependencies {
11-
classpath "com.android.tools.build:gradle:7.0.4"
12-
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
11+
classpath 'com.android.tools.build:gradle:8.0.0'
12+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
1313
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

gradle.properties

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ android.useAndroidX=true
1919
kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
22-
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
22+
# thereby reducing the size of the R cl
23+
# ass for that library
24+
android.nonTransitiveRClass=true
25+
android.enableJetifier=true
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Apr 15 16:48:59 IST 2023
1+
#Sat Apr 15 17:13:42 IST 2023
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)