11import java.util.Properties
22
3+ enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
4+
35pluginManagement {
46 repositories {
57 maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
@@ -25,13 +27,6 @@ dependencyResolutionManagement {
2527 maven(" https://jitpack.io" ) {
2628 content { includeGroup(" com.github.requery" ) }
2729 }
28- maven {
29- url = uri(" https://maven.pkg.github.com/powersync-ja/powersync-kotlin" )
30- credentials {
31- username = localProperties.getProperty(" GITHUB_USERNAME" , " " )
32- password = localProperties.getProperty(" GITHUB_TOKEN" , " " )
33- }
34- }
3530 }
3631}
3732
@@ -45,12 +40,18 @@ include(":androidApp")
4540include(" :shared" )
4641include(" :desktopApp" )
4742
48- includeBuild(" ../.." ) {
49- dependencySubstitution {
50- substitute(module(" com.powersync:core" ))
51- .using(project(" :core" )).because(" we want to auto-wire up sample dependency" )
52- substitute(module(" com.powersync:connector-supabase" ))
53- .using(project(" :connectors:supabase" ))
54- .because(" we want to auto-wire up sample dependency" )
43+ val useReleasedVersions = localProperties.getProperty(" USE_RELEASED_POWERSYNC_VERSIONS" ) == " true"
44+
45+ if (! useReleasedVersions) {
46+ includeBuild(" ../.." ) {
47+ dependencySubstitution {
48+ substitute(module(" com.powersync:core" ))
49+ .using(project(" :core" )).because(" we want to auto-wire up sample dependency" )
50+ substitute(module(" com.powersync:persistence" ))
51+ .using(project(" :persistence" )).because(" we want to auto-wire up sample dependency" )
52+ substitute(module(" com.powersync:connector-supabase" ))
53+ .using(project(" :connectors:supabase" ))
54+ .because(" we want to auto-wire up sample dependency" )
55+ }
5556 }
56- }
57+ }
0 commit comments