Skip to content

Commit df3f66d

Browse files
committed
Initial commit
0 parents  commit df3f66d

File tree

114 files changed

+4335
-0
lines changed

Some content is hidden

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

114 files changed

+4335
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 15 additions & 0 deletions
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

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/compiler.xml

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

.idea/gradle.xml

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

.idea/misc.xml

Lines changed: 40 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: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
id("kotlin-parcelize")
5+
6+
id 'kotlin-kapt'
7+
id 'androidx.navigation.safeargs.kotlin'
8+
id 'dagger.hilt.android.plugin'
9+
}
10+
apply from: 'obfuscationUtils.gradle'
11+
12+
android {
13+
14+
compileSdk 31
15+
16+
defaultConfig {
17+
applicationId "com.tugceaksoy.vitrinapp"
18+
minSdk 21
19+
targetSdk 32
20+
versionCode 1
21+
versionName "1.0"
22+
buildConfigField 'String', 'SERVICE_BASE_URL', obfuscateJavaToByteString("https://www.vitrinova.com/api/v2/")
23+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24+
25+
}
26+
27+
buildTypes {
28+
release {
29+
minifyEnabled false
30+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
31+
}
32+
}
33+
compileOptions {
34+
sourceCompatibility JavaVersion.VERSION_1_8
35+
targetCompatibility JavaVersion.VERSION_1_8
36+
}
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
buildFeatures {
41+
viewBinding true
42+
}
43+
}
44+
45+
dependencies {
46+
47+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
48+
def hiltVersion = "2.41"
49+
def hiltKaptVersion = "2.40.5"
50+
def hiltLifecycleViewModelVersion = "1.0.0-alpha03"
51+
def kaptHiltCompilerVersion = "1.0.0"
52+
def nav_version = "2.4.2"
53+
def glide_version = "4.13.0"
54+
def retrofitVersion = "2.9.0"
55+
def retrofitConverterGsonVersion = "2.9.0"
56+
def okhttpVersion = "4.9.0"
57+
def okhttpLoggingInterceptorVersion = "4.8.1"
58+
def lifecycleExtensions = "2.2.0"
59+
def lifecycleLivedataKtx = "2.4.1"
60+
def lifecycleViewModelKtx = "2.4.1"
61+
def lifecycleRuntime = "2.5.0-alpha06"
62+
def lottieVersion = "5.2.0"
63+
64+
implementation "com.airbnb.android:lottie:$lottieVersion"
65+
implementation 'androidx.core:core-ktx:1.8.0'
66+
implementation 'androidx.appcompat:appcompat:1.4.2'
67+
implementation 'com.google.android.material:material:1.6.1'
68+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
69+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
70+
testImplementation 'junit:junit:4.+'
71+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
72+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
73+
74+
implementation 'com.github.jama5262:CarouselView:1.2.2'
75+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
76+
implementation 'androidx.core:core-splashscreen:1.0.0-rc01'
77+
78+
implementation "com.google.dagger:hilt-android:$hiltVersion"
79+
kapt "com.google.dagger:hilt-android-compiler:$hiltKaptVersion"
80+
implementation "androidx.hilt:hilt-compiler:$kaptHiltCompilerVersion"
81+
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hiltLifecycleViewModelVersion"
82+
83+
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleRuntime"
84+
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleExtensions"
85+
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleLivedataKtx"
86+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleViewModelKtx"
87+
88+
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
89+
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
90+
91+
implementation "com.github.bumptech.glide:glide:$glide_version"
92+
annotationProcessor "com.github.bumptech.glide:compiler:$glide_version"
93+
94+
// Kotlin components
95+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10"
96+
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"
97+
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0"
98+
99+
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
100+
implementation "com.squareup.retrofit2:converter-gson:$retrofitConverterGsonVersion"
101+
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
102+
implementation "com.squareup.okhttp3:logging-interceptor:$okhttpLoggingInterceptorVersion"
103+
104+
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleRuntime"
105+
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleExtensions"
106+
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleLivedataKtx"
107+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleViewModelKtx"
108+
109+
110+
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
111+
implementation "com.squareup.retrofit2:retrofit:2.9.0"
112+
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
113+
114+
//SnapHelper
115+
implementation 'com.github.rubensousa:gravitysnaphelper:2.2.1'
116+
}
117+
kapt {
118+
correctErrorTypes true
119+
}

app/obfuscationUtils.gradle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
class RandomUtils {
2+
static def randomNumber = new Random(System.currentTimeMillis())
3+
}
4+
5+
6+
static String obfuscateJavaToByteString(String string) {
7+
8+
byte[] b = string.getBytes();
9+
int c = b.length;
10+
StringBuilder sb = new StringBuilder();
11+
sb.append("(new Object() {");
12+
sb.append("int t;");
13+
sb.append("public String toString() {");
14+
sb.append("byte[] buf = new byte[");
15+
sb.append(c);
16+
sb.append("];");
17+
18+
for (int i = 0; i < c; ++i) {
19+
int t = RandomUtils.randomNumber.nextInt();
20+
int f = RandomUtils.randomNumber.nextInt(24) + 1;
21+
t = (t & ~(0xff << f)) | (b[i] << f);
22+
sb.append("t = ");
23+
sb.append(t);
24+
sb.append(";");
25+
sb.append("buf[");
26+
sb.append(i);
27+
sb.append("] = (byte) (t >>> ");
28+
sb.append(f);
29+
sb.append(");");
30+
}
31+
32+
sb.append("return new String(buf);");
33+
sb.append("}}.toString())");
34+
return sb.toString();
35+
}
36+
37+
ext.obfuscateJavaToByteString = this.&obfuscateJavaToByteString

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

0 commit comments

Comments
 (0)