Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 3 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ Temporary Items
# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

Expand Down Expand Up @@ -189,57 +188,7 @@ lint/tmp/
# Android Profiling
*.hprof

# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
scripts/release/.azure-token.txt

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
pubspec.lock
devtools_options.yaml

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
macos/Flutter/GeneratedPluginRegistrant.swift
windows/flutter/generated_plugin_registrant.cc
windows/flutter/generated_plugins.cmake
windows/
macos/
linux/

# Coverage
coverage/

# FVM Version Cache
.fvm/
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspec-lock.
/pubspec.lock
.dart_tool/
40 changes: 21 additions & 19 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/build
/captures
.cxx
.idea/
27 changes: 15 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
group 'com.w3conext.jailbreak_root_detection'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '2.2.0'
ext.kotlin_version = '1.8.22'
}

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

allprojects {
Expand All @@ -13,6 +15,8 @@ allprojects {
}
}

group 'com.w3conext.jailbreak_root_detection'

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

Expand All @@ -21,33 +25,32 @@ android {
namespace 'com.w3conext.jailbreak_root_detection'
}

compileSdkVersion 36
compileSdkVersion 34

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = "17"
jvmTarget = "11"
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
//test.java.srcDirs += 'src/test/kotlin'
}

defaultConfig {
minSdkVersion 21
}

lintOptions {
disable 'InvalidPackage'
}

}

dependencies {
implementation "androidx.annotation:annotation:1.9.1"
implementation 'com.scottyab:rootbeer-lib:0.1.1'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2"
}
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
}
5 changes: 5 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
AGPVersion=8.3.0
kotlin_version=1.9.0
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Aug 06 10:02:34 MYT 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 2 additions & 5 deletions android/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 10 additions & 12 deletions android/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 9 additions & 18 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id "com.android.library" version "8.6.0" apply false
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
plugins {
id 'com.android.library' version "${AGPVersion}"
id 'org.jetbrains.kotlin.android' version "${kotlin_version}"
}
}

rootProject.name = 'jailbreak_root_detection'
1 change: 1 addition & 0 deletions example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ GeneratedPluginRegistrant.java
key.properties
**/*.keystore
**/*.jks
.idea/
50 changes: 35 additions & 15 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,45 +1,65 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

android {
namespace = "com.w3conext.jailbreak_root_detection_example"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileSdkVersion 36
ndkVersion "27.0.12077973"
namespace 'com.w3conext.jailbreak_root_detection_example'

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
jvmTarget = '11'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.w3conext.jailbreak_root_detection_example"

// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
signingConfig signingConfigs.debug
}
}
}

flutter {
source = "../.."
source '../..'
}
Loading