Skip to content

Commit cf68169

Browse files
authored
Merge pull request #74 from NeoUtils/develop
Release v3.1.0 - Save sample text
2 parents cdb5259 + 4f0fffc commit cf68169

File tree

117 files changed

+1734
-902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1734
-902
lines changed

.idea/.gitignore

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Create and validate regular expressions easily, anywhere.
99
</p>
1010

1111
<p align="center">
12-
<img src="images/desktop/linux_matcher_dark.png" alt="NeoRegex desktop app"/>
12+
<img src="images/desktop/linux_validator_email_dark.png" alt="NeoRegex desktop app"/>
1313
</p>
1414

1515
<p align="center">

application/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/neoregex-db.db

application/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ kotlin {
4343
implementation(projects.core.sharedUi)
4444
implementation(projects.core.datasource)
4545
implementation(projects.core.database)
46-
implementation(projects.core.dispatcher)
4746
implementation(projects.core.repository)
4847
implementation(projects.core.manager)
4948

application/installation/com.neoutils.NeoRegex.metainfo.xml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,40 @@
4242
<screenshots>
4343
<screenshot type="default">
4444
<image>
45-
https://raw.githubusercontent.com/NeoUtils/NeoRegex/97481608a77d299cc49f40d0515317dd2a28f5ae/images/desktop/linux_matcher_dark.png
45+
https://raw.githubusercontent.com/NeoUtils/NeoRegex/87560d8aab8b96937c7e9031cdd9df4501de34b8/images/desktop/linux_matcher_xml_dark.png
4646
</image>
4747
<caption>Match viewer</caption>
4848
</screenshot>
4949

5050
<screenshot>
5151
<image>
52-
https://raw.githubusercontent.com/NeoUtils/NeoRegex/97481608a77d299cc49f40d0515317dd2a28f5ae/images/desktop/linux_validator_dark.png
52+
https://raw.githubusercontent.com/NeoUtils/NeoRegex/87560d8aab8b96937c7e9031cdd9df4501de34b8/images/desktop/linux_validator_xml_dark.png
5353
</image>
5454
<caption>Test case validator</caption>
5555
</screenshot>
5656

5757
<screenshot>
5858
<image>
59-
https://raw.githubusercontent.com/NeoUtils/NeoRegex/97481608a77d299cc49f40d0515317dd2a28f5ae/images/desktop/linux_saved_dark.png
59+
https://raw.githubusercontent.com/NeoUtils/NeoRegex/87560d8aab8b96937c7e9031cdd9df4501de34b8/images/desktop/linux_saved_dark.png
6060
</image>
6161
<caption>Local pattern storage</caption>
6262
</screenshot>
6363
</screenshots>
6464

6565
<releases>
66+
<release version="3.1.0" date="2025-04-20">
67+
<description>
68+
<p>Small improvements and adjustments.</p>
69+
<ul>
70+
<li>Save sample text</li>
71+
<li>Typography improvements</li>
72+
<li>Dimensions improvements</li>
73+
<li>Change minimum window size</li>
74+
<li>Improve shortcuts</li>
75+
<li>Bug fixes</li>
76+
</ul>
77+
</description>
78+
</release>
6679

6780
<release version="3.0.0" date="2025-03-31">
6881
<description>
@@ -88,7 +101,7 @@
88101

89102
<release version="2.4.0" date="2024-12-20">
90103
<description>
91-
<p>User experience improvements.</p>
104+
<p>User interface improvements.</p>
92105
<ul>
93106
<li>Manual theme selection</li>
94107
<li>Persistence of preferences</li>
@@ -99,7 +112,7 @@
99112

100113
<release version="2.3.0" date="2024-11-09">
101114
<description>
102-
<p>Performance information.</p>
115+
<p>Small improvements and adjustments.</p>
103116
<ul>
104117
<li>Performance information label</li>
105118
<li>New fatal error window</li>
@@ -109,7 +122,7 @@
109122

110123
<release version="2.2.1" date="2024-11-01">
111124
<description>
112-
<p>User experience improvements.</p>
125+
<p>User interface improvements.</p>
113126
<ul>
114127
<li>New visual identity for the window.</li>
115128
<li>Improved theme detection.</li>
@@ -120,11 +133,11 @@
120133

121134
<release version="2.0.0" date="2024-09-18">
122135
<description>
123-
<p>Desktop version debuts.</p>
136+
<p>First desktop version.</p>
124137
<ul>
125-
<li>Match visualization in the text editor.</li>
126-
<li>Capture group visualization of the match.</li>
127-
<li>Undo and redo for the text editor and pattern editor</li>
138+
<li>Match visualization.</li>
139+
<li>Capture group visualization.</li>
140+
<li>Integrated undo and redo.</li>
128141
</ul>
129142
</description>
130143
</release>

application/src/androidMain/kotlin/com/neoutils/neoregex/App.android.kt

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,40 @@
1919
package com.neoutils.neoregex
2020

2121
import androidx.compose.foundation.layout.WindowInsets
22+
import androidx.compose.foundation.layout.height
2223
import androidx.compose.foundation.layout.padding
2324
import androidx.compose.foundation.layout.safeDrawing
24-
import androidx.compose.material3.CenterAlignedTopAppBar
25-
import androidx.compose.material3.ExperimentalMaterial3Api
25+
import androidx.compose.material3.*
2626
import androidx.compose.material3.MaterialTheme.colorScheme
27-
import androidx.compose.material3.Scaffold
28-
import androidx.compose.material3.TopAppBarDefaults
27+
import androidx.compose.material3.MaterialTheme.typography
2928
import androidx.compose.runtime.Composable
30-
import androidx.compose.runtime.collectAsState
3129
import androidx.compose.runtime.getValue
3230
import androidx.compose.ui.Modifier
3331
import androidx.compose.ui.graphics.RectangleShape
3432
import androidx.compose.ui.platform.LocalDensity
3533
import androidx.compose.ui.unit.Dp
36-
import androidx.compose.ui.unit.dp
34+
import androidx.lifecycle.compose.collectAsStateWithLifecycle
3735
import com.neoutils.neoregex.core.common.util.ColorTheme
3836
import com.neoutils.neoregex.core.common.util.rememberColorTheme
3937
import com.neoutils.neoregex.core.datasource.PreferencesDataSource
4038
import com.neoutils.neoregex.core.datasource.model.Preferences
4139
import com.neoutils.neoregex.core.designsystem.theme.NeoTheme
4240
import com.neoutils.neoregex.core.designsystem.theme.NeoTheme.dimensions
43-
import com.neoutils.neoregex.core.sharedui.component.Context
41+
import com.neoutils.neoregex.core.designsystem.theme.TopBarHeight
42+
import com.neoutils.neoregex.core.resources.Res
43+
import com.neoutils.neoregex.core.resources.app_name
4444
import com.neoutils.neoregex.core.sharedui.component.Controller
4545
import com.neoutils.neoregex.core.sharedui.component.Options
4646
import com.neoutils.neoregex.core.sharedui.extension.surface
47+
import org.jetbrains.compose.resources.stringResource
4748
import org.koin.compose.koinInject
4849

4950
@Composable
5051
fun AndroidApp() {
5152

5253
val preferencesDataSource = koinInject<PreferencesDataSource>()
5354

54-
val preferences by preferencesDataSource.flow.collectAsState()
55+
val preferences by preferencesDataSource.flow.collectAsStateWithLifecycle()
5556

5657
NeoTheme(
5758
colorTheme = when (preferences.colorTheme) {
@@ -73,24 +74,29 @@ fun AndroidApp() {
7374
@Composable
7475
private fun NeoAppBar(
7576
modifier: Modifier = Modifier,
76-
shadowElevation: Dp = dimensions.tiny,
77-
height: Dp = 55.dp
77+
shadowElevation: Dp = dimensions.nano.m,
78+
height: Dp = TopBarHeight
7879
) = CenterAlignedTopAppBar(
7980
navigationIcon = {
8081
Controller(
81-
modifier = Modifier.padding(
82-
start = dimensions.tiny
83-
)
82+
modifier = Modifier
83+
.padding(start = dimensions.nano.m)
84+
.height(dimensions.large.x)
8485
)
8586
},
8687
title = {
87-
Context()
88+
Text(
89+
text = stringResource(Res.string.app_name),
90+
style = typography.titleLarge.copy(
91+
fontFamily = null
92+
)
93+
)
8894
},
8995
actions = {
9096
Options(
91-
modifier = Modifier.padding(
92-
end = dimensions.small
93-
)
97+
modifier = Modifier
98+
.padding(end = dimensions.small.s)
99+
.height(dimensions.large.x)
94100
)
95101
},
96102
modifier = modifier.surface(

application/src/androidMain/kotlin/com/neoutils/neoregex/NeoAndroidApp.kt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,30 @@
1919
package com.neoutils.neoregex
2020

2121
import android.app.Application
22-
import android.content.Context
22+
import com.neoutils.neoregex.core.common.di.commonModule
2323
import com.neoutils.neoregex.core.database.di.databaseModule
2424
import com.neoutils.neoregex.core.datasource.di.dataSourceModule
25-
import com.neoutils.neoregex.core.dispatcher.di.dispatcherModule
2625
import com.neoutils.neoregex.core.manager.di.managerModule
2726
import com.neoutils.neoregex.core.repository.di.repositoryModule
2827
import com.neoutils.neoregex.feature.matcher.di.matcherModule
2928
import com.neoutils.neoregex.feature.saved.di.savedModule
3029
import com.neoutils.neoregex.feature.validator.di.validatorModule
30+
import org.koin.android.ext.koin.androidContext
3131
import org.koin.core.context.GlobalContext.startKoin
32-
import org.koin.dsl.module
3332

3433
class NeoAndroidApp : Application() {
3534

36-
private val module = module {
37-
single<Context> { applicationContext }
38-
}
39-
4035
override fun onCreate() {
4136
super.onCreate()
4237

4338
startKoin {
39+
androidContext(this@NeoAndroidApp)
4440
modules(
45-
module,
41+
commonModule,
4642
managerModule,
4743
dataSourceModule,
4844
databaseModule,
4945
repositoryModule,
50-
dispatcherModule,
5146
matcherModule,
5247
validatorModule,
5348
savedModule,

application/src/commonMain/kotlin/com/neoutils/neoregex/App.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import cafe.adriel.voyager.navigator.Navigator
2727
import cafe.adriel.voyager.navigator.internal.BackHandler
2828
import cafe.adriel.voyager.transitions.FadeTransition
2929
import com.neoutils.neoregex.core.designsystem.theme.NeoBackground
30-
import com.neoutils.neoregex.core.dispatcher.model.Navigation
31-
import com.neoutils.neoregex.core.dispatcher.navigator.NavigationManager
30+
import com.neoutils.neoregex.core.manager.model.Navigation
31+
import com.neoutils.neoregex.core.manager.navigator.NavigationManager
3232
import com.neoutils.neoregex.feature.about.screen.AboutScreen
3333
import com.neoutils.neoregex.feature.about.screen.LibrariesScreen
3434
import com.neoutils.neoregex.feature.matcher.MatcherScreen

0 commit comments

Comments
 (0)