Skip to content

Commit 7809f2e

Browse files
committed
Initial commit
0 parents  commit 7809f2e

File tree

86 files changed

+2463
-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.

86 files changed

+2463
-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/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

+5
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/gradle.xml

+19
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/misc.xml

+9
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

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
plugins {
2+
id "com.android.application"
3+
id "org.jetbrains.kotlin.android"
4+
id "org.jetbrains.kotlin.plugin.serialization" version "1.7.10"
5+
id "kotlin-kapt"
6+
}
7+
8+
android {
9+
namespace "com.troplo.privateuploader"
10+
compileSdk 34
11+
12+
defaultConfig {
13+
applicationId "com.troplo.privateuploader"
14+
minSdk 24
15+
targetSdk 34
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
}
21+
22+
buildTypes {
23+
release {
24+
minifyEnabled false
25+
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
26+
}
27+
}
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_1_8
30+
targetCompatibility JavaVersion.VERSION_1_8
31+
}
32+
kotlinOptions {
33+
jvmTarget = "1.8"
34+
}
35+
buildFeatures {
36+
viewBinding true
37+
}
38+
sourceSets {
39+
main {
40+
res {
41+
srcDirs 'src/main/res','src/main/res/layout/chats', 'src/main/res/layout/core'
42+
}
43+
}
44+
}
45+
}
46+
47+
dependencies {
48+
implementation "com.android.support:multidex:1.0.3"
49+
implementation "androidx.core:core-ktx:1.10.1"
50+
implementation "androidx.appcompat:appcompat:1.6.1"
51+
implementation "com.google.android.material:material:1.9.0"
52+
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
53+
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1"
54+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
55+
implementation "androidx.navigation:navigation-fragment-ktx:2.6.0"
56+
implementation "androidx.navigation:navigation-ui-ktx:2.6.0"
57+
implementation "com.squareup.retrofit2:retrofit:2.9.0"
58+
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
59+
implementation "com.squareup.moshi:moshi:1.12.0"
60+
implementation "com.squareup.moshi:moshi-kotlin:1.12.0"
61+
implementation 'com.github.bumptech.glide:glide:4.15.1'
62+
implementation "com.squareup.okhttp3:logging-interceptor:4.9.1"
63+
implementation "androidx.core:core-ktx:1.10.1"
64+
implementation "com.google.code.gson:gson:2.10.1"
65+
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
66+
implementation "io.socket:socket.io-client:2.0.0"
67+
implementation "com.google.android.gms:play-services-awareness:19.0.1"
68+
implementation 'androidx.annotation:annotation:1.6.0'
69+
testImplementation "junit:junit:4.13.2"
70+
androidTestImplementation "androidx.test.ext:junit:1.1.5"
71+
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
72+
}

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.troplo.privateuploader
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.troplo.privateuploader", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
7+
8+
<application
9+
android:allowBackup="true"
10+
android:dataExtractionRules="@xml/data_extraction_rules"
11+
android:fullBackupContent="@xml/backup_rules"
12+
android:icon="@mipmap/ic_launcher"
13+
android:label="@string/app_name"
14+
android:roundIcon="@mipmap/ic_launcher_round"
15+
android:supportsRtl="true"
16+
android:theme="@style/Theme.PrivateUploader"
17+
android:usesCleartextTraffic="true"
18+
tools:targetApi="31">
19+
<activity
20+
android:name=".ui.login.LoginActivity"
21+
android:exported="false"
22+
android:label="@string/title_activity_login" />
23+
<activity
24+
android:name=".MainActivity"
25+
android:exported="true"
26+
android:label="@string/app_name">
27+
<intent-filter>
28+
<action android:name="android.intent.action.MAIN" />
29+
30+
<category android:name="android.intent.category.LAUNCHER" />
31+
</intent-filter>
32+
</activity>
33+
</application>
34+
35+
</manifest>

0 commit comments

Comments
 (0)