Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
31ec481
Update Core submodule to my fixed personal fork
Astro-bosss Sep 9, 2025
2828ed9
Feat: Modernize build system and update Core submodule
Astro-bosss Sep 9, 2025
3ec0feb
Update jitpack.yml to use Java 17 and simplify build command
Astro-bosss Sep 9, 2025
24baa42
Fix: Add maven-publish plugin to enable JitPack builds
Astro-bosss Sep 9, 2025
4bd60a6
Fix: Remove legacy package attribute from AndroidManifest files
Astro-bosss Sep 9, 2025
dddcb90
Fix: Finalize build fixes for JitPack compatibility
Astro-bosss Sep 9, 2025
c4da821
Refactor build.gradle and update dependencies
Astro-bosss Sep 9, 2025
cfe197b
Fix: Resolve critical build errors and add missing dependencies
Astro-bosss Sep 9, 2025
21a763c
Refactor build.gradle for conciseness and modern practices
Astro-bosss Sep 9, 2025
7c36275
Remove lgcast-android-lib.jar.jar
Astro-bosss Sep 9, 2025
1f6819f
Update submodule to 'core' and finalize build setup
Astro-bosss Sep 9, 2025
30d6d63
Simplify `sourceSets` and add `useLibrary 'org.apache.http.legacy'`
Astro-bosss Sep 9, 2025
730ebd1
Update submodule reference
Astro-bosss Sep 9, 2025
1801385
Refactor: Remove BuildConfig usage and update foreground service start
Astro-bosss Sep 9, 2025
a21b24e
Update dependencies and simplify build.gradle
Astro-bosss Sep 9, 2025
da125dd
Downgrade Java-WebSocket and move dependencies
Astro-bosss Sep 9, 2025
dee4bf6
Update test dependencies and `DiscoveryManager` initialization
Astro-bosss Sep 9, 2025
214c191
Refactor: Update test dependencies and migrate to AndroidX Test APIs
Astro-bosss Sep 9, 2025
ca15e48
Upgrade Gradle version and update wrapper scripts
Astro-bosss Sep 9, 2025
fcfb96f
Add group and version to build scripts
Astro-bosss Sep 9, 2025
644b9c5
Remove pom.xml
Astro-bosss Sep 9, 2025
3dd12f4
Add Maven publishing configuration
Astro-bosss Sep 9, 2025
f842da7
Remove publishing configuration from build.gradle files
Astro-bosss Sep 10, 2025
520184c
Refactor build scripts and add Maven local publishing
Astro-bosss Sep 10, 2025
3f734f1
Refactor Gradle setup and update dependencies
Astro-bosss Sep 11, 2025
9284c55
Update JitPack configuration for build process
Astro-bosss Sep 11, 2025
d191086
Fix: Enforce Gradle 8.5 via Wrapper
Astro-bosss Sep 11, 2025
e6ab14f
Refactor Gradle configuration and update dependencies
Astro-bosss Sep 11, 2025
9c3a177
Refactor: Remove character 'A' from build.gradle dependencies
Astro-bosss Sep 11, 2025
e183ff9
Update JitPack configuration to simplify build command
Astro-bosss Sep 12, 2025
1a80f3e
Add Maven publishing for core module and update JitPack build
Astro-bosss Sep 12, 2025
766a7f3
Fix: Remove nested repository and add core source files
Astro-bosss Sep 12, 2025
3703245
Add Maven publishing for core module and update JitPack build
Astro-bosss Sep 13, 2025
3e3099b
Cleanup: Completely remove core before re-adding as submodule
Astro-bosss Sep 13, 2025
4f82dd7
Feat: Re-add core as a submodule
Astro-bosss Sep 13, 2025
1957c83
Update JitPack configuration to initialize submodules
Astro-bosss Sep 13, 2025
5424a12
Update dependencies and streamline publishing
Astro-bosss Sep 13, 2025
44a3444
Refactor: Modernize Gradle structure and add POM for core module
Astro-bosss Sep 15, 2025
2249af2
Refactor: Streamline source sets and update HttpClient dependency
Astro-bosss Sep 15, 2025
9527966
Refactor: Standardize build scripts and update dependencies
Astro-bosss Sep 15, 2025
bb74cc4
Refactor: Update Android Gradle Plugin and Apache HTTP Client
Astro-bosss Sep 15, 2025
fcf7f97
Refactor: Streamline build configuration and dependency management
Astro-bosss Sep 15, 2025
558382c
Update libc++_shared.so for arm64-v8a and armeabi-v7a
Astro-bosss Sep 20, 2025
718ff10
Remove GStreamer JNI libraries
Astro-bosss Sep 22, 2025
6963268
Refactor: Update source sets and dependencies for module integration
Astro-bosss Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 27 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,52 +1,42 @@
# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/
# ===============================================
# Android Studio / IntelliJ Ayar Dosyaları
# ===============================================
# Bu dosyalar kişiseldir ve paylaşılmamalıdır.
.idea/
*.iml
.cxx/
local.properties

# Ignore gradle files
# ===============================================
# Gradle Tarafından Oluşturulan Dosyalar
# ===============================================
# Bu klasörler her derlemede yeniden oluşturulur.
.gradle/
build/

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

# Proguard folder generated by Eclipse
proguard/

# ===============================================
# Diğer Geliştirme Araçları ve Sistem Dosyaları
# ===============================================
*.apk
*.aab
*.ap_
*.dex
*.class
*.pydevproject
.project
.metadata
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

*.DS_Store
# ===============================================
# İşletim Sistemi Dosyaları
# ===============================================
# MacOS
.DS_Store
# Windows
Thumbs.db
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
branch = master
[submodule "core"]
path = core
url = https://github.com/ConnectSDK/Connect-SDK-Android-Core.git
url = https://github.com/Astro-bosss/Connect-SDK-Android-Core.git
branch = master
[submodule "modules/firetv"]
path = modules/firetv
Expand Down
6 changes: 2 additions & 4 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.connectsdk"
android:versionCode="13"
android:versionName="1.6.2">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Permissions for LG Cast Screen Mirroring -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Expand All @@ -19,6 +16,7 @@
<application android:usesCleartextTraffic="true">

<!-- LG CAST Screen Mirroring Service -->
<!-- foregroundServiceType:mediaProjection requires permission:[android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION] -->
<service
android:name=".service.webos.lgcast.screenmirroring.service.MirroringService"
android:exported="false"
Expand Down
152 changes: 5 additions & 147 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,148 +1,6 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
// build.gradle (Ana Dizin)

allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

apply plugin: 'com.android.library'
apply plugin: 'jacoco'

apply plugin: 'com.github.dcendents.android-maven'
group='com.github.ConnectSDK'

jacoco {
toolVersion = "0.7.1.201405082137"
}

task jacocoTestReport(type:JacocoReport, dependsOn: "check") {
group = "Reporting"

description = "Generate Jacoco coverage reports"

getClassDirectories().setFrom(
dir: 'build/intermediates/classes/debug',
excludes: ['**/R.class',
'**/R$*.class',
'**/*$ViewInjector*.*',
'**/BuildConfig.*',
'**/Manifest*.*']
)

additionalSourceDirs.from = android.sourceSets.main.java.srcDirs
sourceDirectories.from = android.sourceSets.main.java.srcDirs
executionData.from = 'build/jacoco/testDebug.exec'

reports {
xml.enabled = true
html.enabled = true
}

}

build.dependsOn jacocoTestReport

android {
compileSdkVersion 32
buildToolsVersion '30.0.3'

defaultConfig {
minSdkVersion 24
targetSdkVersion 32
}

packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [
'src',
'core/src',
'modules/google_cast/src',
'modules/firetv/src',
]
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['core/res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['core/jniLibs']
}
test {
java.srcDirs = [
'core/test/src',
'modules/google_cast/test/src',
'modules/firetv/test/src',
]
}
}
buildTypes {
debug {
testCoverageEnabled = true
}
release {
minifyEnabled false
}
}
android {
lintOptions {
abortOnError false
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
useLibrary 'org.apache.http.legacy'
ndkVersion "22.1.7171670"
}

android.testOptions.unitTests.all {
include '**/*Test.class'
}

dependencies {
implementation 'org.java-websocket:Java-WebSocket:1.5.0'
implementation 'javax.jmdns:jmdns:3.4.1'

implementation fileTree(dir: 'modules/firetv/libs', include: '*.jar')


implementation 'androidx.mediarouter:mediarouter:1.2.0'
implementation 'androidx.annotation:annotation:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.appcompat:appcompat:1.3.1' // 1.4.1 version doesn't support compile sdk 30
implementation 'com.googlecode.plist:dd-plist:1.23'
implementation 'com.nimbusds:srp6a:2.1.0'
implementation 'net.i2p.crypto:eddsa:0.3.0'
implementation 'com.google.android.gms:play-services-cast-framework:9.4.0'
implementation files('core/libs/lgcast-android-lib.jar')

testImplementation 'org.apache.maven:maven-ant-tasks:2.1.3'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:2.4'
testImplementation 'org.mockito:mockito-all:1.10.19'
testImplementation 'org.powermock:powermock-api-mockito:1.6.2'
testImplementation 'xmlunit:xmlunit:1.4'
}

apply from: 'maven-push.gradle'
plugins {
id 'com.android.library' version '8.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.9.22' apply false
}
2 changes: 1 addition & 1 deletion core
Submodule core updated 49 files
+7 −4 AndroidManifest.xml
+91 −49 build.gradle
+ jniLibs/arm64-v8a/libc++_shared.so
+ jniLibs/arm64-v8a/libgstreamer-appcast.so
+ jniLibs/arm64-v8a/libgstreamer_android.so
+ jniLibs/armeabi-v7a/libc++_shared.so
+ jniLibs/armeabi-v7a/libgstreamer-appcast.so
+ jniLibs/armeabi-v7a/libgstreamer_android.so
+ jniLibs/libgstreamer_android.tar
+ libs/lgcast-android-lib.jar.jar
+ res/drawable-hdpi/lgcast_noti_icon_thinq.png
+ res/drawable-mdpi/lgcast_noti_icon_thinq.png
+ res/drawable-xhdpi/lgcast_noti_icon_thinq.png
+ res/drawable-xxhdpi/lgcast_noti_icon_thinq.png
+ res/drawable-xxxhdpi/lgcast_noti_icon_thinq.png
+10 −0 res/drawable/ic_notification_thinq.xml
+2 −2 res/drawable/lgcast_noti_icon.xml
+4 −0 res/values/colors.xml
+15 −15 src/com/connectsdk/discovery/DiscoveryManager.java
+17 −17 src/com/connectsdk/discovery/provider/ZeroconfDiscoveryProvider.java
+7 −3 src/com/connectsdk/service/webos/lgcast/remotecamera/service/CameraService.java
+3 −0 src/com/connectsdk/service/webos/lgcast/remotecamera/service/CameraServiceFunc.java
+28 −6 src/com/connectsdk/service/webos/lgcast/screenmirroring/service/MirroringService.java
+4 −1 src/com/connectsdk/service/webos/lgcast/screenmirroring/service/MirroringServiceFunc.java
+2 −1 src/com/connectsdk/service/webos/lgcast/screenmirroring/uibc/UibcAccessibilityService.java
+1 −1 test/src/com/connectsdk/core/MediaInfoTest.java
+1 −1 test/src/com/connectsdk/core/SubtitleInfoTest.java
+1 −2 test/src/com/connectsdk/core/TestUtil.java
+3 −3 test/src/com/connectsdk/device/ConnectableDeviceTest.java
+1 −1 test/src/com/connectsdk/discovery/DiscoveryFilterParameterizedTest.java
+7 −5 test/src/com/connectsdk/discovery/DiscoveryManagerTest.java
+1 −1 test/src/com/connectsdk/discovery/provider/DiscoveryFilterTest.java
+3 −1 test/src/com/connectsdk/discovery/provider/SSDPDiscoveryProviderTest.java
+11 −6 test/src/com/connectsdk/discovery/provider/ZeroconfDiscoveryProviderTest.java
+3 −1 test/src/com/connectsdk/discovery/provider/ssdp/SSDPClientTest.java
+1 −1 test/src/com/connectsdk/discovery/provider/ssdp/SSDPDeviceTest.java
+16 −16 test/src/com/connectsdk/service/AirPlayServiceTest.java
+5 −4 test/src/com/connectsdk/service/DIALServiceSendCommandTest.java
+1 −1 test/src/com/connectsdk/service/DIALServiceTest.java
+4 −3 test/src/com/connectsdk/service/DLNAServiceSendCommandTest.java
+13 −11 test/src/com/connectsdk/service/DLNAServiceTest.java
+4 −2 test/src/com/connectsdk/service/NetCastTVServiceTest.java
+1 −1 test/src/com/connectsdk/service/RokuServiceTest.java
+3 −2 test/src/com/connectsdk/service/WebOSTVServiceTest.java
+1 −1 test/src/com/connectsdk/service/airplay/PListParserTest.java
+1 −1 test/src/com/connectsdk/service/capability/KeyCodeParameterizedTest.java
+1 −1 test/src/com/connectsdk/service/roku/RokuApplicationListParserTest.java
+5 −4 test/src/com/connectsdk/service/sessions/WebOSWebAppSessionTest.java
+1 −1 test/src/com/connectsdk/service/webos/WebOSTVServiceSocketClientTest.java
26 changes: 14 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
POM_NAME=Connect SDK Android
POM_NAME=Connect SDK Android (Fixed by Astro-bosss)

POM_ARTIFACT_ID=connect-sdk-android

POM_PACKAGING=aar
VERSION_NAME=1.6.2
VERSION_CODE=13
GROUP=com.connectsdk
VERSION_NAME=2.1.7-fixed
VERSION_CODE=217
GROUP=com.github.Astro-bosss

POM_DESCRIPTION=Connect SDK is an open source framework that connects your mobile apps with multiple TV platforms. Because most TV platforms support a variety of protocols, Connect SDK integrates and abstracts the discovery and connectivity between all supported protocols.
POM_DESCRIPTION=A fixed and maintained fork of Connect SDK, an open source framework that connects mobile apps with multiple TV platforms. This version includes fixes for AndroidX and modern Gradle builds.

POM_URL=https://github.com/ConnectSDK/Connect-SDK-Android
POM_SCM_URL=https://github.com/ConnectSDK/Connect-SDK-Android
POM_SCM_CONNECTION=scm:hg:https://github.com/ConnectSDK/Connect-SDK-Android
POM_SCM_DEV_CONNECTION=scm:hg:https://github.com/ConnectSDK/Connect-SDK-Android
POM_URL=https://github.com/Astro-bosss/Connect-SDK-Android
POM_SCM_URL=https://github.com/Astro-bosss/Connect-SDK-Android
POM_SCM_CONNECTION=scm:git:https://github.com/Astro-bosss/Connect-SDK-Android.git
POM_SCM_DEV_CONNECTION=scm:git:https://github.com/Astro-bosss/Connect-SDK-Android.git

POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=change
POM_DEVELOPER_NAME=change
POM_DEVELOPER_ID=Astro-bosss
POM_DEVELOPER_NAME=Baris Salih Babacan

SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots
RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2

android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.caching=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Sep 02 13:30:49 KST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
Loading