Skip to content

Commit 313c7a9

Browse files
authored
Add files via upload
1 parent 20fa7a2 commit 313c7a9

Some content is hidden

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

48 files changed

+1319
-915
lines changed

app/build.gradle

Lines changed: 80 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,81 @@
1-
plugins {
2-
id 'com.android.application'
3-
id 'org.jetbrains.kotlin.android'
4-
}
5-
6-
android {
7-
namespace 'com.example.project'
8-
compileSdk 33
9-
10-
defaultConfig {
11-
applicationId "com.example.project"
12-
minSdk 25
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.3.2'
41-
}
42-
packagingOptions {
43-
resources {
44-
excludes += '/META-INF/{AL2.0,LGPL2.1}'
45-
}
46-
}
47-
}
48-
49-
dependencies {
50-
51-
implementation 'androidx.core:core-ktx:1.8.0'
52-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
53-
implementation 'androidx.activity:activity-compose:1.5.1'
54-
implementation platform('androidx.compose:compose-bom:2022.10.00')
55-
implementation 'androidx.compose.ui:ui'
56-
implementation 'com.google.android.material:material:1.0.0'
57-
implementation 'androidx.compose.ui:ui-graphics'
58-
implementation 'androidx.compose.ui:ui-tooling-preview'
59-
implementation 'androidx.compose.material3:material3'
60-
implementation 'androidx.appcompat:appcompat:1.6.1'
61-
implementation 'com.google.android.material:material:1.5.0'
62-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
63-
implementation 'com.google.mlkit:translate:17.0.1'
64-
testImplementation 'junit:junit:4.13.2'
65-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
67-
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
68-
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
69-
debugImplementation 'androidx.compose.ui:ui-tooling'
70-
debugImplementation 'androidx.compose.ui:ui-test-manifest'
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
namespace 'com.example.project'
8+
compileSdk 33
9+
10+
defaultConfig {
11+
applicationId "com.example.project"
12+
minSdk 25
13+
targetSdk 33
14+
versionCode 1
15+
versionName "2.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.3.2'
41+
}
42+
packagingOptions {
43+
resources {
44+
excludes += '/META-INF/{AL2.0,LGPL2.1}'
45+
}
46+
}
47+
}
48+
49+
dependencies {
50+
51+
implementation 'androidx.core:core-ktx:1.8.0'
52+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
53+
implementation 'androidx.activity:activity-compose:1.5.1'
54+
implementation platform('androidx.compose:compose-bom:2022.10.00')
55+
implementation 'androidx.compose.ui:ui'
56+
implementation 'com.google.android.material:material:1.0.0'
57+
implementation 'androidx.compose.ui:ui-graphics'
58+
implementation 'androidx.compose.ui:ui-tooling-preview'
59+
implementation 'androidx.compose.material3:material3'
60+
implementation 'androidx.appcompat:appcompat:1.6.1'
61+
implementation 'com.google.android.material:material:1.5.0'
62+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
63+
64+
// implementing translation api
65+
66+
implementation 'com.google.mlkit:translate:17.0.1'
67+
68+
// implementing text recognition api
69+
70+
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:19.0.0'
71+
72+
//
73+
74+
testImplementation 'junit:junit:4.13.2'
75+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
76+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
77+
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
78+
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
79+
debugImplementation 'androidx.compose.ui:ui-tooling'
80+
debugImplementation 'androidx.compose.ui:ui-test-manifest'
7181
}

app/proguard-rules.pro

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +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.
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.
2121
#-renamesourcefileattribute SourceFile
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
package com.example.project
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.example.project", appContext.packageName)
23-
}
1+
package com.example.project
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.example.project", appContext.packageName)
23+
}
2424
}

app/src/main/AndroidManifest.xml

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
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-
<uses-permission android:name="android.permission.INTERNET"/>
5-
<application
6-
android:allowBackup="true"
7-
android:dataExtractionRules="@xml/data_extraction_rules"
8-
android:fullBackupContent="@xml/backup_rules"
9-
android:icon="@mipmap/logo"
10-
android:label="@string/app_name"
11-
android:usesCleartextTraffic="true"
12-
android:roundIcon="@mipmap/logo_round"
13-
android:supportsRtl="true"
14-
android:theme="@style/Theme.Project"
15-
tools:targetApi="31">
16-
<activity
17-
android:name=".MainActivity"
18-
android:exported="true"
19-
android:label="@string/app_name"
20-
android:theme="@style/Theme.Project">
21-
<intent-filter>
22-
<action android:name="android.intent.action.MAIN" />
23-
24-
<category android:name="android.intent.category.LAUNCHER" />
25-
</intent-filter>
26-
</activity>
27-
</application>
28-
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-feature
6+
android:name="android.hardware.camera"
7+
android:required="false" />
8+
9+
<uses-permission android:name="android.permission.INTERNET" />
10+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
11+
<uses-permission android:name="android.permission.CAMERA" />
12+
13+
<application
14+
android:allowBackup="true"
15+
android:dataExtractionRules="@xml/data_extraction_rules"
16+
android:fullBackupContent="@xml/backup_rules"
17+
android:icon="@mipmap/logo"
18+
android:label="@string/app_name"
19+
android:roundIcon="@mipmap/logo_round"
20+
android:supportsRtl="true"
21+
android:theme="@style/Theme.Project"
22+
android:usesCleartextTraffic="true"
23+
tools:targetApi="31" >
24+
<activity
25+
android:name=".MainActivity2"
26+
android:exported="false"
27+
android:theme="@style/Theme.AppCompat"
28+
/>
29+
<activity
30+
android:name=".MainActivity"
31+
android:exported="true"
32+
android:label="@string/app_name"
33+
android:theme="@style/Theme.AppCompat" >
34+
<intent-filter>
35+
<action android:name="android.intent.action.MAIN" />
36+
37+
<category android:name="android.intent.category.LAUNCHER" />
38+
</intent-filter>
39+
</activity>
40+
</application>
41+
2942
</manifest>

app/src/main/bg_full-playstore.png

90.6 KB
Loading

0 commit comments

Comments
 (0)