-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
63 changed files
with
1,287 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,71 @@ | ||
group 'com.infinum.flutter_locker' | ||
group 'com.example.flutter_locker' | ||
version '1.0-SNAPSHOT' | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.6.21' | ||
ext.kotlin_version = '1.3.50' | ||
repositories { | ||
google() | ||
mavenCentral() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:4.1.3' | ||
classpath 'com.android.tools.build:gradle:3.5.0' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
maven { | ||
url './flutter_locker' | ||
} | ||
maven { | ||
url 'https://storage.googleapis.com/download.flutter.io' | ||
rootProject.allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'com.google.protobuf' | ||
|
||
android { | ||
compileSdkVersion 31 | ||
compileSdkVersion 28 | ||
|
||
sourceSets { | ||
main { | ||
proto.srcDir '../protos' | ||
java.srcDirs += 'src/main/kotlin' | ||
} | ||
} | ||
defaultConfig { | ||
minSdkVersion 21 | ||
minSdkVersion 16 | ||
} | ||
lintOptions { | ||
disable 'InvalidPackage' | ||
} | ||
compileOptions { | ||
sourceCompatibility 1.8 | ||
targetCompatibility 1.8 | ||
} | ||
} | ||
|
||
configurations { | ||
profileImplementation{} | ||
protobuf { | ||
// Configure the protoc executable | ||
protoc { | ||
// Download from repositories | ||
artifact = 'com.google.protobuf:protoc:3.9.1:osx-x86_64' | ||
} | ||
plugins { | ||
javalite { | ||
// The codegen for lite comes as a separate artifact | ||
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0:osx-x86_64' | ||
} | ||
} | ||
generateProtoTasks { | ||
all().each { task -> | ||
task.plugins { | ||
javalite { } | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
implementation 'co.infinum:goldfinger:2.0.1' | ||
implementation 'co.infinum:goldfinger:2.0.0' | ||
implementation 'com.google.protobuf:protobuf-lite:3.0.1' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.enableR8=true | ||
android.useAndroidX=true | ||
android.enableJetifier=true |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
include ':app' | ||
rootProject.name = 'flutter_locker' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.infinum.flutter_locker"> | ||
package="com.example.flutter_locker"> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.