Skip to content

Commit 16432fe

Browse files
committed
update SDK v1.1.2 and optimizations in the sample app
1 parent b536ccb commit 16432fe

3 files changed

Lines changed: 157 additions & 145 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To use the AuviousSDK in your project, follow these steps:
2020
dependencies {
2121
//... other dependencies
2222
// Auvious SDK
23-
implementation 'com.auvious.android:sdk:1.1.1'
23+
implementation 'com.auvious.android:sdk:1.1.2'
2424
}
2525
```
2626

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ android {
4040
dependencies {
4141
implementation fileTree(dir: 'libs', include: ['*.jar'])
4242
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
43-
implementation 'com.auvious.android:sdk:1.1.1'
43+
implementation 'com.auvious.android:sdk:1.1.2'
4444

4545
implementation 'androidx.appcompat:appcompat:1.7.0'
4646
implementation 'androidx.core:core-ktx:1.13.1'

app/src/main/res/layout/activity_main.xml

Lines changed: 155 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
android:id="@+id/logo"
1212
android:layout_width="0dp"
1313
android:layout_height="wrap_content"
14-
android:layout_marginBottom="4dp"
1514
android:layout_marginTop="8dp"
15+
android:layout_marginBottom="4dp"
1616
android:src="@drawable/auvious_logo"
1717
app:layout_constraintEnd_toEndOf="parent"
1818
app:layout_constraintStart_toStartOf="parent"
@@ -31,7 +31,6 @@
3131
app:layout_constraintStart_toStartOf="parent"
3232
app:layout_constraintTop_toBottomOf="@id/logo" />
3333

34-
3534
<com.google.android.material.textview.MaterialTextView
3635
android:id="@+id/subtitle"
3736
style="@style/TextAppearance.AppCompat.Medium"
@@ -66,190 +65,203 @@
6665

6766
</com.google.android.material.textfield.TextInputLayout>
6867

69-
<com.google.android.material.textview.MaterialTextView
70-
android:id="@+id/mic_only_title"
71-
style="@style/TextAppearance.AppCompat.Body1"
72-
android:layout_width="wrap_content"
73-
android:layout_height="wrap_content"
74-
android:layout_marginTop="4dp"
75-
android:text="Microphone only mode"
76-
app:layout_constraintEnd_toStartOf="@id/mic_only_switch"
77-
app:layout_constraintHorizontal_chainStyle="spread_inside"
68+
<ScrollView
69+
android:layout_width="0dp"
70+
android:layout_height="0dp"
71+
android:layout_marginBottom="16dp"
72+
app:layout_constraintBottom_toTopOf="@id/perm_title"
73+
app:layout_constraintEnd_toEndOf="parent"
7874
app:layout_constraintStart_toStartOf="parent"
79-
app:layout_constraintTop_toBottomOf="@id/ticket" />
75+
app:layout_constraintTop_toBottomOf="@id/ticket">
8076

81-
<com.google.android.material.switchmaterial.SwitchMaterial
82-
android:id="@+id/mic_only_switch"
83-
android:layout_width="wrap_content"
84-
android:layout_height="wrap_content"
85-
android:checked="false"
86-
app:layout_constraintBottom_toBottomOf="@id/mic_only_title"
87-
app:layout_constraintEnd_toEndOf="parent"
88-
app:layout_constraintStart_toEndOf="@id/mic_only_title"
89-
app:layout_constraintTop_toTopOf="@id/mic_only_title" />
77+
<androidx.constraintlayout.widget.ConstraintLayout
78+
android:layout_width="match_parent"
79+
android:layout_height="wrap_content">
9080

91-
<com.google.android.material.textview.MaterialTextView
92-
android:id="@+id/speaker_title"
93-
style="@style/TextAppearance.AppCompat.Body1"
94-
android:layout_width="wrap_content"
95-
android:layout_height="wrap_content"
96-
android:text="Use earpiece speaker"
97-
app:layout_constraintBottom_toBottomOf="@+id/speaker_switch"
98-
app:layout_constraintEnd_toStartOf="@id/speaker_switch"
99-
app:layout_constraintHorizontal_chainStyle="spread_inside"
100-
app:layout_constraintStart_toStartOf="parent"
101-
app:layout_constraintTop_toBottomOf="@id/speaker_switch"
102-
app:layout_constraintTop_toTopOf="@id/speaker_switch" />
81+
<com.google.android.material.textview.MaterialTextView
82+
android:id="@+id/mic_only_title"
83+
style="@style/TextAppearance.AppCompat.Body1"
84+
android:layout_width="wrap_content"
85+
android:layout_height="wrap_content"
86+
android:layout_marginTop="4dp"
87+
android:text="Microphone only mode"
88+
app:layout_constraintEnd_toStartOf="@id/mic_only_switch"
89+
app:layout_constraintHorizontal_chainStyle="spread_inside"
90+
app:layout_constraintStart_toStartOf="parent"
91+
app:layout_constraintTop_toTopOf="parent" />
10392

104-
<com.google.android.material.switchmaterial.SwitchMaterial
105-
android:id="@+id/speaker_switch"
106-
android:layout_width="wrap_content"
107-
android:layout_height="wrap_content"
108-
android:checked="false"
109-
app:layout_constraintEnd_toEndOf="parent"
110-
app:layout_constraintStart_toEndOf="@id/speaker_title"
111-
app:layout_constraintTop_toBottomOf="@id/mic_only_switch" />
93+
<com.google.android.material.switchmaterial.SwitchMaterial
94+
android:id="@+id/mic_only_switch"
95+
android:layout_width="wrap_content"
96+
android:layout_height="wrap_content"
97+
android:checked="false"
98+
app:layout_constraintBottom_toBottomOf="@id/mic_only_title"
99+
app:layout_constraintEnd_toEndOf="parent"
100+
app:layout_constraintStart_toEndOf="@id/mic_only_title"
101+
app:layout_constraintTop_toTopOf="@id/mic_only_title" />
112102

113-
<com.google.android.material.textview.MaterialTextView
114-
android:id="@+id/controls_title"
115-
style="@style/TextAppearance.AppCompat.Medium"
116-
android:layout_width="match_parent"
117-
android:layout_height="wrap_content"
118-
android:layout_marginTop="16dp"
119-
android:text="Conference control"
120-
app:layout_constraintEnd_toEndOf="parent"
121-
app:layout_constraintStart_toStartOf="parent"
122-
app:layout_constraintTop_toBottomOf="@id/speaker_switch" />
103+
<com.google.android.material.textview.MaterialTextView
104+
android:id="@+id/speaker_title"
105+
style="@style/TextAppearance.AppCompat.Body1"
106+
android:layout_width="wrap_content"
107+
android:layout_height="wrap_content"
108+
android:text="Use earpiece speaker"
109+
app:layout_constraintBottom_toBottomOf="@+id/speaker_switch"
110+
app:layout_constraintEnd_toStartOf="@id/speaker_switch"
111+
app:layout_constraintHorizontal_chainStyle="spread_inside"
112+
app:layout_constraintStart_toStartOf="parent"
113+
app:layout_constraintTop_toBottomOf="@id/speaker_switch"
114+
app:layout_constraintTop_toTopOf="@id/speaker_switch" />
123115

124-
<com.google.android.material.textview.MaterialTextView
125-
android:id="@+id/camera_available_title"
126-
style="@style/TextAppearance.AppCompat.Body1"
127-
android:layout_width="wrap_content"
128-
android:layout_height="wrap_content"
129-
android:text="Camera Buttons"
130-
app:layout_constraintBottom_toBottomOf="@+id/camera_available_switch"
131-
app:layout_constraintEnd_toStartOf="@id/camera_available_switch"
132-
app:layout_constraintHorizontal_chainStyle="spread_inside"
133-
app:layout_constraintStart_toStartOf="parent"
134-
app:layout_constraintTop_toBottomOf="@id/camera_available_switch"
135-
app:layout_constraintTop_toTopOf="@id/camera_available_switch" />
116+
<com.google.android.material.switchmaterial.SwitchMaterial
117+
android:id="@+id/speaker_switch"
118+
android:layout_width="wrap_content"
119+
android:layout_height="wrap_content"
120+
android:checked="false"
121+
app:layout_constraintEnd_toEndOf="parent"
122+
app:layout_constraintStart_toEndOf="@id/speaker_title"
123+
app:layout_constraintTop_toBottomOf="@id/mic_only_switch" />
136124

137-
<com.google.android.material.switchmaterial.SwitchMaterial
138-
android:id="@+id/camera_available_switch"
139-
android:layout_width="wrap_content"
140-
android:layout_height="wrap_content"
141-
android:checked="true"
142-
app:layout_constraintEnd_toEndOf="parent"
143-
app:layout_constraintStart_toEndOf="@id/camera_available_title"
144-
app:layout_constraintTop_toBottomOf="@id/controls_title" />
125+
<com.google.android.material.textview.MaterialTextView
126+
android:id="@+id/controls_title"
127+
style="@style/TextAppearance.AppCompat.Medium"
128+
android:layout_width="match_parent"
129+
android:layout_height="wrap_content"
130+
android:layout_marginTop="16dp"
131+
android:text="Conference control"
132+
app:layout_constraintEnd_toEndOf="parent"
133+
app:layout_constraintStart_toStartOf="parent"
134+
app:layout_constraintTop_toBottomOf="@id/speaker_switch" />
145135

146-
<com.google.android.material.textview.MaterialTextView
147-
android:id="@+id/mic_available_title"
148-
style="@style/TextAppearance.AppCompat.Body1"
149-
android:layout_width="wrap_content"
150-
android:layout_height="wrap_content"
151-
android:text="Microphone Button"
152-
app:layout_constraintBottom_toBottomOf="@+id/mic_available_switch"
153-
app:layout_constraintEnd_toStartOf="@id/mic_available_switch"
154-
app:layout_constraintHorizontal_chainStyle="spread_inside"
155-
app:layout_constraintStart_toStartOf="parent"
156-
app:layout_constraintTop_toBottomOf="@id/mic_available_switch"
157-
app:layout_constraintTop_toTopOf="@id/mic_available_switch" />
136+
<com.google.android.material.textview.MaterialTextView
137+
android:id="@+id/camera_available_title"
138+
style="@style/TextAppearance.AppCompat.Body1"
139+
android:layout_width="wrap_content"
140+
android:layout_height="wrap_content"
141+
android:text="Camera Buttons"
142+
app:layout_constraintBottom_toBottomOf="@+id/camera_available_switch"
143+
app:layout_constraintEnd_toStartOf="@id/camera_available_switch"
144+
app:layout_constraintHorizontal_chainStyle="spread_inside"
145+
app:layout_constraintStart_toStartOf="parent"
146+
app:layout_constraintTop_toBottomOf="@id/camera_available_switch"
147+
app:layout_constraintTop_toTopOf="@id/camera_available_switch" />
158148

159-
<com.google.android.material.switchmaterial.SwitchMaterial
160-
android:id="@+id/mic_available_switch"
161-
android:layout_width="wrap_content"
162-
android:layout_height="wrap_content"
163-
android:checked="true"
164-
app:layout_constraintEnd_toEndOf="parent"
165-
app:layout_constraintStart_toEndOf="@id/mic_available_title"
166-
app:layout_constraintTop_toBottomOf="@id/camera_available_switch" />
149+
<com.google.android.material.switchmaterial.SwitchMaterial
150+
android:id="@+id/camera_available_switch"
151+
android:layout_width="wrap_content"
152+
android:layout_height="wrap_content"
153+
android:checked="true"
154+
app:layout_constraintEnd_toEndOf="parent"
155+
app:layout_constraintStart_toEndOf="@id/camera_available_title"
156+
app:layout_constraintTop_toBottomOf="@id/controls_title" />
167157

168-
<com.google.android.material.textview.MaterialTextView
169-
android:id="@+id/speaker_available_title"
170-
style="@style/TextAppearance.AppCompat.Body1"
171-
android:layout_width="wrap_content"
172-
android:layout_height="wrap_content"
173-
android:text="Speaker Button"
174-
app:layout_constraintBottom_toBottomOf="@+id/speaker_available_switch"
175-
app:layout_constraintEnd_toStartOf="@id/speaker_available_switch"
176-
app:layout_constraintHorizontal_chainStyle="spread_inside"
177-
app:layout_constraintStart_toStartOf="parent"
178-
app:layout_constraintTop_toBottomOf="@id/speaker_available_switch"
179-
app:layout_constraintTop_toTopOf="@id/speaker_available_switch" />
158+
<com.google.android.material.textview.MaterialTextView
159+
android:id="@+id/mic_available_title"
160+
style="@style/TextAppearance.AppCompat.Body1"
161+
android:layout_width="wrap_content"
162+
android:layout_height="wrap_content"
163+
android:text="Microphone Button"
164+
app:layout_constraintBottom_toBottomOf="@+id/mic_available_switch"
165+
app:layout_constraintEnd_toStartOf="@id/mic_available_switch"
166+
app:layout_constraintHorizontal_chainStyle="spread_inside"
167+
app:layout_constraintStart_toStartOf="parent"
168+
app:layout_constraintTop_toBottomOf="@id/mic_available_switch"
169+
app:layout_constraintTop_toTopOf="@id/mic_available_switch" />
180170

181-
<com.google.android.material.switchmaterial.SwitchMaterial
182-
android:id="@+id/speaker_available_switch"
183-
android:layout_width="wrap_content"
184-
android:layout_height="wrap_content"
185-
android:checked="true"
186-
app:layout_constraintEnd_toEndOf="parent"
187-
app:layout_constraintStart_toEndOf="@id/speaker_available_title"
188-
app:layout_constraintTop_toBottomOf="@id/mic_available_switch" />
171+
<com.google.android.material.switchmaterial.SwitchMaterial
172+
android:id="@+id/mic_available_switch"
173+
android:layout_width="wrap_content"
174+
android:layout_height="wrap_content"
175+
android:checked="true"
176+
app:layout_constraintEnd_toEndOf="parent"
177+
app:layout_constraintStart_toEndOf="@id/mic_available_title"
178+
app:layout_constraintTop_toBottomOf="@id/camera_available_switch" />
189179

180+
<com.google.android.material.textview.MaterialTextView
181+
android:id="@+id/speaker_available_title"
182+
style="@style/TextAppearance.AppCompat.Body1"
183+
android:layout_width="wrap_content"
184+
android:layout_height="wrap_content"
185+
android:text="Speaker Button"
186+
app:layout_constraintBottom_toBottomOf="@+id/speaker_available_switch"
187+
app:layout_constraintEnd_toStartOf="@id/speaker_available_switch"
188+
app:layout_constraintHorizontal_chainStyle="spread_inside"
189+
app:layout_constraintStart_toStartOf="parent"
190+
app:layout_constraintTop_toBottomOf="@id/speaker_available_switch"
191+
app:layout_constraintTop_toTopOf="@id/speaker_available_switch" />
190192

191-
<com.google.android.material.textview.MaterialTextView
192-
android:id="@+id/conference_background_title"
193-
style="@style/TextAppearance.AppCompat.Body1"
194-
android:layout_width="wrap_content"
195-
android:layout_height="wrap_content"
196-
android:text="Custom Conference Background"
197-
app:layout_constraintBottom_toBottomOf="@+id/conference_background_switch"
198-
app:layout_constraintEnd_toStartOf="@id/conference_background_switch"
199-
app:layout_constraintHorizontal_chainStyle="spread_inside"
200-
app:layout_constraintStart_toStartOf="parent"
201-
app:layout_constraintTop_toBottomOf="@id/conference_background_switch"
202-
app:layout_constraintTop_toTopOf="@id/conference_background_switch" />
193+
<com.google.android.material.switchmaterial.SwitchMaterial
194+
android:id="@+id/speaker_available_switch"
195+
android:layout_width="wrap_content"
196+
android:layout_height="wrap_content"
197+
android:checked="true"
198+
app:layout_constraintEnd_toEndOf="parent"
199+
app:layout_constraintStart_toEndOf="@id/speaker_available_title"
200+
app:layout_constraintTop_toBottomOf="@id/mic_available_switch" />
203201

204-
<com.google.android.material.switchmaterial.SwitchMaterial
205-
android:id="@+id/conference_background_switch"
206-
android:layout_width="wrap_content"
207-
android:layout_height="wrap_content"
208-
android:checked="false"
209-
app:layout_constraintEnd_toEndOf="parent"
210-
app:layout_constraintStart_toEndOf="@id/conference_background_title"
211-
app:layout_constraintTop_toBottomOf="@id/speaker_available_switch" />
202+
203+
<com.google.android.material.textview.MaterialTextView
204+
android:id="@+id/conference_background_title"
205+
style="@style/TextAppearance.AppCompat.Body1"
206+
android:layout_width="wrap_content"
207+
android:layout_height="wrap_content"
208+
android:text="Custom Conference Background"
209+
app:layout_constraintBottom_toBottomOf="@+id/conference_background_switch"
210+
app:layout_constraintEnd_toStartOf="@id/conference_background_switch"
211+
app:layout_constraintHorizontal_chainStyle="spread_inside"
212+
app:layout_constraintStart_toStartOf="parent"
213+
app:layout_constraintTop_toBottomOf="@id/conference_background_switch"
214+
app:layout_constraintTop_toTopOf="@id/conference_background_switch" />
215+
216+
<com.google.android.material.switchmaterial.SwitchMaterial
217+
android:id="@+id/conference_background_switch"
218+
android:layout_width="wrap_content"
219+
android:layout_height="wrap_content"
220+
android:checked="false"
221+
app:layout_constraintEnd_toEndOf="parent"
222+
app:layout_constraintStart_toEndOf="@id/conference_background_title"
223+
app:layout_constraintTop_toBottomOf="@id/speaker_available_switch" />
224+
225+
</androidx.constraintlayout.widget.ConstraintLayout>
226+
</ScrollView>
212227

213228
<com.google.android.material.textview.MaterialTextView
214229
android:id="@+id/perm_title"
215230
style="@style/TextAppearance.AppCompat.Medium"
216231
android:layout_width="match_parent"
217232
android:layout_height="wrap_content"
218-
android:layout_marginTop="16dp"
233+
android:layout_marginBottom="8dp"
219234
android:text="Permission options"
235+
app:layout_constraintBottom_toTopOf="@id/request_camera_perm"
220236
app:layout_constraintEnd_toEndOf="parent"
221-
app:layout_constraintStart_toStartOf="parent"
222-
app:layout_constraintTop_toBottomOf="@id/conference_background_switch" />
237+
app:layout_constraintStart_toStartOf="parent" />
223238

224239
<com.google.android.material.button.MaterialButton
225240
android:id="@+id/request_camera_perm"
226241
android:layout_width="wrap_content"
227242
android:layout_height="50dp"
228-
android:layout_marginTop="8dp"
229243
android:text="Camera"
244+
app:layout_constraintBottom_toTopOf="@+id/join_call"
230245
app:layout_constraintEnd_toStartOf="@id/request_mic_perm"
231-
app:layout_constraintStart_toStartOf="parent"
232-
app:layout_constraintTop_toBottomOf="@+id/perm_title" />
246+
app:layout_constraintStart_toStartOf="parent" />
233247

234248
<com.google.android.material.button.MaterialButton
235249
android:id="@+id/request_mic_perm"
236250
android:layout_width="wrap_content"
237251
android:layout_height="50dp"
238-
android:layout_marginTop="8dp"
239252
android:text="Microphone"
253+
app:layout_constraintBottom_toTopOf="@+id/join_call"
240254
app:layout_constraintEnd_toEndOf="@id/request_storage_perm"
241-
app:layout_constraintStart_toEndOf="@+id/request_camera_perm"
242-
app:layout_constraintTop_toBottomOf="@+id/perm_title" />
255+
app:layout_constraintStart_toEndOf="@+id/request_camera_perm" />
243256

244257
<com.google.android.material.button.MaterialButton
245258
android:id="@+id/request_storage_perm"
246259
android:layout_width="wrap_content"
247260
android:layout_height="50dp"
248-
android:layout_marginTop="8dp"
249261
android:text="Storage"
262+
app:layout_constraintBottom_toTopOf="@+id/join_call"
250263
app:layout_constraintEnd_toEndOf="parent"
251-
app:layout_constraintStart_toEndOf="@id/request_mic_perm"
252-
app:layout_constraintTop_toBottomOf="@+id/perm_title" />
264+
app:layout_constraintStart_toEndOf="@id/request_mic_perm" />
253265

254266
<com.google.android.material.button.MaterialButton
255267
android:id="@+id/join_call"

0 commit comments

Comments
 (0)