Skip to content

Commit 21d11af

Browse files
committed
Initial plumbing for leveldb local parts
1 parent 4e7296b commit 21d11af

File tree

6 files changed

+125
-0
lines changed

6 files changed

+125
-0
lines changed

Firestore/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ add_subdirectory(src/firebase/firestore)
1616
add_subdirectory(src/firebase/firestore/auth)
1717
add_subdirectory(src/firebase/firestore/core)
1818
add_subdirectory(src/firebase/firestore/immutable)
19+
add_subdirectory(src/firebase/firestore/local)
1920
add_subdirectory(src/firebase/firestore/model)
2021
add_subdirectory(src/firebase/firestore/remote)
2122
add_subdirectory(src/firebase/firestore/util)
@@ -25,6 +26,7 @@ add_subdirectory(test/firebase/firestore)
2526
add_subdirectory(test/firebase/firestore/auth)
2627
add_subdirectory(test/firebase/firestore/core)
2728
add_subdirectory(test/firebase/firestore/immutable)
29+
add_subdirectory(test/firebase/firestore/local)
2830
add_subdirectory(test/firebase/firestore/model)
2931
add_subdirectory(test/firebase/firestore/remote)
3032
add_subdirectory(test/firebase/firestore/util)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2018 Google
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
cc_library(
16+
firebase_firestore_local
17+
SOURCES
18+
leveldb_key.h
19+
leveldb_key.cc
20+
DEPENDS
21+
LevelDB::LevelDB
22+
absl_strings
23+
firebase_firestore_util
24+
)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2018 Google
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include "Firestore/core/src/firebase/firestore/local/leveldb_key.h"
18+
19+
namespace firebase {
20+
namespace firestore {
21+
namespace local {
22+
23+
} // local
24+
} // firestore
25+
} // firebase
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2018 Google
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef FIRESTORE_CORE_SRC_FIREBASE_FIRESTORE_LOCAL_LEVELDB_KEY_H_
18+
#define FIRESTORE_CORE_SRC_FIREBASE_FIRESTORE_LOCAL_LEVELDB_KEY_H_
19+
20+
namespace firebase {
21+
namespace firestore {
22+
namespace local {
23+
24+
} // local
25+
} // firestore
26+
} // firebase
27+
28+
#endif // FIRESTORE_CORE_SRC_FIREBASE_FIRESTORE_LOCAL_LEVELDB_KEY_H_
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2018 Google
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
cc_test(
16+
firebase_firestore_local_test
17+
SOURCES
18+
leveldb_key_test.cc
19+
DEPENDS
20+
firebase_firestore_local
21+
)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2018 Google
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#include "Firestore/core/src/firebase/firestore/local/leveldb_key.h"
18+
19+
namespace firebase {
20+
namespace firestore {
21+
namespace local {
22+
23+
} // local
24+
} // firestore
25+
} // firebase

0 commit comments

Comments
 (0)