Skip to content

Commit

Permalink
refactor: rename example to paper-example (#2509)
Browse files Browse the repository at this point in the history
# Summary

Rename example app to match the pattern.
  • Loading branch information
jakex7 authored Oct 25, 2024
1 parent 36aecda commit 0c4f58d
Show file tree
Hide file tree
Showing 68 changed files with 300 additions and 710 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- 'android/**'
- 'src/fabric/**'
- 'package.json'
- 'apps/example/android/**'
- 'apps/example/package.json'
- 'apps/paper-example/android/**'
- 'apps/paper-example/package.json'
- 'apps/fabric-example/android/**'
- 'apps/fabric-example/package.json'
push:
Expand All @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
working-directory: [example, fabric-example]
working-directory: [paper-example, fabric-example]
fail-fast: false
concurrency:
group: android-${{ matrix.working-directory }}-${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
paths:
- .github/workflows/e2e-android.yml
- apps/example/**
- apps/common/example/**
- android/**
- src/**
- e2e/**
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: macos-12
timeout-minutes: 60
env:
WORKING_DIRECTORY: example
WORKING_DIRECTORY: paper-example
API_LEVEL: 34
SYSTEM_IMAGES: system-images;android-34;google_apis;x86_64
AVD_NAME: rn-svg-avd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
working-directory: [example]
working-directory: [paper-example]
fail-fast: false
env:
DEVICE: iPhone 16 Pro
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- apple/**
- src/fabric/**
- package.json
- apps/example/package.json
- apps/example/ios/**
- apps/paper-example/package.json
- apps/paper-example/ios/**
- apps/fabric-example/package.json
- apps/fabric-example/ios/**
push:
Expand All @@ -21,7 +21,7 @@ jobs:
runs-on: macos-14
strategy:
matrix:
working-directory: [example, fabric-example]
working-directory: [paper-example, fabric-example]
fail-fast: false
concurrency:
group: ios-${{ matrix.working-directory }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

`react-native-svg` provides SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.

[Check out the Example app](https://github.com/react-native-svg/react-native-svg/tree/main/example)
[Check out the Example app](https://github.com/software-mansion/react-native-svg/tree/main/apps/common/example)

- [Features](#features)
- [Installation](#installation)
Expand Down
2 changes: 1 addition & 1 deletion apps/common/example/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Sample React Native App for react-native-svg library
* https://github.com/software-mansion/react-native-svg/tree/main/apps/examples
* https://github.com/software-mansion/react-native-svg/tree/main/apps/common/example
*/
'use strict';

Expand Down
12 changes: 7 additions & 5 deletions apps/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
"react-native-svg/css": ["../../src/css/index.tsx"],
"react-native-svg/filter-image": ["../../src/filter-image/index.tsx"],
"react-native-reanimated": [
"../example/node_modules/react-native-reanimated"
"../fabric-example/node_modules/react-native-reanimated"
],
"react-native-view-shot": [
"../example/node_modules/react-native-view-shot"
"../fabric-example/node_modules/react-native-view-shot"
],
"@react-navigation/*": [
"../fabric-example/node_modules/@react-navigation/*"
],
"@react-navigation/*": ["../example/node_modules/@react-navigation/*"],
"react-native-gesture-handler": [
"../example/node_modules/react-native-gesture-handler"
"../fabric-example/node_modules/react-native-gesture-handler"
],
"@react-native-async-storage/async-storage": [
"../example/node_modules/@react-native-async-storage/async-storage"
"../fabric-example/node_modules/@react-native-async-storage/async-storage"
]
}
},
Expand Down
3 changes: 0 additions & 3 deletions apps/example/android/app/src/main/res/values/strings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions apps/example/app.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 25 additions & 16 deletions apps/example/Gemfile.lock → apps/paper-example/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,29 @@ GEM
base64
nkf
rexml
activesupport (7.0.8.1)
activesupport (7.1.4.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
bigdecimal (3.1.8)
claide (1.1.0)
cocoapods (1.14.3)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.14.3)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -36,7 +42,7 @@ GEM
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.14.3)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -56,38 +62,41 @@ GEM
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.16.3)
ffi (1.17.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.4)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.2)
minitest (5.22.3)
json (2.7.4)
minitest (5.25.1)
molinillo (0.8.0)
mutex_m (0.2.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.6)
rexml (3.3.9)
ruby-macho (2.5.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.24.0)
xcodeproj (1.25.1)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
rexml (>= 3.3.6, < 4.0)

PLATFORMS
ruby
Expand All @@ -97,7 +106,7 @@ DEPENDENCIES
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)

RUBY VERSION
ruby 3.2.1p31
ruby 2.7.6p219

BUNDLED WITH
2.4.19
2.1.4
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

namespace "com.example"
namespace "com.paperexample"
defaultConfig {
applicationId "com.example"
applicationId "com.paperexample"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example
package com.paperexample

import android.os.Bundle;
import android.os.Bundle
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
Expand All @@ -12,8 +12,8 @@ class MainActivity : ReactActivity() {
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
override fun getMainComponentName(): String = "Example"
override fun getMainComponentName(): String = "PaperExample"

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(null)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example
package com.paperexample

import android.app.Application
import com.facebook.react.PackageList
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">PaperExample</string>
</resources>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=2048m
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'Example'
rootProject.name = 'PaperExample'
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
4 changes: 4 additions & 0 deletions apps/paper-example/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "PaperExample",
"displayName": "PaperExample"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0c4f58d

Please sign in to comment.