Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion android-java/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ androidComponents {

android {
namespace = "com.example.dittotasks"
compileSdk = 35
compileSdk = 36

defaultConfig {
applicationId = "com.example.dittotasks"
Expand Down
7 changes: 3 additions & 4 deletions android-java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation"
tools:targetApi="s" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
android:maxSdkVersion="30" />
android:maxSdkVersion="32"
tools:replace="android:maxSdkVersion" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down Expand Up @@ -50,4 +49,4 @@
</activity>
</application>

</manifest>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ void requestPermissions() {
}
if (Build.VERSION.SDK_INT <= 32) {
permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);
}
if (Build.VERSION.SDK_INT <= 30) {
permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
Expand Down
6 changes: 3 additions & 3 deletions android-java/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
ditto = "5.1.0"
agp = "8.7.3"
kotlin = "2.0.0"
ditto = "5.2.0"
agp = "8.9.3"
kotlin = "2.3.20"
coreKtx = "1.10.1"
junit = "4.13.2"
junitVersion = "1.2.1"
Expand Down
2 changes: 1 addition & 1 deletion android-java/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 16 12:07:45 EST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion android-kotlin/QuickStartTasks/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ appcompat = "1.7.1"
datastorePreferences = "1.2.1"
koin-bom = "4.2.1"
coroutines-tests = "1.10.2"
ditto = "5.1.0"
ditto = "5.2.0"
monitor = "1.8.0"
json = "20240303"

Expand Down
9 changes: 5 additions & 4 deletions cpp-tui/taskscpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ add_executable(taskscpp ${SOURCES})
add_dependencies(taskscpp env_h)

# Include the Ditto SDK header and link with the Ditto SDK
target_include_directories(taskscpp PRIVATE sdk)
set(DITTO_SDK_DIR "${CMAKE_SOURCE_DIR}/sdk" CACHE PATH "Ditto SDK header and static library directory")
target_include_directories(taskscpp PRIVATE "${DITTO_SDK_DIR}")
# Note: we are using an absolute path here (rather than unqualified path
# with `target_link_directories`) to make updates to the `libditto.a` artifact
# (e.g., from having recompiled the monorepo's C++ SDK or whatnot) force cmake
# to redo the linkage step.
target_link_libraries(taskscpp PRIVATE ${CMAKE_SOURCE_DIR}/sdk/libditto.a)
target_link_libraries(taskscpp PRIVATE "${DITTO_SDK_DIR}/libditto.a")

if(DITTO_QUICKSTART_TUI)
target_compile_definitions(taskscpp PRIVATE DITTO_QUICKSTART_TUI)
Expand All @@ -92,8 +93,8 @@ if(BUILD_TESTS)
src/tasks_repository.cpp
src/tasks_log.cpp
)
target_include_directories(integration_test PRIVATE src sdk third_party/cxxopts/include)
target_link_libraries(integration_test PRIVATE ${CMAKE_SOURCE_DIR}/sdk/libditto.a)
target_include_directories(integration_test PRIVATE src "${DITTO_SDK_DIR}" third_party/cxxopts/include)
target_link_libraries(integration_test PRIVATE "${DITTO_SDK_DIR}/libditto.a")
add_dependencies(integration_test env_h)
add_test(NAME IntegrationTests COMMAND integration_test)

Expand Down
29 changes: 17 additions & 12 deletions cpp-tui/taskscpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BUILD_TYPE ?= Debug

# Ditto SDK version and platform detection
DITTO_SDK_VERSION ?= 5.1.0
DITTO_SDK_VERSION ?= 5.2.0
PLATFORM := $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH := $(shell uname -m)

Expand All @@ -19,6 +19,8 @@ else
$(error Unsupported platform: $(PLATFORM))
endif

DITTO_SDK_DIR ?= $(CURDIR)/sdk/$(DITTO_SDK_VERSION)/$(DITTO_PLATFORM)

DITTO_SDK_URL = https://software.ditto.live/$(DITTO_PLATFORM)/Ditto/$(DITTO_SDK_VERSION)/dist/Ditto.tar.gz

# Utility paths
Expand Down Expand Up @@ -47,30 +49,33 @@ help: ## (default) Displays this message

.PHONY: build
build: download-sdk ## Generates all targets (downloads SDK first)
$(CMAKE) -B $(BUILD_DIR) . -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Wno-dev
$(CMAKE) -B $(BUILD_DIR) . -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DDITTO_SDK_DIR="$(DITTO_SDK_DIR)" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Wno-dev
$(CMAKE) --build $(BUILD_DIR) --parallel

.PHONY: download-sdk
download-sdk: ## Downloads and installs the Ditto C++ SDK
@echo "📥 Downloading Ditto C++ SDK v$(DITTO_SDK_VERSION) for $(DITTO_PLATFORM)..."
@if [ ! -f sdk/Ditto.h ] || [ ! -f sdk/libditto.a ]; then \
mkdir -p sdk; \
if curl -L -f $(DITTO_SDK_URL) | tar xz --strip-components=0 -C sdk/; then \
echo "✅ Ditto C++ SDK v$(DITTO_SDK_VERSION) installed successfully"; \
@if [ ! -f "$(DITTO_SDK_DIR)/.complete" ] || [ ! -f "$(DITTO_SDK_DIR)/Ditto.h" ] || [ ! -f "$(DITTO_SDK_DIR)/libditto.a" ]; then \
mkdir -p "$(DITTO_SDK_DIR)"; \
rm -f "$(DITTO_SDK_DIR)/.complete"; \
archive=$$(mktemp); \
trap 'rm -f "$$archive"' EXIT HUP INT TERM; \
if curl -L -f "$(DITTO_SDK_URL)" -o "$$archive" && \
tar xzf "$$archive" -C "$(DITTO_SDK_DIR)" && \
test -f "$(DITTO_SDK_DIR)/Ditto.h" && test -f "$(DITTO_SDK_DIR)/libditto.a"; then \
touch "$(DITTO_SDK_DIR)/.complete"; \
echo "Ditto C++ SDK v$(DITTO_SDK_VERSION) installed successfully"; \
else \
echo "❌ Failed to download SDK for $(DITTO_PLATFORM)"; \
echo "💡 The Ditto C++ SDK only supports Linux x64/ARM64 platforms"; \
echo "💡 macOS and Windows are not supported by Ditto C++ SDK"; \
echo "💡 See: https://docs.ditto.live/reference/compatibility/cpp"; \
echo "Failed to download SDK for $(DITTO_PLATFORM)" >&2; \
exit 1; \
fi; \
else \
echo "✅ Ditto C++ SDK already installed"; \
echo "Ditto C++ SDK v$(DITTO_SDK_VERSION) already installed"; \
fi

.PHONY: build-no-tui
build-no-tui: ## Generates all targets, without TUI support
$(CMAKE) -B $(BUILD_DIR) . -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Wno-dev -DDITTO_QUICKSTART_TUI=OFF
$(CMAKE) -B $(BUILD_DIR) . -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DDITTO_SDK_DIR="$(DITTO_SDK_DIR)" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Wno-dev -DDITTO_QUICKSTART_TUI=OFF
$(CMAKE) --build $(BUILD_DIR) --parallel

.PHONY: run-help
Expand Down
2 changes: 1 addition & 1 deletion dotnet-maui/DittoMauiTasksApp/DittoMauiTasksApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.1" />
<PackageReference Include="Ditto" Version="5.1.0" />
<PackageReference Include="Ditto" Version="5.2.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
Expand Down
3 changes: 2 additions & 1 deletion dotnet-maui/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestPatch"
"rollForward": "latestPatch",
"workloadVersion": "10.0.107"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="Ditto" Version="5.1.0" />
<PackageReference Include="Ditto" Version="5.2.0" />
<PackageReference Include="Terminal.Gui" Version="1.17.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ditto" Version="5.1.0" />
<PackageReference Include="Ditto" Version="5.2.0" />
<PackageReference Include="Terminal.Gui" Version="1.17.1" />
</ItemGroup>

Expand Down
14 changes: 9 additions & 5 deletions dotnet-winforms-net48/Taskapp.WinForms.Net48.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,22 @@
prerelease builds like 5.0.0-rc.1 (4-part fusion versions cannot
encode a prerelease suffix). -->
<Reference Include="Ditto">
<HintPath>packages\Ditto.5.1.0\lib\netstandard2.0\Ditto.dll</HintPath>
<HintPath>packages\Ditto.5.2.0\lib\netstandard2.0\Ditto.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="Ditto.Native.Linux, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Ditto.Native.Linux.5.1.0\lib\netstandard2.0\Ditto.Native.Linux.dll</HintPath>
<HintPath>packages\Ditto.Native.Linux.5.2.0\lib\netstandard2.0\Ditto.Native.Linux.dll</HintPath>
</Reference>
<Reference Include="Ditto.Native.MacOS, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Ditto.Native.MacOS.5.1.0\lib\netstandard2.0\Ditto.Native.MacOS.dll</HintPath>
<HintPath>packages\Ditto.Native.MacOS.5.2.0\lib\netstandard2.0\Ditto.Native.MacOS.dll</HintPath>
</Reference>
<Reference Include="Ditto.Native.Win, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Ditto.Native.Win.5.1.0\lib\netstandard2.0\Ditto.Native.Win.dll</HintPath>
<HintPath>packages\Ditto.Native.Win.5.2.0\lib\netstandard2.0\Ditto.Native.Win.dll</HintPath>
</Reference>
<Content Include="packages\Ditto.Native.Win.5.2.0\runtimes\win-x64\native\dittoffi.dll">
<Link>dittoffi.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -158,4 +162,4 @@
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
8 changes: 4 additions & 4 deletions dotnet-winforms-net48/packages.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Ditto" version="5.1.0" targetFramework="net48" />
<package id="Ditto.Native.Linux" version="5.1.0" targetFramework="net48" />
<package id="Ditto.Native.MacOS" version="5.1.0" targetFramework="net48" />
<package id="Ditto.Native.Win" version="5.1.0" targetFramework="net48" />
<package id="Ditto" version="5.2.0" targetFramework="net48" />
<package id="Ditto.Native.Linux" version="5.2.0" targetFramework="net48" />
<package id="Ditto.Native.MacOS" version="5.2.0" targetFramework="net48" />
<package id="Ditto.Native.Win" version="5.2.0" targetFramework="net48" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net48" />
<package id="Microsoft.Bcl.HashCode" version="1.1.1" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net48" />
Expand Down
2 changes: 1 addition & 1 deletion dotnet-winforms/IntegrationTest/IntegrationTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ditto" Version="5.1.0" />
<PackageReference Include="Ditto" Version="5.2.0" />
<PackageReference Include="System.Text.Json" Version="9.0.4" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion dotnet-winforms/TasksApp/DittoTasksApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ditto" Version="5.1.0" />
<PackageReference Include="Ditto" Version="5.2.0" />
<PackageReference Include="System.Text.Json" Version="9.0.4" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"format": "prettier --write ."
},
"dependencies": {
"@dittolive/ditto": "5.1.0",
"@dittolive/ditto": "5.2.0",
"dotenv": "^16.4.5"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions flutter_app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (localPropertiesFile.exists()) {

android {
namespace "com.example.flutter_quickstart"
compileSdkVersion flutter.compileSdkVersion
compileSdkVersion Math.max(36, flutter.compileSdkVersion)
ndkVersion "27.0.12077973"

compileOptions {
Expand Down Expand Up @@ -66,4 +66,4 @@ dependencies {
// Cannot upgrade beyond these versions due to strict version requirements
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
}
4 changes: 0 additions & 4 deletions flutter_app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation"
tools:targetApi="s" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
6 changes: 3 additions & 3 deletions flutter_app/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.7.3" apply false
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
id "com.android.application" version "8.9.3" apply false
id "org.jetbrains.kotlin.android" version "2.3.20" apply false
}

include ":app"
include ":app"
18 changes: 9 additions & 9 deletions flutter_app/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- ditto_live (5.0.3):
- DittoFlutter (= 5.0.3)
- ditto_live (5.2.0):
- DittoFlutter (= 5.2.0)
- Flutter
- DittoFlutter (5.0.3)
- DittoFlutter (5.2.0)
- Flutter (1.0.0)
- integration_test (0.0.1):
- Flutter
Expand Down Expand Up @@ -36,12 +36,12 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/permission_handler_apple/ios"

SPEC CHECKSUMS:
ditto_live: 16373b211bdc6534b7f45aa17f4632f47dc1bcc6
DittoFlutter: 411f743ae08d4802a69c508a055aecfde62a51dc
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d
ditto_live: 0d9af51bf28bbcb0fd78e46ee98443d7487783ab
DittoFlutter: 2371cb48b3f4ff64d74ace46d2a5ca5b623c8c84
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2

PODFILE CHECKSUM: 1959d098c91d8a792531a723c4a9d7e9f6a01e38

Expand Down
14 changes: 7 additions & 7 deletions flutter_app/macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- ditto_live (5.0.3):
- DittoFlutter (= 5.0.3)
- ditto_live (5.2.0):
- DittoFlutter (= 5.2.0)
- FlutterMacOS
- DittoFlutter (5.0.3)
- DittoFlutter (5.2.0)
- FlutterMacOS (1.0.0)
- path_provider_foundation (0.0.1):
- Flutter
Expand All @@ -26,10 +26,10 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin

SPEC CHECKSUMS:
ditto_live: 7a7a743bf633abefcd67d1f7ad1e7f9b21e33417
DittoFlutter: 411f743ae08d4802a69c508a055aecfde62a51dc
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
ditto_live: 3269aecea88b75c61f99a6f6c5b746b9f947e7d3
DittoFlutter: 2371cb48b3f4ff64d74ace46d2a5ca5b623c8c84
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46

PODFILE CHECKSUM: 1e95c36afbfd1cb6423ceca4de7a8e1b256fb6ac

Expand Down
Loading
Loading