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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Ankh.NoLoad
Examples/testapp_rn

# Android debug build files (conflict ignoring #Visual Studio files)
!android/app/src/debug/
!android/src/debug/

# prevent CLI code ignored (ignored by "[Rr]elease*/")
!cli/commands/releaseCommand/
Expand Down
58 changes: 0 additions & 58 deletions android/app/build.gradle

This file was deleted.

66 changes: 50 additions & 16 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,58 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: "com.android.library"
apply plugin: "com.facebook.react"

buildscript {
repositories {
google()
mavenCentral()
def DEFAULT_COMPILE_SDK_VERSION = 26
def DEFAULT_BUILD_TOOLS_VERSION = "26.0.3"
def DEFAULT_TARGET_SDK_VERSION = 26
def DEFAULT_MIN_SDK_VERSION = 16

react {
jsRootDir = file("..")
libraryName = "RNCodePushSpec"
codegenJavaPackageName = "com.microsoft.codepush.react"
}

android {
namespace "com.microsoft.codepush.react"

compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

defaultConfig {
minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 1
versionName "1.0"
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
lintOptions {
abortOnError false
}
}

allprojects {
android {
namespace "com.microsoft.codepush.react"
defaultConfig {
consumerProguardFiles 'proguard-rules.pro'
}
repositories {
mavenLocal()
mavenCentral()

// Builds the binary patch applier. Its sources are the shared ones at the root of the
// repository, which the CMake file points at; nothing is compiled twice.
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}

testOptions {
// The unit tests exercise plain logic, so the android framework classes they touch
// in passing (logging above all) are allowed to do nothing instead of throwing.
unitTests.returnDefaultValues = true
}
}

dependencies {
implementation "com.facebook.react:react-native:+"

testImplementation "junit:junit:4.13.2"
// org.json ships as stubs in the android framework jar, and the unit tests parse real
// manifests, so they need an implementation that actually parses.
testImplementation "org.json:json:20231013"
}
20 changes: 0 additions & 20 deletions android/gradle.properties

This file was deleted.

Binary file removed android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

164 changes: 0 additions & 164 deletions android/gradlew

This file was deleted.

Loading