Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(example): migrate to react-native-test-app #613

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
16 changes: 0 additions & 16 deletions example/.eslintrc.js

This file was deleted.

16 changes: 16 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.binlog
*.hprof
*.xcworkspace/
*.zip
.DS_Store
.gradle/
.idea/
.vs/
.xcode.env
Pods/
build/
dist/*
!dist/.gitignore
local.properties
msbuild.binlog
node_modules/
7 changes: 0 additions & 7 deletions example/.prettierrc.json

This file was deleted.

1 change: 1 addition & 0 deletions example/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
9 changes: 0 additions & 9 deletions example/Gemfile

This file was deleted.

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

This file was deleted.

10 changes: 0 additions & 10 deletions example/android/app/proguard-rules.pro

This file was deleted.

9 changes: 0 additions & 9 deletions example/android/app/src/debug/AndroidManifest.xml

This file was deleted.

25 changes: 0 additions & 25 deletions example/android/app/src/main/AndroidManifest.xml

This file was deleted.

22 changes: 0 additions & 22 deletions example/android/app/src/main/java/com/example/MainActivity.kt

This file was deleted.

45 changes: 0 additions & 45 deletions example/android/app/src/main/java/com/example/MainApplication.kt

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions example/android/app/src/main/res/values/strings.xml

This file was deleted.

9 changes: 0 additions & 9 deletions example/android/app/src/main/res/values/styles.xml

This file was deleted.

48 changes: 35 additions & 13 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 21
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
}
apply(from: {
def searchDir = rootDir.toPath()
do {
def p = searchDir.resolve("node_modules/react-native-test-app/android/dependencies.gradle")
if (p.toFile().exists()) {
return p.toRealPath().toString()
}
} while (searchDir = searchDir.getParent())
throw new GradleException("Could not find `react-native-test-app`");
}())

repositories {
google()
mavenCentral()
google()
}

dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
getReactNativeDependencies().each { dependency ->
classpath(dependency)
}
}
}

apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url({
def searchDir = rootDir.toPath()
do {
def p = searchDir.resolve("node_modules/react-native/android")
if (p.toFile().exists()) {
return p.toRealPath().toString()
}
} while (searchDir = searchDir.getParent())
throw new GradleException("Could not find `react-native`");
}())
}
mavenCentral()
google()
}
}
File renamed without changes.
Loading
Loading