Skip to content

Commit

Permalink
저장소 최신화 (#85)
Browse files Browse the repository at this point in the history
* feat: 버전을 최신화한다

* ci: build workflow를 추가한다
  • Loading branch information
galcyurio authored Jan 28, 2023
1 parent bdb5e9e commit be18454
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 31 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
pull_request:
types: [ opened, reopened, synchronize ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- uses: android-actions/setup-android@v2
- name: gradlew 권한 설정
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
33 changes: 14 additions & 19 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
@file:Suppress("UnstableApiUsage")

plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
id("de.mannodermaus.android-junit5")
}

android {
compileSdk = 30
compileSdk = Version.compileSdk

defaultConfig {
applicationId = "camp.nextstep.edu.github"
minSdk = 21
targetSdk = 30
applicationId = "edu.nextstep.camp.calculator"
minSdk = Version.minSdk
targetSdk = Version.targetSdk
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["runnerBuilder"] =
"de.mannodermaus.junit5.AndroidJUnit5Builder"
}

buildTypes {
Expand All @@ -43,19 +42,15 @@ android {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
implementation("androidx.core:core-ktx:1.6.0")
implementation("androidx.appcompat:appcompat:1.3.1")
implementation("com.google.android.material:material:1.4.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib:${Version.kotlin}")
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.0")
implementation("com.google.android.material:material:1.7.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.fragment:fragment-ktx:1.5.5")

testImplementation("org.junit.jupiter:junit-jupiter:$junit5Version")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:$junit5Version") // junit4 지원
testImplementation("junit:junit:4.13.2")
testImplementation("com.google.truth:truth:1.1.3")
androidTestImplementation("androidx.test.ext:junit:1.1.3")
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
androidTestImplementation("org.junit.jupiter:junit-jupiter-api:$junit5Version")
androidTestImplementation("de.mannodermaus.junit5:android-test-core:1.2.2")
androidTestRuntimeOnly("de.mannodermaus.junit5:android-test-runner:1.2.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
10 changes: 2 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ buildscript {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jlleitschuh.gradle:ktlint-gradle:10.0.0")
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1")

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath("com.android.tools.build:gradle:${Version.androidGradlePlugin}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Version.kotlin}")
}
}

Expand All @@ -21,7 +16,6 @@ allprojects {
google()
mavenCentral()
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
}

tasks.register("clean", Delete::class) {
Expand Down
9 changes: 7 additions & 2 deletions buildSrc/src/main/kotlin/Configs.kt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
const val kotlinVersion = "1.5.21"
const val junit5Version = "5.7.2"
object Version {
const val androidGradlePlugin = "7.4.0"
const val kotlin = "1.8.0"
const val compileSdk = 33
const val minSdk = 26
const val targetSdk = 33
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Aug 31 08:46:21 KST 2021
#Sat Jan 28 22:32:26 KST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit be18454

Please sign in to comment.