Skip to content

Commit cb225a8

Browse files
authored
Merge pull request #480 from cph-cachet/updating_gradle
Updating gradle and packages
2 parents f50db4f + 5e40bed commit cb225a8

File tree

6 files changed

+38
-37
lines changed

6 files changed

+38
-37
lines changed

backends/carp_webservices/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.6.0
2+
3+
* updating gradle file structure
4+
* bumping oidc version
5+
16
## 3.5.2
27

38
* fix of issues [#457](https://github.com/cph-cachet/carp.sensing-flutter/issues/457)

backends/carp_webservices/example/android/app/build.gradle

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,10 +22,6 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
2926
// compileSdkVersion flutter.compileSdkVersion
3027
compileSdkVersion 34
@@ -70,6 +67,4 @@ flutter {
7067
source '../..'
7168
}
7269

73-
dependencies {
74-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
75-
}
70+
dependencies {}

backends/carp_webservices/example/android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.8.0'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
141
allprojects {
152
repositories {
163
google()
Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
511

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
818

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "7.3.0" apply false
22+
id "org.jetbrains.kotlin.android" version "1.8.0" apply false
23+
}
24+
25+
include ":app"

backends/carp_webservices/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
carp_webservices:
2222
path: ../
2323

24-
oidc: ^0.7.0
24+
oidc: ^0.9.0+1
2525

2626
dev_dependencies:
2727

backends/carp_webservices/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: carp_webservices
22
description: Flutter API for accessing the CARP web services - authentication, file management, data points, and app-specific collections of documents.
3-
version: 3.5.2
4-
homepage: https://github.com/cph-cachet/carp.sensing-flutter/tree/master/backends/carp_webservices
3+
version: 3.6.0
4+
homepage: https://github.com/cph-cachet/carp.sensing-flutter/tree/main/backends/carp_webservices
55

66
environment:
77
sdk: ">=3.2.0 <4.0.0"
@@ -21,7 +21,7 @@ dependencies:
2121
meta: ^1.7.0
2222
url_launcher: ^6.0.9
2323
jwt_decoder: ^2.0.1
24-
oidc: ^0.7.0
24+
oidc: ^0.9.0+1
2525
oidc_default_store: ^0.2.0+8
2626

2727
# Overriding carp libraries to use the local copy

0 commit comments

Comments
 (0)