Skip to content

Commit 9a743d4

Browse files
committed
first commit
0 parents  commit 9a743d4

Some content is hidden

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

53 files changed

+1748
-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.toptal.com/developers/gitignore/api/androidstudio
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=androidstudio
3+
4+
### AndroidStudio ###
5+
# Covers files to be ignored for android development using Android Studio.
6+
7+
# Built application files
8+
*.apk
9+
*.ap_
10+
*.aab
11+
12+
# Files for the ART/Dalvik VM
13+
*.dex
14+
15+
# Java class files
16+
*.class
17+
18+
# Generated files
19+
bin/
20+
gen/
21+
out/
22+
23+
# Gradle files
24+
.gradle
25+
.gradle/
26+
build/
27+
28+
# Signing files
29+
.signing/
30+
31+
# Local configuration file (sdk path, etc)
32+
local.properties
33+
34+
# Proguard folder generated by Eclipse
35+
proguard/
36+
37+
# Log Files
38+
*.log
39+
40+
# Android Studio
41+
/*/build/
42+
/*/local.properties
43+
/*/out
44+
/*/*/build
45+
/*/*/production
46+
captures/
47+
.navigation/
48+
*.ipr
49+
*~
50+
*.swp
51+
52+
# Keystore files
53+
*.jks
54+
*.keystore
55+
56+
# Google Services (e.g. APIs or Firebase)
57+
# google-services.json
58+
59+
# Android Patch
60+
gen-external-apklibs
61+
62+
# External native build folder generated in Android Studio 2.2 and later
63+
.externalNativeBuild
64+
65+
# NDK
66+
obj/
67+
68+
# IntelliJ IDEA
69+
*.iml
70+
*.iws
71+
/out/
72+
73+
# User-specific configurations
74+
.idea/caches/
75+
.idea/libraries/
76+
.idea/shelf/
77+
.idea/workspace.xml
78+
.idea/tasks.xml
79+
.idea/.name
80+
.idea/compiler.xml
81+
.idea/copyright/profiles_settings.xml
82+
.idea/encodings.xml
83+
.idea/misc.xml
84+
.idea/modules.xml
85+
.idea/scopes/scope_settings.xml
86+
.idea/dictionaries
87+
.idea/vcs.xml
88+
.idea/jsLibraryMappings.xml
89+
.idea/datasources.xml
90+
.idea/dataSources.ids
91+
.idea/sqlDataSources.xml
92+
.idea/dynamic.xml
93+
.idea/uiDesigner.xml
94+
.idea/assetWizardSettings.xml
95+
.idea/gradle.xml
96+
.idea/jarRepositories.xml
97+
.idea/navEditor.xml
98+
99+
# Legacy Eclipse project files
100+
.classpath
101+
.project
102+
.cproject
103+
.settings/
104+
105+
# Mobile Tools for Java (J2ME)
106+
.mtj.tmp/
107+
108+
# Package Files #
109+
*.war
110+
*.ear
111+
112+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
113+
hs_err_pid*
114+
115+
## Plugin-specific files:
116+
117+
# mpeltonen/sbt-idea plugin
118+
.idea_modules/
119+
120+
# JIRA plugin
121+
atlassian-ide-plugin.xml
122+
123+
# Mongo Explorer plugin
124+
.idea/mongoSettings.xml
125+
126+
# Crashlytics plugin (for Android Studio and IntelliJ)
127+
com_crashlytics_export_strings.xml
128+
crashlytics.properties
129+
crashlytics-build.properties
130+
fabric.properties
131+
132+
### AndroidStudio Patch ###
133+
134+
!/gradle/wrapper/gradle-wrapper.jar
135+
136+
# End of https://www.toptal.com/developers/gitignore/api/androidstudio

.idea/.gitignore

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

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 37 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

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
namespace 'com.x3rocode.xblur'
8+
compileSdk 33
9+
10+
defaultConfig {
11+
applicationId "com.x3rocode.xblur"
12+
minSdk 33
13+
targetSdk 33
14+
versionCode 1
15+
versionName "1.0"
16+
17+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
vectorDrawables {
19+
useSupportLibrary true
20+
}
21+
}
22+
23+
buildTypes {
24+
release {
25+
minifyEnabled false
26+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
27+
}
28+
}
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_1_8
31+
targetCompatibility JavaVersion.VERSION_1_8
32+
}
33+
kotlinOptions {
34+
jvmTarget = '1.8'
35+
}
36+
buildFeatures {
37+
compose true
38+
}
39+
composeOptions {
40+
kotlinCompilerExtensionVersion '1.1.1'
41+
}
42+
packagingOptions {
43+
resources {
44+
excludes += '/META-INF/{AL2.0,LGPL2.1}'
45+
}
46+
}
47+
}
48+
49+
dependencies {
50+
implementation 'androidx.core:core-ktx:1.7.0'
51+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
52+
implementation 'androidx.activity:activity-compose:1.3.1'
53+
implementation "androidx.compose.ui:ui:$compose_ui_version"
54+
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
55+
implementation 'androidx.compose.material:material:1.1.1'
56+
implementation "com.google.android.material:material:1.6.1"
57+
implementation "androidx.compose.foundation:foundation:1.4.0-alpha01"
58+
implementation "com.airbnb.android:lottie-compose:5.2.0"
59+
testImplementation 'junit:junit:4.13.2'
60+
implementation project(':xblurlib')
61+
implementation("androidx.compose.ui:ui-graphics:1.4.0-alpha02")
62+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
63+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
64+
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
65+
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
66+
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
67+
}

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
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.x3rocode.xblur
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.x3rocode.xblur", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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:supportsRtl="true"
12+
android:theme="@style/Theme.Xblur"
13+
tools:targetApi="31">
14+
<activity
15+
android:name=".MainActivity"
16+
android:exported="true"
17+
android:label="@string/app_name"
18+
android:theme="@style/Theme.Xblur">
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
22+
<category android:name="android.intent.category.LAUNCHER" />
23+
</intent-filter>
24+
25+
<meta-data
26+
android:name="android.app.lib_name"
27+
android:value="" />
28+
</activity>
29+
</application>
30+
31+
</manifest>

0 commit comments

Comments
 (0)