Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

ren 2

Manav Rathi10a51a0b0010
diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lock
index 47196f6804..3ffd42f3f4 100644
--- a/mobile/apps/photos/pubspec.lock
+++ b/mobile/apps/photos/pubspec.lock
@@ -623,6 +623,13 @@ packages:
relative: true
source: path
version: "0.0.1"
+ ente_photos_rust:
+ dependency: "direct main"
+ description:
+ path: rust_builder
+ relative: true
+ source: path
+ version: "0.0.1"
ente_rust:
dependency: "direct main"
description:
@@ -2306,13 +2313,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.0.16"
- rust_lib_photos:
- dependency: "direct main"
- description:
- path: rust_builder
- relative: true
- source: path
- version: "0.0.1"
rxdart:
dependency: transitive
description:
diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yaml
index 581874850e..efab33486b 100644
--- a/mobile/apps/photos/pubspec.yaml
+++ b/mobile/apps/photos/pubspec.yaml
@@ -193,7 +193,7 @@ dependencies:
url: https://github.com/KasemJaffer/receive_sharing_intent.git
ref: 2cea396
rive: 0.14.0-dev.13
- rust_lib_photos:
+ ente_photos_rust:
path: rust_builder
screenshot: ^3.0.0
scrollable_positioned_list: ^0.3.5
diff --git a/mobile/apps/photos/rust/Cargo.lock b/mobile/apps/photos/rust/Cargo.lock
index f439d8c785..e24da77917 100644
--- a/mobile/apps/photos/rust/Cargo.lock
+++ b/mobile/apps/photos/rust/Cargo.lock
@@ -309,6 +309,14 @@ dependencies = [
"crypto-common",
]
+[[package]]
+name = "ente-photos-rust"
+version = "0.0.1"
+dependencies = [
+ "flutter_rust_bridge",
+ "usearch",
+]
+
[[package]]
name = "env_filter"
version = "0.1.3"
@@ -706,14 +714,6 @@ version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
-[[package]]
-name = "rust_lib_photos"
-version = "0.0.1"
-dependencies = [
- "flutter_rust_bridge",
- "usearch",
-]
-
[[package]]
name = "rustc-demangle"
version = "0.1.23"
diff --git a/mobile/apps/photos/rust_builder/android/build.gradle b/mobile/apps/photos/rust_builder/android/build.gradle
index 5239261a2e..7c6ecec988 100644
--- a/mobile/apps/photos/rust_builder/android/build.gradle
+++ b/mobile/apps/photos/rust_builder/android/build.gradle
@@ -1,6 +1,6 @@
// The Android Gradle Plugin builds the native code with the Android NDK.
-group 'com.flutter_rust_bridge.rust_lib_photos'
+group 'com.flutter_rust_bridge.ente_photos_rust'
version '1.0'
buildscript {
@@ -26,7 +26,7 @@ apply plugin: 'com.android.library'
android {
if (project.android.hasProperty("namespace")) {
- namespace 'com.flutter_rust_bridge.rust_lib_photos'
+ namespace 'com.flutter_rust_bridge.ente_photos_rust'
}
// Bumping the plugin compileSdkVersion requires all clients of this plugin
@@ -52,5 +52,5 @@ android {
apply from: "../cargokit/gradle/plugin.gradle"
cargokit {
manifestDir = "../../rust"
- libname = "rust_lib_photos"
+ libname = "ente_photos_rust"
}
diff --git a/mobile/apps/photos/rust_builder/android/settings.gradle b/mobile/apps/photos/rust_builder/android/settings.gradle
index 48e7a64ca7..51762cbd45 100644
--- a/mobile/apps/photos/rust_builder/android/settings.gradle
+++ b/mobile/apps/photos/rust_builder/android/settings.gradle
@@ -1 +1 @@
-rootProject.name = 'rust_lib_photos'
+rootProject.name = 'ente_photos_rust'
diff --git a/mobile/apps/photos/rust_builder/android/src/main/AndroidManifest.xml b/mobile/apps/photos/rust_builder/android/src/main/AndroidManifest.xml
index b80e4df687..d339cfb864 100644
--- a/mobile/apps/photos/rust_builder/android/src/main/AndroidManifest.xml
+++ b/mobile/apps/photos/rust_builder/android/src/main/AndroidManifest.xml
@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.flutter_rust_bridge.rust_lib_photos">
+ package="com.flutter_rust_bridge.ente_photos_rust">
</manifest>
diff --git a/mobile/apps/photos/rust_builder/ios/rust_lib_photos.podspec b/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
similarity index 84%
rename from mobile/apps/photos/rust_builder/ios/rust_lib_photos.podspec
rename to mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
index 16d34d0103..1d9a38b262 100644
--- a/mobile/apps/photos/rust_builder/ios/rust_lib_photos.podspec
+++ b/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
@@ -1,9 +1,9 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
-# Run `pod lib lint rust_lib_photos.podspec` to validate before publishing.
+# Run `pod lib lint ente_photos_rust.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
- s.name = 'rust_lib_photos'
+ s.name = 'ente_photos_rust'
s.version = '0.0.1'
s.summary = 'A new Flutter FFI plugin project.'
s.description = <<-DESC
@@ -29,17 +29,17 @@ A new Flutter FFI plugin project.
s.script_phase = {
:name => 'Build Rust library',
# First argument is relative path to the `rust` folder, second is name of rust library
- :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../../rust rust_lib_photos',
+ :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../../rust ente_photos_rust',
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let XCode know that the static library referenced in -force_load below is
# created by this build step.
- :output_files => ["${BUILT_PRODUCTS_DIR}/librust_lib_photos.a"],
+ :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_rust.a"],
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
# Flutter.framework does not contain a i386 slice.
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
- 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/librust_lib_photos.a -lc++',
+ 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libente_photos_rust.a -lc++',
}
-end
\ No newline at end of file
+end
diff --git a/mobile/apps/photos/rust_builder/linux/CMakeLists.txt b/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
index e6656c9227..04f143f1ff 100644
--- a/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
+++ b/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
@@ -4,16 +4,16 @@
cmake_minimum_required(VERSION 3.10)
# Project-level configuration.
-set(PROJECT_NAME "rust_lib_photos")
+set(PROJECT_NAME "ente_photos_rust")
project(${PROJECT_NAME} LANGUAGES CXX)
include("../cargokit/cmake/cargokit.cmake")
-apply_cargokit(${PROJECT_NAME} ../../rust rust_lib_photos "")
+apply_cargokit(${PROJECT_NAME} ../../rust ente_photos_rust "")
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
# external build triggered from this build file.
-set(rust_lib_photos_bundled_libraries
+set(ente_photos_rust_bundled_libraries
"${${PROJECT_NAME}_cargokit_lib}"
PARENT_SCOPE
)
diff --git a/mobile/apps/photos/rust_builder/macos/rust_lib_photos.podspec b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
similarity index 83%
rename from mobile/apps/photos/rust_builder/macos/rust_lib_photos.podspec
rename to mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
index e929e5848e..8fe3ad408e 100644
--- a/mobile/apps/photos/rust_builder/macos/rust_lib_photos.podspec
+++ b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
@@ -1,9 +1,9 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
-# Run `pod lib lint rust_lib_photos.podspec` to validate before publishing.
+# Run `pod lib lint ente_photos_rust.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
- s.name = 'rust_lib_photos'
+ s.name = 'ente_photos_rust'
s.version = '0.0.1'
s.summary = 'A new Flutter FFI plugin project.'
s.description = <<-DESC
@@ -28,17 +28,17 @@ A new Flutter FFI plugin project.
s.script_phase = {
:name => 'Build Rust library',
# First argument is relative path to the `rust` folder, second is name of rust library
- :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../../rust rust_lib_photos',
+ :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../../rust ente_photos_rust',
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let XCode know that the static library referenced in -force_load below is
# created by this build step.
- :output_files => ["${BUILT_PRODUCTS_DIR}/librust_lib_photos.a"],
+ :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_rust.a"],
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
# Flutter.framework does not contain a i386 slice.
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
- 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/librust_lib_photos.a -lc++',
+ 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libente_photos_rust.a -lc++',
}
-end
\ No newline at end of file
+end
diff --git a/mobile/apps/photos/rust_builder/pubspec.yaml b/mobile/apps/photos/rust_builder/pubspec.yaml
index 2be7b960ab..e86d9ea0cd 100644
--- a/mobile/apps/photos/rust_builder/pubspec.yaml
+++ b/mobile/apps/photos/rust_builder/pubspec.yaml
@@ -1,4 +1,4 @@
-name: rust_lib_photos
+name: ente_photos_rust
description: "Utility to build Rust code"
version: 0.0.1
publish_to: none
diff --git a/mobile/apps/photos/rust_builder/windows/CMakeLists.txt b/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
index 4640016d5c..2855aa5211 100644
--- a/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
+++ b/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
@@ -5,16 +5,16 @@
cmake_minimum_required(VERSION 3.14)
# Project-level configuration.
-set(PROJECT_NAME "rust_lib_photos")
+set(PROJECT_NAME "ente_photos_rust")
project(${PROJECT_NAME} LANGUAGES CXX)
include("../cargokit/cmake/cargokit.cmake")
-apply_cargokit(${PROJECT_NAME} ../../../../../../rust rust_lib_photos "")
+apply_cargokit(${PROJECT_NAME} ../../../../../../rust ente_photos_rust "")
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
# external build triggered from this build file.
-set(rust_lib_photos_bundled_libraries
+set(ente_photos_rust_bundled_libraries
"${${PROJECT_NAME}_cargokit_lib}"
PARENT_SCOPE
)