Skip to content

Commit

Permalink
initial commit - v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
debojit16mitra committed Dec 14, 2024
1 parent 79b5f0e commit 0d66cb0
Show file tree
Hide file tree
Showing 66 changed files with 3,422 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Debojit Mitra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
52 changes: 47 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,29 +1,68 @@
import java.util.Properties

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.google.gms.google.services)
}

val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localProperties.load(localPropertiesFile.inputStream())
}

android {
namespace = "com.bunny.ml.smartchef"
compileSdk = 34
compileSdk = 35

defaultConfig {
applicationId = "com.bunny.ml.smartchef"
minSdk = 30
targetSdk = 34
targetSdk = 35
versionCode = 1
versionName = "1.0"
versionName = "1.0.1"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

buildConfigField(
type = "String",
name = "BASE_URL_CHAT",
value = "\"${localProperties.getProperty("BASE_URL_CHAT", "")}\""
)
buildConfigField(
type = "String",
name = "API_BASE_URL",
value = "\"${localProperties.getProperty("API_BASE_URL", "")}\""
)
}

signingConfigs {
create("release") {
storeFile = file("D:\\Documents_And_Works\\ReleaseKeys\\SmartChef\\releaseKeys.jks")
storePassword = "Debojit16@"
keyAlias = "key0"
keyPassword = "Debojit16@"
}
}

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("release")
}

debug {
buildFeatures {
buildConfig = true
}
applicationIdSuffix = ".debug"
isDebuggable = true
resValue("string", "app_name", "SmartChef! Debug")
}
}
compileOptions {
Expand Down Expand Up @@ -52,7 +91,9 @@ dependencies {
implementation("com.google.android.gms:play-services-auth:21.2.0")
implementation("com.google.firebase:firebase-appcheck-playintegrity")


implementation("androidx.core:core-splashscreen:1.0.1")
implementation("androidx.work:work-runtime:2.10.0")
implementation("com.google.guava:guava:32.1.3-android") //for update worker

implementation("de.hdodenhof:circleimageview:3.1.0")
implementation("com.github.bumptech.glide:glide:4.16.0")
Expand All @@ -61,6 +102,7 @@ dependencies {
exclude(group = "glide-parent")
}

implementation("com.google.code.gson:gson:2.11.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")

implementation("com.airbnb.android:lottie:6.6.0")
Expand Down
17 changes: 16 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

#glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}

# Keep models package
-keep class com.bunny.ml.smartchef.models.** { *; }




14 changes: 14 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

<application
android:allowBackup="true"
Expand All @@ -21,6 +23,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.SmartChef"
android:usesCleartextTraffic="true"
tools:targetApi="31">
<activity
android:name=".activities.RecipeViewActivity"
Expand Down Expand Up @@ -50,6 +53,7 @@
android:exported="true" />
<activity
android:name=".SplashActivity"
android:theme="@style/Theme.SmartChef.SplashScreen"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -60,6 +64,16 @@
<activity
android:name=".MainActivity"
android:exported="false" />

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
</application>

</manifest>
1 change: 0 additions & 1 deletion app/src/main/assets/ai_chat.json

This file was deleted.

1 change: 1 addition & 0 deletions app/src/main/assets/smiley.json

Large diffs are not rendered by default.

Loading

0 comments on commit 0d66cb0

Please sign in to comment.