Skip to content

Commit

Permalink
brickpop#24 Attempt to bring the template to flutter2
Browse files Browse the repository at this point in the history
  • Loading branch information
florianrein committed Apr 24, 2021
1 parent 8be00f6 commit ff555fd
Show file tree
Hide file tree
Showing 87 changed files with 130 additions and 2,061 deletions.
19 changes: 0 additions & 19 deletions .idea/libraries/Dart_SDK.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/libraries/Flutter_for_Android.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/runConfigurations/example_lib_main_dart.xml

This file was deleted.

45 changes: 0 additions & 45 deletions .idea/workspace.xml

This file was deleted.

17 changes: 10 additions & 7 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
*.iml
.gradle
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
33 changes: 10 additions & 23 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
group 'org.mylib.mylib'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.3.50'
repositories {
Expand All @@ -9,36 +6,26 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

rootProject.allprojects {
allprojects {
repositories {
google()
jcenter()
}
}

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

android {
compileSdkVersion 28

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
task clean(type: Delete) {
delete rootProject.buildDir
}
1 change: 0 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
3 changes: 2 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
12 changes: 11 additions & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
rootProject.name = 'mylib'
include ':app'

def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()

assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }

def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
3 changes: 0 additions & 3 deletions android/src/main/AndroidManifest.xml

This file was deleted.

1 change: 0 additions & 1 deletion android/src/main/jniLibs/arm64-v8a/libexample.so

This file was deleted.

1 change: 0 additions & 1 deletion android/src/main/jniLibs/armeabi-v7a/libexample.so

This file was deleted.

1 change: 0 additions & 1 deletion android/src/main/jniLibs/x86/libexample.so

This file was deleted.

1 change: 0 additions & 1 deletion android/src/main/jniLibs/x86_64/libexample.so

This file was deleted.

41 changes: 0 additions & 41 deletions android/src/main/kotlin/org/mylib/mylib/MylibPlugin.kt

This file was deleted.

37 changes: 0 additions & 37 deletions example/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions example/.metadata

This file was deleted.

16 changes: 0 additions & 16 deletions example/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions example/android/.gitignore

This file was deleted.

67 changes: 0 additions & 67 deletions example/android/app/build.gradle

This file was deleted.

Loading

0 comments on commit ff555fd

Please sign in to comment.