Skip to content

Commit

Permalink
chore: reverted more formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ugurakin1 committed Oct 9, 2024
1 parent e584c62 commit fd1cfd5
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions android/src/oldarch/HealthConnectSpec.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package dev.matinzd.healthconnect

import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.bridge.ReadableMap
import com.facebook.react.bridge.*

abstract class HealthConnectSpec internal constructor(context: ReactApplicationContext) :
ReactContextBaseJavaModule(context) {
Expand All @@ -14,61 +9,47 @@ abstract class HealthConnectSpec internal constructor(context: ReactApplicationC
abstract fun getSdkStatus(providerPackageName: String, promise: Promise)

@ReactMethod
abstract fun initialize(providerPackageName: String, promise: Promise)
abstract fun initialize(providerPackageName: String, promise: Promise);

@ReactMethod
abstract fun openHealthConnectSettings()
abstract fun openHealthConnectSettings();

@ReactMethod
abstract fun openHealthConnectDataManagement(providerPackageName: String?)
abstract fun openHealthConnectDataManagement(providerPackageName: String?);

@ReactMethod
abstract fun requestPermission(
permissions: ReadableArray,
includeRoute: Boolean?,
promise: Promise
)
abstract fun requestPermission(permissions: ReadableArray, includeRoute: Boolean?, promise: Promise);

@ReactMethod
abstract fun requestExerciseRoute(recordId: String, promise: Promise)
abstract fun requestExerciseRoute(recordId: String, promise: Promise);

@ReactMethod
abstract fun getGrantedPermissions(promise: Promise)
abstract fun getGrantedPermissions(promise: Promise);

@ReactMethod
abstract fun revokeAllPermissions(promise: Promise)
abstract fun revokeAllPermissions(promise: Promise);

@ReactMethod
abstract fun insertRecords(records: ReadableArray, promise: Promise)
abstract fun insertRecords(records: ReadableArray, promise: Promise);

@ReactMethod
abstract fun readRecords(recordType: String, options: ReadableMap, promise: Promise)
abstract fun readRecords(recordType: String, options: ReadableMap, promise: Promise);

@ReactMethod
abstract fun readRecord(recordType: String, recordId: String, promise: Promise)
abstract fun readRecord(recordType: String, recordId: String, promise: Promise);

@ReactMethod
abstract fun aggregateRecord(record: ReadableMap, promise: Promise)
abstract fun aggregateRecord(record: ReadableMap, promise: Promise);

@ReactMethod
abstract fun aggregateGroupByPeriod(record: ReadableMap, promise: Promise)

abstract fun aggregateGroupByPeriod(record: ReadableMap, promise: Promise);

@ReactMethod
abstract fun getChanges(options: ReadableMap, promise: Promise)
abstract fun getChanges(options: ReadableMap, promise: Promise);

@ReactMethod
abstract fun deleteRecordsByUuids(
recordType: String,
recordIdsList: ReadableArray,
clientRecordIdsList: ReadableArray,
promise: Promise
)
abstract fun deleteRecordsByUuids(recordType: String, recordIdsList: ReadableArray, clientRecordIdsList: ReadableArray, promise: Promise);

@ReactMethod
abstract fun deleteRecordsByTimeRange(
recordType: String,
timeRangeFilter: ReadableMap,
promise: Promise
)
abstract fun deleteRecordsByTimeRange(recordType: String, timeRangeFilter: ReadableMap, promise: Promise);
}

0 comments on commit fd1cfd5

Please sign in to comment.