Skip to content

Commit

Permalink
Merge pull request #280 from skydoves/feature/chatgpt-api
Browse files Browse the repository at this point in the history
Migrate to OpenAI APIs
  • Loading branch information
skydoves authored Apr 3, 2024
2 parents 539a414 + 2921355 commit 7516c2f
Show file tree
Hide file tree
Showing 123 changed files with 49,460 additions and 11,775 deletions.
18 changes: 5 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ gen/
out/

# Gradle files
/.idea
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties
secrets.properties

# Proguard folder generated by Eclipse
proguard/
Expand All @@ -35,29 +35,21 @@ captures/

# Intellij
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries
/.idea/*
!.idea/codeInsightSettings.xml
app/.idea/

# Mac
*.DS_Store

# Keystore files
keystore.properties
/release
*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json
*.google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
# Temporary API docs
docs/api
111 changes: 70 additions & 41 deletions README.md

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,6 +27,7 @@ plugins {
id("kotlin-parcelize")
id("dagger.hilt.android.plugin")
id("com.google.devtools.ksp")
id(libs.plugins.google.secrets.get().pluginId)
id(libs.plugins.baseline.profile.get().pluginId)
}

Expand Down Expand Up @@ -82,6 +83,11 @@ android {
}
}

secrets {
propertiesFileName = "secrets.properties"
defaultPropertiesFileName = "secrets.defaults.properties"
}

dependencies {
// core modules
implementation(project(":core-designsystem"))
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/skydoves/chatgpt/ChatGPTApp.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/skydoves/chatgpt/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,15 +18,13 @@ package com.skydoves.chatgpt.initializer

import android.content.Context
import androidx.startup.Initializer
import com.skydoves.chatgpt.core.network.initializer.NetworkInitializer
import com.skydoves.chatgpt.feature.chat.initializer.StreamChatInitializer

class AppInitializer : Initializer<Unit> {

override fun create(context: Context) = Unit

override fun dependencies(): List<Class<out Initializer<*>>> = listOf(
StreamChatInitializer::class.java,
NetworkInitializer::class.java
StreamChatInitializer::class.java
)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/skydoves/chatgpt/ui/ChatGPTMain.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Designed and developed by 2022 skydoves (Jaewoong Eum)
* Designed and developed by 2024 skydoves (Jaewoong Eum)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/backup_rules.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2022 skydoves (Jaewoong Eum)
Designed and developed by 2024 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 7516c2f

Please sign in to comment.