Skip to content

Commit 86df529

Browse files
committed
[Init] Project Setting
1 parent 8a1de5d commit 86df529

37 files changed

+1008
-0
lines changed

Diff for: .gitignore

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

Diff for: app/.gitignore

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

Diff for: 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.soi.moya'
8+
compileSdk 33
9+
10+
defaultConfig {
11+
applicationId "com.soi.moya"
12+
minSdk 24
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.8.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+
}

Diff for: 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.soi.moya
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.soi.moya", appContext.packageName)
23+
}
24+
}

Diff for: app/src/main/AndroidManifest.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
<application
6+
android:allowBackup="true"
7+
android:dataExtractionRules="@xml/data_extraction_rules"
8+
android:fullBackupContent="@xml/backup_rules"
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:supportsRtl="true"
12+
android:theme="@style/Theme.Moya"
13+
tools:targetApi="31">
14+
<activity
15+
android:name=".MainActivity"
16+
android:exported="true">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
20+
<category android:name="android.intent.category.LAUNCHER" />
21+
</intent-filter>
22+
</activity>
23+
</application>
24+
25+
</manifest>

Diff for: app/src/main/java/com/soi/moya/MainActivity.kt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.soi.moya
2+
3+
import androidx.appcompat.app.AppCompatActivity
4+
import android.os.Bundle
5+
6+
class MainActivity : AppCompatActivity() {
7+
override fun onCreate(savedInstanceState: Bundle?) {
8+
super.onCreate(savedInstanceState)
9+
setContentView(R.layout.activity_main)
10+
}
11+
}

0 commit comments

Comments
 (0)