Skip to content

Commit 41899e2

Browse files
committed
No error in gradle fix
0 parents  commit 41899e2

Some content is hidden

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

58 files changed

+1404
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

.idea/.gitignore

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

.idea/.name

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

.idea/appInsightsSettings.xml

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

.idea/compiler.xml

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

.idea/deploymentTargetSelector.xml

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

.idea/gradle.xml

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

.idea/kotlinc.xml

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

.idea/migrations.xml

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

.idea/misc.xml

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

.idea/runConfigurations.xml

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

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle.kts

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
plugins {
2+
alias(libs.plugins.android.application)
3+
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.kotlin.compose)
5+
id("com.google.devtools.ksp") version "1.9.21-1.0.15"
6+
id("com.google.firebase.crashlytics")
7+
id("com.google.gms.google-services")
8+
}
9+
10+
android {
11+
namespace = "com.abhyanshchannelac.smartcamera"
12+
compileSdk = 34
13+
14+
defaultConfig {
15+
applicationId = "com.abhyanshchannelac.smartcamera"
16+
minSdk = 24
17+
targetSdk = 34
18+
versionCode = 1
19+
versionName = "1.0"
20+
21+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
22+
vectorDrawables {
23+
useSupportLibrary = true
24+
}
25+
}
26+
27+
buildTypes {
28+
release {
29+
isMinifyEnabled = true
30+
isShrinkResources = true
31+
proguardFiles(
32+
getDefaultProguardFile("proguard-android-optimize.txt"),
33+
"proguard-rules.pro"
34+
)
35+
}
36+
debug {
37+
isDebuggable = true
38+
}
39+
}
40+
41+
compileOptions {
42+
isCoreLibraryDesugaringEnabled = true
43+
sourceCompatibility = JavaVersion.VERSION_17
44+
targetCompatibility = JavaVersion.VERSION_17
45+
}
46+
47+
kotlinOptions {
48+
jvmTarget = "17"
49+
freeCompilerArgs += listOf(
50+
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
51+
"-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
52+
)
53+
}
54+
55+
buildFeatures {
56+
compose = true
57+
buildConfig = true
58+
}
59+
60+
composeOptions {
61+
kotlinCompilerExtensionVersion = "1.5.6"
62+
}
63+
64+
packaging {
65+
resources {
66+
excludes += listOf(
67+
"/META-INF/{AL2.0,LGPL2.1}",
68+
"META-INF/DEPENDENCIES",
69+
"META-INF/LICENSE*",
70+
"META-INF/NOTICE*"
71+
)
72+
}
73+
}
74+
}
75+
76+
dependencies {
77+
val composeBom = platform(libs.androidx.compose.bom)
78+
implementation(composeBom)
79+
androidTestImplementation(composeBom)
80+
81+
implementation(libs.androidx.core.ktx)
82+
implementation(libs.androidx.lifecycle.runtime.ktx)
83+
implementation(libs.androidx.activity.compose)
84+
85+
// Compose
86+
implementation(libs.androidx.ui)
87+
implementation(libs.androidx.ui.graphics)
88+
implementation(libs.androidx.ui.tooling.preview)
89+
implementation(libs.androidx.material3)
90+
implementation("androidx.compose.material:material-icons-core:1.5.4")
91+
implementation("androidx.compose.material:material-icons-extended:1.5.4")
92+
93+
// Firebase
94+
implementation(platform("com.google.firebase:firebase-bom:32.7.1"))
95+
implementation("com.google.firebase:firebase-analytics")
96+
implementation("com.google.firebase:firebase-crashlytics")
97+
implementation("com.google.android.gms:play-services-measurement-api:21.5.0")
98+
implementation("com.google.android.gms:play-services-measurement-impl:21.5.0")
99+
100+
// CameraX
101+
implementation(libs.androidx.camera.camera2)
102+
implementation(libs.androidx.camera.lifecycle)
103+
implementation(libs.androidx.camera.view)
104+
105+
// Retrofit
106+
implementation(libs.retrofit.core)
107+
implementation(libs.retrofit.converter.gson)
108+
implementation(libs.okhttp.logging)
109+
110+
// Coil
111+
implementation(libs.coil.compose)
112+
113+
// Room
114+
implementation(libs.androidx.room.runtime)
115+
implementation(libs.androidx.room.ktx)
116+
ksp(libs.androidx.room.compiler)
117+
118+
// Volley
119+
implementation(libs.volley)
120+
121+
// Firebase
122+
implementation(libs.firebase.crashlytics.buildtools)
123+
124+
// DataStore
125+
implementation(libs.androidx.datastore.preferences)
126+
127+
// Testing
128+
testImplementation(libs.junit)
129+
androidTestImplementation(libs.androidx.junit)
130+
androidTestImplementation(libs.androidx.espresso.core)
131+
androidTestImplementation(libs.androidx.ui.test.junit4)
132+
debugImplementation(libs.androidx.ui.tooling)
133+
debugImplementation(libs.androidx.ui.test.manifest)
134+
135+
// Core library desugaring
136+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
137+
}

app/google-services.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "1043319005211",
4+
"project_id": "smart-camera-omsjsr",
5+
"storage_bucket": "smart-camera-omsjsr.firebasestorage.app"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:1043319005211:android:952ca658d20e079711d8be",
11+
"android_client_info": {
12+
"package_name": "com.abhyanshchannelac.smartcamera"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyACFtqd2IIlRdi-zb6ENnYqr6ASXYzAXjs"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}

app/proguard-rules.pro

+21
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.abhyanshchannelac.smartcamera
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.abhyanshchannelac.smartcamera", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)