Skip to content

Commit 2df61a9

Browse files
authored
Merge pull request #96 from Ivorisnoob/main
chore: synchronize version references to 3.0.0 across app and documentation
2 parents d769550 + 6c8ce32 commit 2df61a9

12 files changed

Lines changed: 21 additions & 27 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to AirSync Android (2.0)
1+
# Contributing to AirSync Android (3.0)
22

33
Thank you for your interest in contributing!
44
Before you submit a pull request, please read the following guidelines.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# airsync-android
2-
Android app for AirSync 2.0 built with Kotlin Jetpack Compose
2+
Android app for AirSync 3.0 built with Kotlin Jetpack Compose
33

44
Min : Android 11
55

66
[<img src="https://steverichey.github.io/google-play-badge-svg/img/en_get.svg" width="30%" />](https://play.google.com/store/apps/details?id=com.sameerasw.airsync)
77

88

99
## How to connect?
10-
Use your built-in camera or Google lense or anything that can scan a QR code. I twill prompt you to open the app. Once authorized, The last device will be saved on the mobile for now for easier re-connection.
10+
Use your built-in camera or Google Lens or anything that can scan a QR code. It will prompt you to open the app. Once authorized, the last device will be saved on the mobile for now for easier reconnection.
1111

1212
## [Read Documentation and How-To](https://airsync.notion.site/)
1313

app/src/main/java/com/sameerasw/airsync/MainActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class MainActivity : ComponentActivity() {
180180
// Install and configure the splash screen before any UI rendering
181181
val splashScreen = installSplashScreen()
182182

183-
// Make activity draw behind system bars - let the theme handles the colors
183+
// Make activity draw behind system bars - let the theme handle the colors
184184
androidx.core.view.WindowCompat.setDecorFitsSystemWindows(window, false)
185185

186186
super.onCreate(savedInstanceState)
@@ -221,7 +221,7 @@ class MainActivity : ComponentActivity() {
221221
if (splashIcon is ImageView && deviceIconRes != null) {
222222
// Fade out the original app icon
223223
val fadeOutIcon = ObjectAnimator.ofFloat(splashIcon, "alpha", 1f, 0f).apply {
224-
duration = 150 // 0.5 seconds
224+
duration = 150 // 0.15 seconds
225225
}
226226

227227
fadeOutIcon.doOnEnd {
@@ -239,7 +239,7 @@ class MainActivity : ComponentActivity() {
239239
// Fade in the new device icon
240240
val fadeInIcon =
241241
ObjectAnimator.ofFloat(splashIcon, "alpha", 0f, 1f).apply {
242-
duration = 350 // 0.5 seconds
242+
duration = 350 // 0.35 seconds
243243
}
244244

245245
fadeInIcon.doOnEnd {
@@ -251,7 +251,7 @@ class MainActivity : ComponentActivity() {
251251
splashIcon,
252252
splashScreenViewProvider
253253
)
254-
}, 250) // 0.5 second hold
254+
}, 250) // 0.25 second hold
255255
} catch (e: Exception) {
256256
Log.e(
257257
"MainActivity",

app/src/main/java/com/sameerasw/airsync/presentation/ui/components/SettingsView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ fun SettingsView(
394394
deviceInfo.name,
395395
deviceInfo.localIp,
396396
uiState.port.toIntOrNull() ?: 6996,
397-
versionName ?: "2.0.0",
397+
versionName ?: "3.0.0",
398398
adbPorts
399399
)
400400
onSendMessage(message)

app/src/main/java/com/sameerasw/airsync/presentation/ui/screens/AirSyncMainScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fun AirSyncMainScreen(
154154
.getPackageInfo(context.packageName, 0)
155155
.versionName
156156
} catch (_: Exception) {
157-
"2.0.0"
157+
"3.0.0"
158158
}
159159
val viewModel: AirSyncViewModel = viewModel { AirSyncViewModel.create(context) }
160160
val uiState by viewModel.uiState.collectAsState()

app/src/main/java/com/sameerasw/airsync/utils/JsonUtil.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ object JsonUtil {
2626
return """{"type":"device","data":{"name":"$name","ipAddress":"$ipAddress","port":$port,"version":"$version","adbPorts":[]$targetIpJson}}"""
2727
}
2828

29-
/**
30-
* Creates a single-line JSON string for device info with ADB ports
31-
*/
3229
/**
3330
* Creates a single-line JSON string for device info with ADB ports
3431
*/
@@ -47,9 +44,6 @@ object JsonUtil {
4744
return """{"type":"device","data":{"id":"$id","name":"$name","ipAddress":"$ipAddress","port":$port,"version":"$version","adbPorts":[$portsJson]$targetIpJson}}"""
4845
}
4946

50-
/**
51-
* Creates a single-line JSON string for device info with wallpaper
52-
*/
5347
/**
5448
* Creates a single-line JSON string for device info with wallpaper
5549
*/

app/src/main/java/com/sameerasw/airsync/utils/NotificationDismissalUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ object NotificationDismissalUtil {
198198
return suppressedIds.remove(notificationId)
199199
}
200200

201-
/** Remove from caches when we it's gone. */
201+
/** Remove from caches when it's gone. */
202202
fun removeFromCaches(id: String) {
203203
activeNotifications.remove(id)?.let { sbn ->
204204
keyToId.remove(sbn.key)

app/src/main/java/com/sameerasw/airsync/utils/SyncManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ object SyncManager {
164164
val localIp = DeviceInfoUtil.getWifiIpAddress(context) ?: "Unknown"
165165
val port = dataStoreManager.getPort().first().toIntOrNull() ?: 6996
166166
val version = context.packageManager
167-
.getPackageInfo(context.packageName, 0).versionName ?: "2.0.0"
167+
.getPackageInfo(context.packageName, 0).versionName ?: "3.0.0"
168168

169169
// Get discovered ADB ports from the running mDNS discovery
170170
val adbPorts = try {
@@ -247,7 +247,7 @@ object SyncManager {
247247
val statusJson = DeviceInfoUtil.generateDeviceStatusJson(context)
248248
if (WebSocketUtil.sendMessage(statusJson)) {
249249
Log.d(TAG, "Device status sent")
250-
// Update cache
250+
// Update cache
251251
lastAudioInfo = DeviceInfoUtil.getAudioInfo(context, includeNowPlaying)
252252
lastBatteryInfo = DeviceInfoUtil.getBatteryInfo(context)
253253
} else {

app/src/main/java/com/sameerasw/airsync/utils/UDPDiscoveryManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ data class DiscoveredDevice(
2525
val type: String, // "mac" or "android"
2626
val lastSeen: Long = System.currentTimeMillis()
2727
) {
28-
//check if it has a local IP (non-Tailscale)
28+
// check if it has a local IP (non-Tailscale)
2929
fun hasLocalIp(): Boolean = ips.any { !it.startsWith("100.") }
3030

31-
//check if it has a Tailscale IP
31+
// check if it has a Tailscale IP
3232
fun hasTailscaleIp(): Boolean = ips.any { it.startsWith("100.") }
3333

3434
// Best IP for connection
@@ -415,7 +415,7 @@ object UDPDiscoveryManager {
415415
val packet = DatagramPacket(
416416
data,
417417
data.size,
418-
InetAddress.getByName("255.55.255.255"),
418+
InetAddress.getByName("255.255.255.255"),
419419
BROADCAST_PORT
420420
)
421421
DatagramSocket(0, InetAddress.getByName(bindIp)).use { sender ->

app/src/main/java/com/sameerasw/airsync/utils/WallpaperUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object WallpaperUtil {
2626
return try {
2727
val wallpaperManager = WallpaperManager.getInstance(context)
2828

29-
// Check permissions
29+
// Check permissions
3030
if (!hasWallpaperPermissions(context)) {
3131
Log.w(TAG, "Missing wallpaper permissions")
3232
return null

0 commit comments

Comments
 (0)