-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into docs/#50-README.md-update
- Loading branch information
Showing
341 changed files
with
12,133 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
name: Android Pull Request CI | ||
on: | ||
pull_request: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Add Local Properties | ||
env: | ||
BASE_URL: ${{ secrets.BASE_URL }} | ||
KAKAO_NATIVE_KEY: ${{ secrets.KAKAO_NATIVE_KEY }} | ||
run: | | ||
echo base.url=\"$BASE_URL\" >> ./local.properties | ||
- name: Add Local Properties | ||
env: | ||
BASE_URL: ${{ secrets.BASE_URL }} | ||
KAKAO_NATIVE_KEY: ${{ secrets.KAKAO_NATIVE_KEY }} | ||
run: | | ||
echo base.url=\"$BASE_URL\" >> ./local.properties | ||
echo kakao.native.key=\"KAKAO_NATIVE_KEY\" >> ./local.properties | ||
echo kakaoNativeKey=\"$KAKAO_NATIVE_KEY\" >> ./local.properties | ||
- name: Run ktlint | ||
run: ./gradlew ktlintCheck | ||
- name: Run ktlint | ||
run: ./gradlew ktlintCheck | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
package com.record.recordy | ||
|
||
import android.app.Application | ||
import android.util.Log | ||
import com.kakao.sdk.common.KakaoSdk | ||
import com.kakao.sdk.common.util.Utility | ||
import com.record.buildconfig.BuildConfig.KAKAO_NATIVE_KEY | ||
import dagger.hilt.android.HiltAndroidApp | ||
|
||
@HiltAndroidApp | ||
class RecordyApplication : Application() | ||
class RecordyApplication : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
setKakaoSdk() | ||
val keyHash = Utility.getKeyHash(this) | ||
Log.d("키해시", " $keyHash") | ||
} | ||
|
||
private fun setKakaoSdk() { | ||
KakaoSdk.init(this, KAKAO_NATIVE_KEY) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
import com.record.convention.extension.getLibrary | ||
import com.record.convention.extension.implementation | ||
import com.record.convention.extension.libs | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.dependencies | ||
|
||
class RecordyDataPlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply("recordy.android.library") | ||
apply("recordy.android.hilt") | ||
apply("org.jetbrains.kotlin.plugin.serialization") | ||
} | ||
|
||
dependencies { | ||
implementation(project(":core:network")) | ||
implementation(project(":core:common")) | ||
implementation(project(":core:model")) | ||
|
||
implementation(libs.getLibrary("kotlinx.serialization.json")) | ||
implementation(libs.getLibrary("retrofit.core")) | ||
implementation(libs.getLibrary("retrofit.kotlin.serialization")) | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
build-logic/convention/src/main/java/RecordyLocalPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
|
||
class RecordyLocalPlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply("recordy.android.library") | ||
apply("recordy.android.hilt") | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
build-logic/convention/src/main/java/RecordyRemotePlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import com.record.convention.extension.getLibrary | ||
import com.record.convention.extension.implementation | ||
import com.record.convention.extension.libs | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.dependencies | ||
|
||
class RecordyRemotePlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply("recordy.android.library") | ||
apply("recordy.android.hilt") | ||
apply("org.jetbrains.kotlin.plugin.serialization") | ||
} | ||
|
||
dependencies { | ||
implementation(project(":core:network")) | ||
|
||
implementation(libs.getLibrary("kotlinx.serialization.json")) | ||
implementation(libs.getLibrary("retrofit.core")) | ||
implementation(libs.getLibrary("retrofit.kotlin.serialization")) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ android { | |
|
||
dependencies { | ||
implementation(projects.core.common) | ||
implementation(libs.kakao.login) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
plugins { | ||
alias(libs.plugins.recordy.android.library) | ||
alias(libs.plugins.recordy.android.hilt) | ||
} | ||
|
||
android { | ||
namespace = "com.record.cache" | ||
} | ||
|
||
dependencies { | ||
implementation(libs.bundles.media3) | ||
} |
2 changes: 1 addition & 1 deletion
2
local/recordy/src/main/AndroidManifest.xml → core/cache/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
</manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.record.cache | ||
|
||
import android.content.Context | ||
import androidx.annotation.OptIn | ||
import androidx.media3.common.util.UnstableApi | ||
import androidx.media3.database.StandaloneDatabaseProvider | ||
import androidx.media3.datasource.cache.Cache | ||
import androidx.media3.datasource.cache.NoOpCacheEvictor | ||
import androidx.media3.datasource.cache.SimpleCache | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.android.qualifiers.ApplicationContext | ||
import dagger.hilt.components.SingletonComponent | ||
import java.io.File | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object CacheModule { | ||
|
||
@OptIn(UnstableApi::class) | ||
@Provides | ||
@Singleton | ||
fun provideSimpleCache(@ApplicationContext context: Context): Cache { | ||
val cacheDir = File(context.cacheDir, "media") | ||
val evictor = NoOpCacheEvictor() | ||
val databaseProvider = StandaloneDatabaseProvider(context) | ||
val simpleCache = SimpleCache(cacheDir, evictor, databaseProvider) | ||
return simpleCache | ||
} | ||
} |
Oops, something went wrong.