Skip to content

Commit

Permalink
Merge pull request #26 from theGlenn/ft/update-gradle
Browse files Browse the repository at this point in the history
Ft/update gradle
  • Loading branch information
theGlenn authored May 31, 2023
2 parents 718d878 + 3961263 commit 6fb4e85
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

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

4 changes: 2 additions & 2 deletions .idea/deploymentTargetDropDown.xml

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

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

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

3 changes: 1 addition & 2 deletions .idea/misc.xml

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

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

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

21 changes: 13 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

apply plugin: 'kotlin-android'
android {
namespace 'com.justglenn.android.fbflippernoop.sample'
compileSdk 33

apply plugin: 'kotlin-android-extensions'
buildFeatures {
buildConfig true
}

android {
compileSdkVersion 33
defaultConfig {
applicationId "com.justglenn.android.fbflippernoop.sample"
minSdkVersion 16
Expand All @@ -29,11 +34,11 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.0'
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

// def flipper_version = '0.87.0'
def flipper_version = '0.190.0'

debugImplementation "com.facebook.flipper:flipper:$flipper_version"
debugImplementation "com.facebook.flipper:flipper-network-plugin:$flipper_version"
Expand Down
Empty file added app/consumer-rules.pro
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.justglenn.android.fbflippernoop.sample

import android.app.Application
import com.facebook.flipper.BuildConfig
import com.facebook.flipper.android.AndroidFlipperClient
import com.facebook.flipper.android.utils.FlipperUtils
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin
Expand Down
35 changes: 13 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

/*
buildscript {
ext.kotlin_version = '1.6.0'
ext.kotlin_version = '1.7.20'
ext.flipper_version = '0.190.0'
ext.soloader_version = '0.10.4'
repositories {
google()
mavenCentral()

}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// dependencies {
// classpath 'com.android.tools.build:gradle:4.2.2'
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
// }
}
*/

allprojects {
repositories {
google()
mavenCentral()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
plugins {
id 'com.android.application' version '8.0.1' apply false
id 'com.android.library' version '8.0.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
41 changes: 24 additions & 17 deletions flipperandroidnoop/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'maven-publish'
}

android {
compileSdkVersion 33
namespace 'com.facebook.flipper'
compileSdk 33

defaultConfig {
minSdkVersion 15
targetSdkVersion 33
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
Expand All @@ -22,30 +25,34 @@ android {
}

afterEvaluate {
generateReleaseBuildConfig.enabled = false
generateDebugBuildConfig.enabled = false
generateReleaseResValues.enabled = false
generateDebugResValues.enabled = false
// generateReleaseBuildConfig.enabled = false
// generateDebugBuildConfig.enabled = false
// generateReleaseResValues.enabled = false
// generateDebugResValues.enabled = false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
def flipper_version = '0.190.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'androidx.appcompat:appcompat:1.6.1'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.squareup.okhttp3:logging-interceptor:4.4.1'

api 'com.facebook.flipper:flipper-noop:' + flipper_version

def sqlite_version = "2.3.0"
def sqlite_version = "2.3.1"
implementation "androidx.sqlite:sqlite-ktx:$sqlite_version"
}
repositories {
mavenCentral()
}
Empty file.
6 changes: 4 additions & 2 deletions flipperandroidnoop/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook"/>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Mar 25 11:35:17 WET 2021
#Wed May 31 15:41:50 JST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
15 changes: 15 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
// rootProject.name = "flipper-android-no-op"
include ':app', ':flipperandroidnoop', ':soloadernoop'
18 changes: 9 additions & 9 deletions soloadernoop/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'maven-publish'
}

android {
namespace 'com.plangrid.android.soloadernoop'
compileSdkVersion 33

defaultConfig {
Expand All @@ -25,15 +28,12 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'androidx.appcompat:appcompat:1.6.1'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.squareup.okhttp3:logging-interceptor:4.4.1'
}
repositories {
mavenCentral()
}
Empty file added soloadernoop/consumer-rules.pro
Empty file.
5 changes: 2 additions & 3 deletions soloadernoop/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.plangrid.android.soloadernoop">
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

/
</manifest>

0 comments on commit 6fb4e85

Please sign in to comment.