Skip to content

Commit

Permalink
add kotlin buildscript + dependencies?
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Sep 25, 2023
1 parent 6c1feaf commit f1d18a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
apply plugin: 'com.android.application'

buildscript {
ext.kotlin_version = '1.5.20'

repositories {
google()
jcenter()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

android {
namespace "org.outline.sdk.connectivity"
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
dependencies {
implementation files('../../../shared_backend/output/SharedBackend.aar')
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'
}// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN

android {
compileOptions {
Expand All @@ -8,12 +11,6 @@ android {
}

apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {


implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0'
implementation files('../../../shared_backend/output/SharedBackend.aar')
}


if (hasProperty('postBuildExtras')) {
Expand Down
5 changes: 4 additions & 1 deletion x/examples/outline-connectivity-app/app_mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
"name": "app_mobile",
"scripts": {
"build": "concurrently 'yarn:build:*'",
"build:android": "yarn setup:android && cap build android",
"build:frontend": "vite build",
"build:ios": "yarn setup:ios && cap build ios",
"clean": "rm -rf output node_modules ios/capacitor-cordova-ios-plugins ios/App/App.xcarchive ios/App/App.xcodeproj/xcuserdata ios/App/App.xcworkspace/xcuserdata ios/App/Pods ios/App/App/public ios/App/App/capacitor.config.json ios/App/App/config.xml",
"setup:android": "yarn build:frontend && cap sync android",
"setup:ios": "yarn build:frontend && cap sync ios",
"watch": "concurrently 'yarn:watch:*'",
"watch:android": "yarn setup:android && cap open android",
"watch:frontend": "vite",
"watch:ios": "yarn setup:ios && cap open ios"
},
"version": "0.0.0"
}
}

0 comments on commit f1d18a8

Please sign in to comment.