]> Git — Sourcephile - tmp/julm/android.git/blob - android/app/build.gradle
appropriateness: enable `git-hooks`
[tmp/julm/android.git] / android / app / build.gradle
1 plugins {
2 alias(libs.plugins.android.application)
3 alias(libs.plugins.jetbrains.kotlin.android)
4 }
5
6
7 android {
8 namespace 'com.lynx.javaemptyproject'
9 compileSdk 34
10 lint {
11 checkReleaseBuilds = false
12 }
13
14 defaultConfig {
15 applicationId "com.lynx.javaemptyproject"
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 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 compose true
42 }
43 composeOptions {
44 kotlinCompilerExtensionVersion '1.5.1'
45 }
46 packaging {
47 resources {
48 excludes += '/META-INF/{AL2.0,LGPL2.1}'
49 }
50 }
51 }
52
53 dependencies {
54
55 implementation libs.androidx.core.ktx
56 implementation libs.androidx.lifecycle.runtime.ktx
57 implementation libs.androidx.activity.compose
58 implementation platform(libs.androidx.compose.bom)
59 implementation libs.androidx.ui
60 implementation libs.androidx.ui.graphics
61 implementation libs.androidx.ui.tooling.preview
62 implementation libs.androidx.material3
63 implementation libs.androidx.appcompat
64 testImplementation libs.junit
65 androidTestImplementation libs.androidx.junit
66 androidTestImplementation libs.androidx.espresso.core
67 androidTestImplementation platform(libs.androidx.compose.bom)
68 androidTestImplementation libs.androidx.ui.test.junit4
69 debugImplementation libs.androidx.ui.tooling
70 debugImplementation libs.androidx.ui.test.manifest
71 // lynx dependencies
72 implementation "org.lynxsdk.lynx:lynx:3.4.1"
73 implementation "org.lynxsdk.lynx:lynx-jssdk:3.4.1"
74 implementation "org.lynxsdk.lynx:lynx-trace:3.4.1"
75 implementation "org.lynxsdk.lynx:primjs:2.14.1"
76
77 // integrating image-service
78 implementation "org.lynxsdk.lynx:lynx-service-image:3.4.1"
79
80 // image-service dependencies, if not added, images cannot be loaded; if the host APP needs to use other image libraries, you can customize the image-service and remove this dependency
81 implementation "com.facebook.fresco:fresco:2.3.0"
82 implementation "com.facebook.fresco:animated-gif:2.3.0"
83 implementation "com.facebook.fresco:animated-webp:2.3.0"
84 implementation "com.facebook.fresco:webpsupport:2.3.0"
85 implementation "com.facebook.fresco:animated-base:2.3.0"
86
87 implementation "com.squareup.okhttp3:okhttp:4.9.0"
88
89 // integrating log-service
90 implementation "org.lynxsdk.lynx:lynx-service-log:3.4.1"
91
92 // integrating http-service
93 implementation "org.lynxsdk.lynx:lynx-service-http:3.4.1"
94
95 // add devtool's dependencies
96 implementation "org.lynxsdk.lynx:lynx-devtool:3.4.1"
97 implementation "org.lynxsdk.lynx:lynx-service-devtool:3.4.1"
98
99 // add xelement's dependencies
100 implementation "org.lynxsdk.lynx:xelement:3.4.1"
101 implementation "org.lynxsdk.lynx:xelement-input:3.4.1"
102 }