Skip to content

Commit

Permalink
chore: Move everything into package/
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 30, 2024
1 parent 03d2772 commit 263f14c
Show file tree
Hide file tree
Showing 833 changed files with 112,449 additions and 55 deletions.
Binary file added .DS_Store
Binary file not shown.
27 changes: 15 additions & 12 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,29 @@ on:
- main
paths:
- '.github/workflows/build-android.yml'
- 'android/**'
- 'cpp/**'
- 'MMKV/**'
- 'example/android/**'
- 'yarn.lock'
- 'example/yarn.lock'
- 'package/android/**'
- 'package/cpp/**'
- 'package/MMKV/**'
- 'package/yarn.lock'
- 'package/example/android/**'
- 'package/example/yarn.lock'
pull_request:
paths:
- '.github/workflows/build-android.yml'
- 'android/**'
- 'cpp/**'
- 'MMKV/**'
- 'example/android/**'
- 'yarn.lock'
- 'example/yarn.lock'
- 'package/android/**'
- 'package/cpp/**'
- 'package/MMKV/**'
- 'package/yarn.lock'
- 'package/example/android/**'
- 'package/example/yarn.lock'

jobs:
build_example:
name: Build Android Example App
runs-on: ubuntu-latest
defaults:
run:
working-directory: package/
steps:
- uses: actions/checkout@v4

Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ on:
- main
paths:
- '.github/workflows/build-ios.yml'
- 'cpp/**'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
- 'MMKV/**'
- 'package/cpp/**'
- 'package/ios/**'
- 'package/*.podspec'
- 'package/example/ios/**'
- 'package/MMKV/**'
pull_request:
paths:
- '.github/workflows/build-ios.yml'
- 'cpp/**'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
- 'MMKV/**'
- 'package/cpp/**'
- 'package/ios/**'
- 'package/*.podspec'
- 'package/example/ios/**'
- 'package/MMKV/**'

jobs:
build:
name: Build iOS Example App
runs-on: macOS-latest
defaults:
run:
working-directory: example/ios
working-directory: package/example/ios
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -55,13 +55,13 @@ jobs:
with:
ruby-version: 2.6
bundler-cache: true
working-directory: example/ios
working-directory: package/example/ios

- name: Restore Pods cache
uses: actions/cache@v4
with:
path: |
example/ios/Pods
package/example/ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notice-yarn-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
collapsibleThreshold: '25'
failOnDowngrade: 'false'
path: 'yarn.lock'
path: 'package/yarn.lock'
updateComment: 'true'
18 changes: 9 additions & 9 deletions .github/workflows/validate-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- main
paths:
- '.github/workflows/validate-cpp.yml'
- 'cpp/**'
- 'android/src/main/cpp/**'
- 'ios/**'
- 'package/cpp/**'
- 'package/android/src/main/cpp/**'
- 'package/ios/**'
pull_request:
paths:
- '.github/workflows/validate-cpp.yml'
- 'cpp/**'
- 'android/src/main/cpp/**'
- 'ios/**'
- 'package/cpp/**'
- 'package/android/src/main/cpp/**'
- 'package/ios/**'

jobs:
lint:
Expand All @@ -23,9 +23,9 @@ jobs:
strategy:
matrix:
path:
- 'cpp'
- 'android/src/main/cpp'
- 'ios'
- 'package/cpp'
- 'package/android/src/main/cpp'
- 'package/ios'
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/validate-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,35 @@ on:
- main
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.json'
- '*.js'
- '*.lock'
- 'example/src/**'
- 'example/*.json'
- 'example/*.js'
- 'example/*.lock'
- 'example/*.tsx'
- 'package/src/**'
- 'package/*.json'
- 'package/*.js'
- 'package/*.lock'
- 'package/example/src/**'
- 'package/example/*.json'
- 'package/example/*.js'
- 'package/example/*.lock'
- 'package/example/*.tsx'
pull_request:
paths:
- '.github/workflows/validate-js.yml'
- 'src/**'
- '*.json'
- '*.js'
- '*.lock'
- 'example/src/**'
- 'example/*.json'
- 'example/*.js'
- 'example/*.lock'
- 'example/*.tsx'
- 'package/src/**'
- 'package/*.json'
- 'package/*.js'
- 'package/*.lock'
- 'package/example/src/**'
- 'package/example/*.json'
- 'package/example/*.js'
- 'package/example/*.lock'
- 'package/example/*.tsx'

jobs:
compile:
name: Compile JS (tsc)
runs-on: ubuntu-latest
defaults:
run:
working-directory: package/
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "MMKV"]
path = MMKV
path = package/MMKV
url = https://github.com/Tencent/MMKV.git
1 change: 0 additions & 1 deletion MMKV
Submodule MMKV deleted from 9a210a
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions package/MMKV/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: InlineOnly
#AllowShortLambdasOnASingleLine: Inline
BreakAfterJavaFieldAnnotations: true
BreakBeforeBraces: Linux
SpaceAfterCStyleCast: true
IndentCaseLabels: true
AccessModifierOffset: -4
BreakBeforeBraces: Custom
BraceWrapping:
AfterNamespace: false
AfterClass: false
AfterFunction: false

BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BinPackParameters: false
ReflowComments: false
ObjCBlockIndentWidth: 4
---
Language: Cpp
ColumnLimit: 120
IndentPPDirectives: AfterHash
---
Language: ObjC
ColumnLimit: 0
#UseTab: ForIndentation
---
Language: Java
ColumnLimit: 120
AllowShortFunctionsOnASingleLine: None
BreakBeforeBinaryOperators: NonAssignment
14 changes: 14 additions & 0 deletions package/MMKV/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: [lingol]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
45 changes: 45 additions & 0 deletions package/MMKV/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Bug report
about: Create a report to help us improve
---

## Note:
An crash issue will be **ignored & closed** in a week **without logs**.

### The language of MMKV

> e.g. Objective-C, Swift, Java, or Kotlin


### The version of MMKV

> e.g. v1.2.2
> Note: For versions older than the latest version, please upgrade before posting any issue.
> We don't have much time for old version tech support.


### The platform of MMKV

> e.g. iOS or Android


### The installation of MMKV

> e.g. Cocoapods, Maven, or Git clone


### What's the issue?

> Post the outputs or screenshots for errors.
>
> Explain what you want by example or code **in English**.
> If you have a crash/OOM/ANR on Android, please provide **symbolize stack traces**. https://developer.android.com/ndk/guides/ndk-stack.html
### What's the log of MMKV when that happened?
> Your **detail logs**. As much as possible.
> For how to forward MMKV's log, you can checkout the wiki on each platform.
> An crash issue will be **ignored & closed** in a week **without logs**.
52 changes: 52 additions & 0 deletions package/MMKV/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

#python
venv

## OS X
.DS_Store

## Xcode
DerivedData

## Visual Studio
.vs
[Dd]ebug/
[Rr]elease/
*.user
*.VC.opendb
*.VC.db
ipch/

#cmake
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
Linux/Makefile
cmake-build-debug/
cmake-build-release/
build/
dist/
*.egg-info/
.cmake

#CLion
.idea

#Android Studio
.cxx
3 changes: 3 additions & 0 deletions package/MMKV/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "POSIX/Python/pybind11"]
path = POSIX/Python/pybind11
url = https://github.com/pybind/pybind11.git
12 changes: 12 additions & 0 deletions package/MMKV/Android/MMKV/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.iml
.gradle
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild
.idea/caches/build_file_checksums.ser
.idea/
Loading

0 comments on commit 263f14c

Please sign in to comment.