Skip to content

Commit c8fcbfb

Browse files
committed
init project
0 parents  commit c8fcbfb

37 files changed

+1055
-0
lines changed

.gitignore

+276
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
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
16+
17+
# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin,java,macos,windows
18+
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio,kotlin,java,macos,windows
19+
20+
### Android ###
21+
# Gradle files
22+
.gradle/
23+
build/
24+
25+
# Local configuration file (sdk path, etc)
26+
local.properties
27+
28+
# Log/OS Files
29+
*.log
30+
31+
# Android Studio generated files and folders
32+
captures/
33+
.externalNativeBuild/
34+
.cxx/
35+
*.apk
36+
output.json
37+
38+
# IntelliJ
39+
*.iml
40+
.idea/
41+
misc.xml
42+
deploymentTargetDropDown.xml
43+
render.experimental.xml
44+
45+
# Keystore files
46+
*.jks
47+
*.keystore
48+
49+
# Google Services (e.g. APIs or Firebase)
50+
google-services.json
51+
52+
# Android Profiling
53+
*.hprof
54+
55+
### Android Patch ###
56+
gen-external-apklibs
57+
58+
# Replacement of .externalNativeBuild directories introduced
59+
# with Android Studio 3.5.
60+
61+
### Java ###
62+
# Compiled class file
63+
*.class
64+
65+
# Log file
66+
67+
# BlueJ files
68+
*.ctxt
69+
70+
# Mobile Tools for Java (J2ME)
71+
.mtj.tmp/
72+
73+
# Package Files #
74+
*.jar
75+
*.war
76+
*.nar
77+
*.ear
78+
*.zip
79+
*.tar.gz
80+
*.rar
81+
82+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
83+
hs_err_pid*
84+
replay_pid*
85+
86+
### Kotlin ###
87+
# Compiled class file
88+
89+
# Log file
90+
91+
# BlueJ files
92+
93+
# Mobile Tools for Java (J2ME)
94+
95+
# Package Files #
96+
97+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
98+
99+
### macOS ###
100+
# General
101+
.DS_Store
102+
.AppleDouble
103+
.LSOverride
104+
105+
# Icon must end with two \r
106+
Icon
107+
108+
109+
# Thumbnails
110+
._*
111+
112+
# Files that might appear in the root of a volume
113+
.DocumentRevisions-V100
114+
.fseventsd
115+
.Spotlight-V100
116+
.TemporaryItems
117+
.Trashes
118+
.VolumeIcon.icns
119+
.com.apple.timemachine.donotpresent
120+
121+
# Directories potentially created on remote AFP share
122+
.AppleDB
123+
.AppleDesktop
124+
Network Trash Folder
125+
Temporary Items
126+
.apdisk
127+
128+
### macOS Patch ###
129+
# iCloud generated files
130+
*.icloud
131+
132+
### Windows ###
133+
# Windows thumbnail cache files
134+
Thumbs.db
135+
Thumbs.db:encryptable
136+
ehthumbs.db
137+
ehthumbs_vista.db
138+
139+
# Dump file
140+
*.stackdump
141+
142+
# Folder config file
143+
[Dd]esktop.ini
144+
145+
# Recycle Bin used on file shares
146+
$RECYCLE.BIN/
147+
148+
# Windows Installer files
149+
*.cab
150+
*.msi
151+
*.msix
152+
*.msm
153+
*.msp
154+
155+
# Windows shortcuts
156+
*.lnk
157+
158+
### AndroidStudio ###
159+
# Covers files to be ignored for android development using Android Studio.
160+
161+
# Built application files
162+
*.ap_
163+
*.aab
164+
165+
# Files for the ART/Dalvik VM
166+
*.dex
167+
168+
# Java class files
169+
170+
# Generated files
171+
bin/
172+
gen/
173+
out/
174+
175+
# Gradle files
176+
.gradle
177+
178+
# Signing files
179+
.signing/
180+
181+
# Local configuration file (sdk path, etc)
182+
183+
# Proguard folder generated by Eclipse
184+
proguard/
185+
186+
# Log Files
187+
188+
# Android Studio
189+
/*/build/
190+
/*/local.properties
191+
/*/out
192+
/*/*/build
193+
/*/*/production
194+
.navigation/
195+
*.ipr
196+
*~
197+
*.swp
198+
199+
# Keystore files
200+
201+
# Google Services (e.g. APIs or Firebase)
202+
# google-services.json
203+
204+
# Android Patch
205+
206+
# External native build folder generated in Android Studio 2.2 and later
207+
.externalNativeBuild
208+
209+
# NDK
210+
obj/
211+
212+
# IntelliJ IDEA
213+
*.iws
214+
/out/
215+
216+
# User-specific configurations
217+
.idea/caches/
218+
.idea/libraries/
219+
.idea/shelf/
220+
.idea/workspace.xml
221+
.idea/tasks.xml
222+
.idea/.name
223+
.idea/compiler.xml
224+
.idea/copyright/profiles_settings.xml
225+
.idea/encodings.xml
226+
.idea/misc.xml
227+
.idea/modules.xml
228+
.idea/scopes/scope_settings.xml
229+
.idea/dictionaries
230+
.idea/vcs.xml
231+
.idea/jsLibraryMappings.xml
232+
.idea/datasources.xml
233+
.idea/dataSources.ids
234+
.idea/sqlDataSources.xml
235+
.idea/dynamic.xml
236+
.idea/uiDesigner.xml
237+
.idea/assetWizardSettings.xml
238+
.idea/gradle.xml
239+
.idea/jarRepositories.xml
240+
.idea/navEditor.xml
241+
242+
# Legacy Eclipse project files
243+
.classpath
244+
.project
245+
.cproject
246+
.settings/
247+
248+
# Mobile Tools for Java (J2ME)
249+
250+
# Package Files #
251+
252+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
253+
254+
## Plugin-specific files:
255+
256+
# mpeltonen/sbt-idea plugin
257+
.idea_modules/
258+
259+
# JIRA plugin
260+
atlassian-ide-plugin.xml
261+
262+
# Mongo Explorer plugin
263+
.idea/mongoSettings.xml
264+
265+
# Crashlytics plugin (for Android Studio and IntelliJ)
266+
com_crashlytics_export_strings.xml
267+
crashlytics.properties
268+
crashlytics-build.properties
269+
fabric.properties
270+
271+
### AndroidStudio Patch ###
272+
273+
!/gradle/wrapper/gradle-wrapper.jar
274+
275+
# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio,kotlin,java,macos,windows
276+

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
namespace 'com.example.velogandroid'
8+
compileSdk 33
9+
10+
defaultConfig {
11+
applicationId "com.example.velogandroid"
12+
minSdk 26
13+
targetSdk 33
14+
versionCode 1
15+
versionName "1.0"
16+
17+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
}
30+
kotlinOptions {
31+
jvmTarget = '1.8'
32+
}
33+
}
34+
35+
dependencies {
36+
37+
implementation 'androidx.core:core-ktx:1.7.0'
38+
implementation 'androidx.appcompat:appcompat:1.6.1'
39+
implementation 'com.google.android.material:material:1.9.0'
40+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
41+
testImplementation 'junit:junit:4.13.2'
42+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
43+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
44+
}

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

0 commit comments

Comments
 (0)