Skip to content

Commit

Permalink
Refactor and rewrite the OrbotConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
meenbeese committed Dec 14, 2024
1 parent ec62b32 commit b2003b2
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 196 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/torproject/android/OrbotApp.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.torproject.android

import android.app.Application
import android.content.Intent
import android.content.res.Configuration

import org.torproject.android.core.Languages
import org.torproject.android.core.LocaleHelper
import org.torproject.android.service.OrbotConstants
import org.torproject.android.service.util.Prefs

import java.util.Locale

class OrbotApp : Application(), OrbotConstants {
class OrbotApp : Application() {


override fun onCreate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import org.torproject.android.service.vpn.TorifiedApp
import java.util.Arrays
import java.util.StringTokenizer

class AppManagerActivity : AppCompatActivity(), View.OnClickListener, OrbotConstants {
class AppManagerActivity : AppCompatActivity(), View.OnClickListener {
inner class TorifiedAppWrapper {
var header: String? = null
var subheader: String? = null
Expand Down
5 changes: 5 additions & 0 deletions orbotservice/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply from: "../commons.gradle"
apply from : '../dependencies.gradle'
apply plugin: 'org.jetbrains.kotlin.android'

android {
defaultConfig {
Expand Down Expand Up @@ -31,6 +32,9 @@ android {
xmlReport false
}
namespace 'org.torproject.android.service'
kotlinOptions {
jvmTarget = '17'
}
}

dependencies {
Expand All @@ -52,4 +56,5 @@ dependencies {
)

implementation files('../libs/geoip.jar')
implementation 'androidx.core:core-ktx:1.10.1'
}

This file was deleted.

Loading

0 comments on commit b2003b2

Please sign in to comment.