File tree Expand file tree Collapse file tree 8 files changed +60
-0
lines changed
Expand file tree Collapse file tree 8 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 278278 android : noHistory =" true"
279279 android : theme =" @style/AppTheme.Transparent" />
280280
281+ <activity
282+ android : name =" .assistant.MonicaAssistant"
283+ android : excludeFromRecents =" true"
284+ android : exported =" false"
285+ android : label =" @string/monica"
286+ android : launchMode =" singleTop"
287+ android : noHistory =" true"
288+ android : theme =" @style/AppTheme.Transparent" />
289+
281290 <activity
282291 android : name =" .assistant.MotoAssistant"
283292 android : excludeFromRecents =" true"
Original file line number Diff line number Diff line change 1+ package com.wstxda.switchai.assistant
2+
3+ import com.wstxda.switchai.R
4+ import com.wstxda.switchai.activity.AssistantActivity
5+ import com.wstxda.switchai.logic.openAssistant
6+ import com.wstxda.switchai.utils.AssistantProperties
7+
8+ class MonicaAssistant : AssistantActivity () {
9+
10+ companion object : AssistantProperties {
11+ override val packageName = " im.monica.app.monica"
12+ }
13+
14+ override fun onCreateInternal () {
15+ openAssistant(
16+ intents = listOf (createMonicaIntent()),
17+ errorMessage = R .string.assistant_application_not_found
18+ )
19+ }
20+
21+ private fun createMonicaIntent () = createAssistantIntent(
22+ packageName = Companion .packageName,
23+ defaultActivity = " im.monica.app.monica.MainActivity" ,
24+ voiceInputActivity = " im.monica.app.monica.MainActivity"
25+ )
26+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ object AssistantsMap {
3030 " marusya_assistant" to MarusyaAssistant ::class .java,
3131 " meta_assistant" to MetaAssistant ::class .java,
3232 " minimax_assistant" to MiniMaxAssistant ::class .java,
33+ " monica_assistant" to MonicaAssistant ::class .java,
3334 " moto_assistant" to MotoAssistant ::class .java,
3435 " perplexity_assistant" to PerplexityAssistant ::class .java,
3536 " pi_assistant" to PiAssistant ::class .java,
@@ -70,6 +71,7 @@ object AssistantsMap {
7071 " marusya_assistant" to " ru.mail.search.electroscope" ,
7172 " meta_assistant" to " com.facebook.stella" ,
7273 " minimax_assistant" to " com.minimax.ai" ,
74+ " monica_assistant" to " im.monica.app.monica" ,
7375 " moto_assistant" to " com.motorola.uxcore" ,
7476 " perplexity_assistant" to " ai.perplexity.app.android" ,
7577 " pi_assistant" to " ai.inflection.pi" ,
Original file line number Diff line number Diff line change 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 : fillColor =" @android:color/white"
9+ android : pathData =" M16.08 10.24c0.1 0 0.21 0.02 0.31 0.06 0.1 0.04 0.19 0.1 0.26 0.18 0.08 0.07 0.14 0.16 0.18 0.26 0.04 0.1 0.06 0.2 0.06 0.32 0 0.1-0.03 0.2-0.07 0.3-0.04 0.1-0.1 0.2-0.18 0.27l-0.93 0.92 1.23 0.71c0.09 0.05 0.17 0.12 0.24 0.2 0.07 0.09 0.11 0.19 0.14 0.29 0.03 0.1 0.04 0.21 0.03 0.32-0.02 0.1-0.05 0.2-0.1 0.3-0.06 0.09-0.13 0.17-0.21 0.23-0.09 0.07-0.19 0.12-0.29 0.14-0.1 0.03-0.21 0.03-0.32 0.02-0.1-0.02-0.2-0.06-0.3-0.11l-2.03-1.18c-0.02 0-0.04-0.02-0.06-0.04-0.11-0.05-0.2-0.14-0.28-0.24-0.07-0.1-0.12-0.22-0.14-0.34-0.02-0.13-0.01-0.25 0.03-0.37s0.1-0.23 0.2-0.32l1.66-1.66c0.07-0.08 0.16-0.14 0.26-0.19 0.1-0.04 0.2-0.06 0.3-0.07Z" />
10+ <path
11+ android : fillColor =" @android:color/white"
12+ android : pathData =" M8.4 10.28c0.34 0 0.66 0.13 0.89 0.37 0.23 0.23 0.37 0.55 0.37 0.88v1.88c0 0.33-0.14 0.65-0.37 0.88-0.23 0.23-0.55 0.37-0.88 0.37-0.34 0-0.65-0.14-0.89-0.37-0.23-0.23-0.36-0.55-0.36-0.88v-1.88c0-0.33 0.13-0.65 0.36-0.88 0.24-0.24 0.55-0.37 0.89-0.37Z" />
13+ <path
14+ android : fillColor =" @android:color/white"
15+ android : fillType =" evenOdd"
16+ android : pathData =" M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2Zm0 2.97c-4.49 0-8.13 3.15-8.13 7.03 0 3.88 3.64 7.03 8.13 7.03s8.13-3.15 8.13-7.03c0-3.88-3.64-7.03-8.13-7.03Z" />
17+ </vector >
Original file line number Diff line number Diff line change 3131 <string name =" marusya" >Marusya</string >
3232 <string name =" meta" >Meta AI</string >
3333 <string name =" minimax" >MiniMax</string >
34+ <string name =" monica" >Monica</string >
3435 <string name =" moto" >Moto AI</string >
3536 <string name =" perplexity" >Perplexity</string >
3637 <string name =" pi" >Pi</string >
Original file line number Diff line number Diff line change 3131 <string name =" marusya" >Marusya</string >
3232 <string name =" meta" >Meta AI</string >
3333 <string name =" minimax" >MiniMax</string >
34+ <string name =" monica" >Monica</string >
3435 <string name =" moto" >Moto AI</string >
3536 <string name =" perplexity" >Perplexity</string >
3637 <string name =" pi" >Pi</string >
Original file line number Diff line number Diff line change 2828 <item >@string/marusya</item >
2929 <item >@string/meta</item >
3030 <item >@string/minimax</item >
31+ <item >@string/monica</item >
3132 <item >@string/moto</item >
3233 <item >@string/perplexity</item >
3334 <item >@string/pi</item >
6869 <item >marusya_assistant</item >
6970 <item >meta_assistant</item >
7071 <item >minimax_assistant</item >
72+ <item >monica_assistant</item >
7173 <item >moto_assistant</item >
7274 <item >perplexity_assistant</item >
7375 <item >pi_assistant</item >
110112 <item >marusya_assistant</item >
111113 <item >meta_assistant</item >
112114 <item >minimax_assistant</item >
115+ <item >monica_assistant</item >
113116 <item >moto_assistant</item >
114117 <item >perplexity_assistant</item >
115118 <item >pi_assistant</item >
Original file line number Diff line number Diff line change 3232 <string name =" marusya" >Marusya</string >
3333 <string name =" meta" >Meta AI</string >
3434 <string name =" minimax" >MiniMax</string >
35+ <string name =" monica" >Monica</string >
3536 <string name =" moto" >Moto AI</string >
3637 <string name =" perplexity" >Perplexity</string >
3738 <string name =" pi" >Pi</string >
You can’t perform that action at this time.
0 commit comments