Skip to content

Commit cc01434

Browse files
committed
Added oo.ai assistant
1 parent e7a4d0a commit cc01434

8 files changed

Lines changed: 59 additions & 0 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@
107107
android:noHistory="true"
108108
android:theme="@style/AppTheme.Transparent" />
109109

110+
<activity
111+
android:name=".assistant.DelphiAssistant"
112+
android:excludeFromRecents="true"
113+
android:exported="false"
114+
android:label="@string/delphi"
115+
android:launchMode="singleTop"
116+
android:noHistory="true"
117+
android:theme="@style/AppTheme.Transparent" />
118+
110119
<activity
111120
android:name=".assistant.DoubaoAssistant"
112121
android:excludeFromRecents="true"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.wstxda.switchai.assistant
2+
3+
import android.content.ComponentName
4+
import android.content.Intent
5+
import com.wstxda.switchai.R
6+
import com.wstxda.switchai.activity.AssistantActivity
7+
import com.wstxda.switchai.logic.openAssistant
8+
import com.wstxda.switchai.utils.AssistantProperties
9+
10+
class DelphiAssistant : AssistantActivity() {
11+
12+
companion object : AssistantProperties {
13+
override val packageName = "ai.oo.delphi"
14+
}
15+
16+
override fun onCreateInternal() {
17+
openAssistant(
18+
intents = listOf(createDelphiIntent()),
19+
errorMessage = R.string.assistant_application_not_found
20+
)
21+
}
22+
23+
private fun createDelphiIntent() = Intent().apply {
24+
component = ComponentName(
25+
Companion.packageName, "ai.oo.delphi.MainActivity"
26+
)
27+
}
28+
}

app/src/main/java/com/wstxda/switchai/utils/AssistantsMap.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ object AssistantsMap {
1111
"claude_assistant" to ClaudeAssistant::class.java,
1212
"copilot_assistant" to CopilotAssistant::class.java,
1313
"deepseek_assistant" to DeepSeekAssistant::class.java,
14+
"delphi_assistant" to DelphiAssistant::class.java,
1415
"doubao_assistant" to DoubaoAssistant::class.java,
1516
"gemini_assistant" to GeminiAssistant::class.java,
1617
"grok_assistant" to GrokAssistant::class.java,
@@ -38,6 +39,7 @@ object AssistantsMap {
3839
"claude_assistant" to "com.anthropic.claude",
3940
"copilot_assistant" to "com.microsoft.copilot",
4041
"deepseek_assistant" to "com.deepseek.chat",
42+
"delphi_assistant" to "ai.oo.delphi",
4143
"doubao_assistant" to "com.larus.nova",
4244
"gemini_assistant" to "com.google.android.apps.bard",
4345
"grok_assistant" to "ai.x.grok",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:tint="?attr/colorControlNormal"
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
<path
8+
android:pathData="M12 3A9 9 0 1 0 12 21 9 9 0 1 0 12 3z"
9+
android:strokeWidth="2"
10+
android:strokeColor="@android:color/white" />
11+
<path
12+
android:fillColor="@android:color/white"
13+
android:pathData="M12 9A3 3 0 1 0 12 15 3 3 0 1 0 12 9z" />
14+
</vector>

app/src/main/res/values-ar/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<string name="claude">Claude</string>
1313
<string name="copilot">Copilot</string>
1414
<string name="deepseek">DeepSeek</string>
15+
<string name="delphi">oo.ai</string>
1516
<string name="doubao">Doubao</string>
1617
<string name="gemini">Gemini</string>
1718
<string name="grok">Grok</string>

app/src/main/res/values-pt-rBR/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<string name="claude">Claude</string>
1313
<string name="copilot">Copilot</string>
1414
<string name="deepseek">DeepSeek</string>
15+
<string name="delphi">oo.ai</string>
1516
<string name="doubao">Doubao</string>
1617
<string name="gemini">Gemini</string>
1718
<string name="grok">Grok</string>

app/src/main/res/values/arrays.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<item>@string/marusya</item>
2121
<item>@string/meta</item>
2222
<item>@string/minimax</item>
23+
<item>@string/delphi</item>
2324
<item>@string/perplexity</item>
2425
<item>@string/qingyan</item>
2526
<item>@string/qwen</item>
@@ -47,6 +48,7 @@
4748
<item>marusya_assistant</item>
4849
<item>meta_assistant</item>
4950
<item>minimax_assistant</item>
51+
<item>delphi_assistant</item>
5052
<item>perplexity_assistant</item>
5153
<item>qingyan_assistant</item>
5254
<item>qwen_assistant</item>
@@ -76,6 +78,7 @@
7678
<item>marusya_assistant</item>
7779
<item>meta_assistant</item>
7880
<item>minimax_assistant</item>
81+
<item>delphi_assistant</item>
7982
<item>perplexity_assistant</item>
8083
<item>qingyan_assistant</item>
8184
<item>qwen_assistant</item>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<string name="claude">Claude</string>
1414
<string name="copilot">Copilot</string>
1515
<string name="deepseek">DeepSeek</string>
16+
<string name="delphi">oo.ai</string>
1617
<string name="doubao">Doubao</string>
1718
<string name="gemini">Gemini</string>
1819
<string name="grok">Grok</string>

0 commit comments

Comments
 (0)