Skip to content

Commit 69e9db8

Browse files
authored
Merge pull request #14 from victory316/develop
Develop
2 parents 97039ef + 3a29689 commit 69e9db8

24 files changed

Lines changed: 174 additions & 45 deletions

.idea/appInsightsSettings.xml

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetDropDown.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/migrations.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,50 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
43

54
android {
6-
compileSdkVersion 29
7-
buildToolsVersion "29.0.2"
5+
compileSdkVersion 34
86

97
defaultConfig {
108
applicationId "com.example.algorithmstudy"
119
minSdkVersion 21
12-
targetSdkVersion 29
10+
targetSdkVersion 34
1311
versionCode 1
1412
versionName "1.0"
1513

1614
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1715
}
1816

17+
buildFeatures {
18+
viewBinding = true
19+
}
20+
1921
buildTypes {
2022
release {
2123
minifyEnabled false
2224
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2325
}
2426
}
27+
namespace 'com.example.algorithmstudy'
2528

29+
compileOptions {
30+
sourceCompatibility = JavaVersion.VERSION_17
31+
targetCompatibility = JavaVersion.VERSION_17
32+
}
33+
kotlinOptions {
34+
jvmTarget = JavaVersion.VERSION_17.toString()
35+
}
36+
kotlin {
37+
jvmToolchain(17)
38+
}
2639
}
2740

2841
dependencies {
2942
implementation fileTree(dir: 'libs', include: ['*.jar'])
3043
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
31-
implementation 'androidx.appcompat:appcompat:1.1.0'
32-
implementation 'androidx.core:core-ktx:1.2.0'
33-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
34-
testImplementation 'junit:junit:4.12'
35-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
36-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
44+
implementation 'androidx.appcompat:appcompat:1.6.1'
45+
implementation 'androidx.core:core-ktx:1.12.0'
46+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
47+
testImplementation 'junit:junit:4.13.2'
48+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
49+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
3750
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.algorithmstudy">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<application
65
android:allowBackup="true"
@@ -9,7 +8,9 @@
98
android:roundIcon="@mipmap/ic_launcher_round"
109
android:supportsRtl="true"
1110
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
11+
<activity
12+
android:name=".MainActivity"
13+
android:exported="true">
1314
<intent-filter>
1415
<action android:name="android.intent.action.MAIN" />
1516

app/src/main/java/com/example/algorithmstudy/pattern/creation/abstractfactory/Barracks.kt

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.example.algorithmstudy.pattern.creation.abstractfactory
22

33
interface Building<in UnitType, out ProducedUnit>
4-
where UnitType : Enum<*>, ProducedUnit : Unit {
4+
where UnitType : Enum<*>, ProducedUnit : GameUnit {
55

66
fun build(type: UnitType): ProducedUnit
77
}

0 commit comments

Comments
 (0)