@imgly/editor-react-native 1.72.3 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,30 @@ Pod::Spec.new do |s|
13
13
  s.author = package['author']
14
14
  s.source = { path: './ios' }
15
15
 
16
+ # In the monorepo, copy starter kit sources from the shared location.
17
+ # Walk up from __dir__ to find the monorepo root (.ubq-version marker),
18
+ # matching the Android approach in starter-kits-local.gradle.
19
+ ubq_root = nil
20
+ current_dir = File.expand_path(__dir__)
21
+ while current_dir != '/'
22
+ if File.exist?(File.join(current_dir, '.ubq-version'))
23
+ ubq_root = current_dir
24
+ break
25
+ end
26
+ current_dir = File.dirname(current_dir)
27
+ end
28
+
29
+ if ubq_root
30
+ copy_script = File.join(ubq_root, 'apps', 'cesdk_swift_examples',
31
+ 'starter-kits', 'copy_starter_kits_source_files.sh')
32
+ if File.executable?(copy_script)
33
+ system('bash', copy_script, File.join(__dir__, 'ios', 'StarterKits'))
34
+ end
35
+ end
36
+
16
37
  s.source_files = 'ios/**/*.{h,m,mm,swift}'
38
+ s.exclude_files = 'ios/StarterKits/**/*StarterKit.swift'
39
+ s.resources = 'ios/StarterKits/*.{scene,png}'
17
40
 
18
41
  s.dependency 'IMGLYUI', s.version.to_s
19
42
 
@@ -96,6 +96,11 @@ apply plugin: 'com.android.library'
96
96
  apply plugin: 'com.facebook.react'
97
97
  apply plugin: 'org.jetbrains.kotlin.android'
98
98
 
99
+ def starterKitsGradleFilePath = "$projectDir/../../../../../../cesdk_android_showcases/starter-kits/starter-kits-local.gradle"
100
+ if (file(starterKitsGradleFilePath).exists()) {
101
+ apply from: starterKitsGradleFilePath
102
+ }
103
+
99
104
  if (isKotlin2OrHigher()) {
100
105
  try {
101
106
  project.plugins.apply('org.jetbrains.kotlin.plugin.compose')
@@ -142,11 +147,9 @@ repositories {
142
147
  }
143
148
 
144
149
  dependencies {
145
- implementation findProject(":editor") ?: "ly.img:editor:1.72.3"
146
- implementation platform("androidx.compose:compose-bom:2023.05.01")
147
- implementation "androidx.activity:activity-compose:1.6.1"
148
- implementation "androidx.activity:activity:1.7.0"
149
- implementation "com.google.android.material:material:1.8.0"
150
+ api "ly.img:editor:1.73.0"
150
151
 
151
- implementation 'com.facebook.react:react-native'
152
+ implementation "androidx.activity:activity-ktx:1.9.0"
153
+ implementation "androidx.appcompat:appcompat:1.7.1"
154
+ implementation "com.facebook.react:react-native"
152
155
  }
@@ -2,7 +2,7 @@
2
2
  package="ly.img.editor.reactnative.module">
3
3
  <application>
4
4
  <activity
5
- android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar"
5
+ android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"
6
6
  android:name=".activity.EditorActivity" />
7
7
  </application>
8
8
  </manifest>
@@ -7,6 +7,7 @@ import android.os.Bundle
7
7
  import android.os.Parcelable
8
8
  import androidx.activity.ComponentActivity
9
9
  import androidx.activity.compose.setContent
10
+ import androidx.activity.enableEdgeToEdge
10
11
  import ly.img.editor.reactnative.module.IMGLYEditorModule
11
12
  import ly.img.editor.reactnative.module.builder.Builder
12
13
  import ly.img.editor.reactnative.module.builder.CustomBuilderScope
@@ -43,6 +44,7 @@ class EditorActivity : ComponentActivity() {
43
44
 
44
45
  override fun onCreate(savedInstanceState: Bundle?) {
45
46
  super.onCreate(savedInstanceState)
47
+ enableEdgeToEdge()
46
48
 
47
49
  val config = intent.extras?.getParcelableCompat<EditorSettings>(INTENT_EXTRA_CONFIG) ?: return
48
50
  val preset = intent.extras?.getParcelableCompat<EditorPreset>(INTENT_EXTRA_PRESET) ?: EditorPreset.DESIGN