Skip to content

Commit f65ad25

Browse files
committed
Initial commit
0 parents  commit f65ad25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1639
-0
lines changed

.gitignore

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# Created by https://www.gitignore.io/api/android,androidstudio
2+
3+
### Android ###
4+
# Built application files
5+
*.apk
6+
*.ap_
7+
8+
# Files for the ART/Dalvik VM
9+
*.dex
10+
11+
# Java class files
12+
*.class
13+
14+
# Generated files
15+
bin/
16+
gen/
17+
out/
18+
19+
# Gradle files
20+
.gradle/
21+
build/
22+
23+
keystore/
24+
app/keystore/
25+
26+
# Local configuration file (sdk path, etc)
27+
local.properties
28+
29+
# Log Files
30+
*.log
31+
32+
# Android Studio Navigation editor temp files
33+
.navigation/
34+
35+
# Android Studio captures folder
36+
captures/
37+
38+
# Intellij
39+
*.iml
40+
.idea/*
41+
42+
# IDEA/Android Studio Ignore exceptions
43+
!/.idea/vcs.xml
44+
!/.idea/fileTemplates/
45+
!/.idea/inspectionProfiles/
46+
!/.idea/scopes/
47+
!/.idea/codeStyleSettings.xml
48+
!/.idea/encodings.xml
49+
!/.idea/copyright/
50+
!/.idea/compiler.xml
51+
!/.idea/dictionaries/
52+
!/.idea/navEditor.xml
53+
!/.idea/codeInsightSettings.xml
54+
55+
# Keystore files
56+
*.jks
57+
58+
# Gradle files
59+
.gradle
60+
61+
# Signing files
62+
.signing/
63+
64+
# Local configuration file (sdk path, etc)
65+
66+
# Proguard folder generated by Eclipse
67+
68+
# Log Files
69+
70+
# Android Studio
71+
/*/build/
72+
/*/local.properties
73+
/*/out
74+
/*/*/build
75+
/*/*/production
76+
*.ipr
77+
*~
78+
*.swp
79+
80+
# External native build folder generated in Android Studio 2.2 and later
81+
82+
# NDK
83+
obj/
84+
85+
# IntelliJ IDEA
86+
*.iws
87+
/out/
88+
89+
# User-specific configurations
90+
.idea/libraries/
91+
.idea/.name
92+
.idea/compiler.xml
93+
.idea/copyright/profiles_settings.xml
94+
.idea/encodings.xml
95+
.idea/misc.xml
96+
.idea/modules.xml
97+
.idea/scopes/scope_settings.xml
98+
.idea/vcs.xml
99+
.idea/jsLibraryMappings.xml
100+
.idea/datasources.xml
101+
.idea/dataSources.ids
102+
.idea/sqlDataSources.xml
103+
.idea/dynamic.xml
104+
.idea/uiDesigner.xml
105+
106+
# Keystore files
107+
108+
# OS-specific files
109+
.DS_Store
110+
.DS_Store?
111+
._*
112+
.Spotlight-V100
113+
.Trashes
114+
ehthumbs.db
115+
Thumbs.db
116+
117+
# Legacy Eclipse project files
118+
.classpath
119+
.project
120+
121+
# Package Files #
122+
*.jar
123+
*.war
124+
*.ear
125+
126+
# Crashlytics plugin (for Android Studio and IntelliJ)
127+
com_crashlytics_export_strings.xml
128+
crashlytics.properties
129+
crashlytics-build.properties
130+
131+
!/gradle/wrapper/gradle-wrapper.jar
132+
133+
jacoco.exec
134+
135+
# Fastlane
136+
fastlane/report.xml

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle.kts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
plugins {
2+
alias(libs.plugins.org.jetbrains.kotlin.android)
3+
alias(libs.plugins.android.application)
4+
}
5+
6+
android {
7+
namespace = "com.shifthackz.catppuccin.app"
8+
compileSdk = 34
9+
10+
defaultConfig {
11+
applicationId = "com.shifthackz.catppuccin.app"
12+
minSdk = 21
13+
targetSdk = 34
14+
versionCode = 1
15+
versionName = "0.0.1-alpha"
16+
17+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
vectorDrawables {
19+
useSupportLibrary = true
20+
}
21+
}
22+
23+
buildTypes {
24+
release {
25+
isMinifyEnabled = false
26+
proguardFiles(
27+
getDefaultProguardFile("proguard-android-optimize.txt"),
28+
"proguard-rules.pro"
29+
)
30+
}
31+
}
32+
compileOptions {
33+
sourceCompatibility = JavaVersion.VERSION_1_8
34+
targetCompatibility = JavaVersion.VERSION_1_8
35+
}
36+
kotlinOptions {
37+
jvmTarget = "1.8"
38+
}
39+
buildFeatures {
40+
compose = true
41+
}
42+
composeOptions {
43+
kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
44+
}
45+
packaging {
46+
resources {
47+
excludes += "/META-INF/{AL2.0,LGPL2.1}"
48+
}
49+
}
50+
}
51+
52+
dependencies {
53+
implementation(project(":compose"))
54+
55+
implementation(libs.androidx.core.ktx)
56+
implementation(libs.androidx.lifecycle.runtime.ktx)
57+
implementation(libs.androidx.activity.compose)
58+
implementation(platform(libs.androidx.compose.bom))
59+
implementation(libs.androidx.compose.ui)
60+
implementation(libs.androidx.compose.ui.graphics)
61+
implementation(libs.androidx.compose.ui.tooling.preview)
62+
implementation(libs.androidx.compose.material3)
63+
64+
debugImplementation(libs.androidx.compose.ui.tooling)
65+
debugImplementation(libs.androidx.compose.ui.test.manifest)
66+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:dataExtractionRules="@xml/data_extraction_rules"
8+
android:fullBackupContent="@xml/backup_rules"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:roundIcon="@mipmap/ic_launcher_round"
12+
android:supportsRtl="true"
13+
android:theme="@style/Theme.Catppuccin"
14+
tools:targetApi="31">
15+
<activity
16+
android:name=".MainActivity"
17+
android:exported="true"
18+
android:label="@string/app_name"
19+
android:theme="@style/Theme.Catppuccin">
20+
<intent-filter>
21+
<action android:name="android.intent.action.MAIN" />
22+
23+
<category android:name="android.intent.category.LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
</application>
27+
28+
</manifest>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package com.shifthackz.catppuccin.app
2+
3+
import android.os.Bundle
4+
import androidx.activity.ComponentActivity
5+
import androidx.activity.compose.setContent
6+
import androidx.compose.foundation.layout.fillMaxSize
7+
import androidx.compose.material3.Surface
8+
import androidx.compose.material3.Text
9+
import androidx.compose.runtime.Composable
10+
import androidx.compose.ui.Modifier
11+
import com.shifthackz.catppuccin.app.ui.ButtonsExample
12+
import com.shifthackz.catppuccin.app.ui.TypographyExample
13+
import com.shifthackz.catppuccin.palette.Catppuccin
14+
import com.shifthackz.catppuccin.compose.CatppuccinTheme
15+
16+
class MainActivity : ComponentActivity() {
17+
override fun onCreate(savedInstanceState: Bundle?) {
18+
super.onCreate(savedInstanceState)
19+
setContent {
20+
CatppuccinTheme {
21+
Surface {
22+
ButtonsExample(
23+
palette = Catppuccin.Latte,
24+
)
25+
}
26+
}
27+
}
28+
}
29+
}
30+
31+
@Composable
32+
fun Greeting(name: String, modifier: Modifier = Modifier) {
33+
Surface(
34+
modifier = Modifier.fillMaxSize(),
35+
) {
36+
Text(
37+
text = "Hello $name!",
38+
modifier = modifier
39+
)
40+
}
41+
}
42+

0 commit comments

Comments
 (0)