Skip to content

Commit ced7454

Browse files
authored
update the repo to project liberty labs (#212)
# Goal The goal of this PR is to update the repo to ProjectLibertyLabs Closes #211 # Changes - LICENSE file Copyright [yyyy] [name of copyright owner] -> Copyright Project Liberty LLC - Updated `io.amplica` java to `io.projectliberty` - [ ] Publish the updated java package - [X] Update docs - Updated `@dsnp/graph-sdk` -> `@projectlibertylabs/graph-sdk` - [X] switching from `NODE_AUTH_TOKEN` -> `NPM_AUTH_TOKEN` in GitHub Actions - [ ] NPM Publish a new version with the new package name - Updated version to `2.0.0` - Removed all references to `amplica`
1 parent 5e23bcc commit ced7454

File tree

82 files changed

+3292
-4018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3292
-4018
lines changed

.github/workflows/pr-verify.yml

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -220,46 +220,47 @@ jobs:
220220
- name: Build Node Bridge
221221
run: make test-node
222222

223-
test_java_lib_gradle:
224-
name: Test Java Library
225-
runs-on: ubuntu-latest
226-
needs: [verify, test, lint, build, build_gradlew_jvm]
227-
permissions:
228-
contents: read
229-
packages: write
230-
steps:
231-
- uses: actions/checkout@v3
232-
- name: Set up Java
233-
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
234-
with:
235-
java-version: '17'
236-
distribution: 'adopt'
237-
- name: Test Java Library
238-
working-directory: java/example-graphsdk-client
239-
run: ./gradlew test
240-
env:
241-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
242-
GITHUB_ACTOR: ${{ github.actor }}
243-
244-
test_published_npm:
245-
name: Test Published NPM Package
246-
runs-on: ubuntu-latest
247-
needs: [verify, test, lint, build, build_gradlew_jvm]
248-
permissions:
249-
contents: read
250-
packages: write
251-
steps:
252-
- uses: actions/checkout@v3
253-
- name: Set up Node
254-
uses: actions/setup-node@v3
255-
with:
256-
node-version: '18.x'
257-
registry-url: https://registry.npmjs.org/
258-
- name: Install NPM Dependencies
259-
working-directory: bridge/node/node-example-client
260-
run: npm install
261-
- name: Test Published NPM Package
262-
working-directory: bridge/node/node-example-client
263-
run: npm run test
264-
env:
265-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
223+
# Uncomment after first deployment
224+
# test_java_lib_gradle:
225+
# name: Test Java Library
226+
# runs-on: ubuntu-latest
227+
# needs: [verify, test, lint, build, build_gradlew_jvm]
228+
# permissions:
229+
# contents: read
230+
# packages: write
231+
# steps:
232+
# - uses: actions/checkout@v3
233+
# - name: Set up Java
234+
# uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
235+
# with:
236+
# java-version: '17'
237+
# distribution: 'adopt'
238+
# - name: Test Java Library
239+
# working-directory: java/example-graphsdk-client
240+
# run: ./gradlew test
241+
# env:
242+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
243+
# GITHUB_ACTOR: ${{ github.actor }}
244+
#
245+
# test_published_npm:
246+
# name: Test Published NPM Package
247+
# runs-on: ubuntu-latest
248+
# needs: [verify, test, lint, build, build_gradlew_jvm]
249+
# permissions:
250+
# contents: read
251+
# packages: write
252+
# steps:
253+
# - uses: actions/checkout@v3
254+
# - name: Set up Node
255+
# uses: actions/setup-node@v3
256+
# with:
257+
# node-version: '18.x'
258+
# registry-url: https://registry.npmjs.org/
259+
# - name: Install NPM Dependencies
260+
# working-directory: bridge/node/node-example-client
261+
# run: npm install
262+
# - name: Test Published NPM Package
263+
# working-directory: bridge/node/node-example-client
264+
# run: npm run test
265+
# env:
266+
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,14 @@ jobs:
274274
if: env.TEST_RUN != 'true'
275275
run: npm publish --access public
276276
env:
277-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
277+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
278278

279279
- name: Dry run NPM Package
280280
working-directory: bridge/node
281281
if: env.TEST_RUN == 'true'
282282
run: npm publish --access public --dry-run
283283
env:
284-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
284+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
285285

286286
generate-docs:
287287
name: Generate graph sdk rust docs

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright Project Liberty LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ UNAME := $(shell uname)
77

88
PROTOC := protoc
99
ifeq ($(UNAME), Darwin)
10-
PROTOC = /opt/homebrew/opt/protobuf@27/bin/protoc
10+
PROTOC = /opt/homebrew/opt/protobuf@21/bin/protoc
1111
endif
1212

1313
CBINDGEN=${HOME}/.cargo/bin/cbindgen
@@ -159,7 +159,7 @@ install-protobuf-codegen:
159159
ifeq ($(UNAME), Darwin)
160160
install-protos: install-protobuf-codegen
161161
@echo "Installing protobuf package..."
162-
@brew install protobuf@27
162+
@brew install protobuf@21
163163
endif
164164
ifeq ($(UNAME), Linux)
165165
install-protos: install-protobuf-codegen
@@ -178,5 +178,5 @@ build-rust-protos:
178178
.PHONY: build-java-protos
179179
build-java-protos:
180180
@echo "Generating Java protobuf types..."
181-
@rm -f ./java/lib/src/main/java/io/amplica/graphsdk/models/*
181+
@rm -f ./java/lib/src/main/java/io/projectliberty/graphsdk/models/*
182182
@$(PROTOC) --java_out ./java/lib/src/main/java/ ./bridge/common/protos/input.proto ./bridge/common/protos/output.proto

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Here are a few examples of how to use this library:
8080
<!-- MARKDOWN LINKS & IMAGES -->
8181
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
8282

83-
[issues-shield]: https://img.shields.io/github/issues/LibertyDSNP/graph-sdk.svg?style=for-the-badge
84-
[issues-url]: https://github.com/LibertyDSNP/graph-sdk/issues
85-
[release-shield]: https://img.shields.io/github/v/release/LibertyDSNP/graph-sdk?style=for-the-badge
86-
[release-url]: https://github.com/LibertyDSNP/graph-sdk/releases
83+
[issues-shield]: https://img.shields.io/github/issues/ProjectLibertyLabs/graph-sdk.svg?style=for-the-badge
84+
[issues-url]: https://github.com/ProjectLibertyLabs/graph-sdk/issues
85+
[release-shield]: https://img.shields.io/github/v/release/ProjectLibertyLabs/graph-sdk?style=for-the-badge
86+
[release-url]: https://github.com/ProjectLibertyLabs/graph-sdk/releases

bridge/common/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "dsnp-graph-sdk-common"
3-
version = "1.1.4"
3+
version = "2.0.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
publish = false
77

88
[dependencies]
9-
dsnp-graph-core = { version = "1.1.4", path = "../../core" }
10-
dsnp-graph-config = { version = "1.1.4", path = "../../config" }
9+
dsnp-graph-core = { version = "2.0.0", path = "../../core" }
10+
dsnp-graph-config = { version = "2.0.0", path = "../../config" }
1111
libc = "0.2.155"
1212
protobuf = { version = "3.5.0", features = ["with-bytes"] }

bridge/common/protos/input.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
syntax = "proto3";
22

3-
option java_package = "io.amplica.graphsdk.models";
3+
option java_package = "io.projectliberty.graphsdk.models";
44
option java_multiple_files = true;
55

66
enum GraphKeyType {

bridge/common/protos/output.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
syntax = "proto3";
22

3-
option java_package = "io.amplica.graphsdk.models";
3+
option java_package = "io.projectliberty.graphsdk.models";
44
option java_multiple_files = true;
55

66
enum PrivacyType {

bridge/common/src/proto_types/input.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,10 +2294,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\
22942294
\x0b.ConnectionR\nconnection\x1a`\n\x0bAddGraphKey\x12+\n\x12owner_dsnp_\
22952295
user_id\x18\x01\x20\x01(\x04R\x0fownerDsnpUserId\x12$\n\x0enew_public_ke\
22962296
y\x18\x02\x20\x01(\x0cR\x0cnewPublicKeyB\x07\n\x05innerB\n\n\x08_options\
2297-
*\x1a\n\x0cGraphKeyType\x12\n\n\x06X25519\x10\0B\x1e\n\x1aio.amplica.gra\
2298-
phsdk.modelsP\x01J\xd9\x15\n\x06\x12\x04\0\0R\x01\n\x08\n\x01\x0c\x12\
2299-
\x03\0\0\x12\n\x08\n\x01\x08\x12\x03\x02\03\n\t\n\x02\x08\x01\x12\x03\
2300-
\x02\03\n\x08\n\x01\x08\x12\x03\x03\0\"\n\t\n\x02\x08\n\x12\x03\x03\0\"\
2297+
*\x1a\n\x0cGraphKeyType\x12\n\n\x06X25519\x10\0B%\n!io.projectliberty.gr\
2298+
aphsdk.modelsP\x01J\xd9\x15\n\x06\x12\x04\0\0R\x01\n\x08\n\x01\x0c\x12\
2299+
\x03\0\0\x12\n\x08\n\x01\x08\x12\x03\x02\0:\n\t\n\x02\x08\x01\x12\x03\
2300+
\x02\0:\n\x08\n\x01\x08\x12\x03\x03\0\"\n\t\n\x02\x08\n\x12\x03\x03\0\"\
23012301
\n\n\n\x02\x05\0\x12\x04\x05\0\x07\x01\n\n\n\x03\x05\0\x01\x12\x03\x05\
23022302
\x05\x11\n\x0b\n\x04\x05\0\x02\0\x12\x03\x06\x02\r\n\x0c\n\x05\x05\0\x02\
23032303
\0\x01\x12\x03\x06\x02\x08\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x06\x0b\

bridge/common/src/proto_types/output.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,10 +2511,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\
25112511
\x10\x01\x12\x14\n\x10FriendshipPublic\x10\x02\x12\x15\n\x11FriendshipPr\
25122512
ivate\x10\x03*\x1d\n\x0bDsnpVersion\x12\x0e\n\nVersion1_0\x10\0*E\n\x0fE\
25132513
nvironmentType\x12\x0b\n\x07MainNet\x10\0\x12\x10\n\x0cTestnetPaseo\x10\
2514-
\x01\x12\n\n\x06Rococo\x10\x02\x12\x07\n\x03Dev\x10\x03B\x1e\n\x1aio.amp\
2515-
lica.graphsdk.modelsP\x01J\xf5\x18\n\x06\x12\x04\0\0c\x01\n\x08\n\x01\
2516-
\x0c\x12\x03\0\0\x12\n\x08\n\x01\x08\x12\x03\x02\03\n\t\n\x02\x08\x01\
2517-
\x12\x03\x02\03\n\x08\n\x01\x08\x12\x03\x03\0\"\n\t\n\x02\x08\n\x12\x03\
2514+
\x01\x12\n\n\x06Rococo\x10\x02\x12\x07\n\x03Dev\x10\x03B%\n!io.projectli\
2515+
berty.graphsdk.modelsP\x01J\xf5\x18\n\x06\x12\x04\0\0c\x01\n\x08\n\x01\
2516+
\x0c\x12\x03\0\0\x12\n\x08\n\x01\x08\x12\x03\x02\0:\n\t\n\x02\x08\x01\
2517+
\x12\x03\x02\0:\n\x08\n\x01\x08\x12\x03\x03\0\"\n\t\n\x02\x08\n\x12\x03\
25182518
\x03\0\"\n\n\n\x02\x05\0\x12\x04\x05\0\x08\x01\n\n\n\x03\x05\0\x01\x12\
25192519
\x03\x05\x05\x10\n\x0b\n\x04\x05\0\x02\0\x12\x03\x06\x04\x0f\n\x0c\n\x05\
25202520
\x05\0\x02\0\x01\x12\x03\x06\x04\n\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\

bridge/ffi/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dsnp-graph-sdk-ffi"
3-
version = "1.1.4"
3+
version = "2.0.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
publish = false
@@ -10,8 +10,8 @@ name = "dsnp_graph_sdk_ffi"
1010
crate-type = ["staticlib"]
1111

1212
[dependencies]
13-
dsnp-graph-core = { version = "1.1.4", path = "../../core" }
14-
dsnp-graph-config = { version = "1.1.4", path = "../../config" }
13+
dsnp-graph-core = { version = "2.0.0", path = "../../core" }
14+
dsnp-graph-config = { version = "2.0.0", path = "../../config" }
1515
libc = "0.2.155"
1616
lazy_static = "1.5.0"
1717
anyhow = "1.0.86"

bridge/jni/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dsnp-graph-sdk-jni"
3-
version = "1.1.4"
3+
version = "2.0.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
publish = false
@@ -10,9 +10,9 @@ name = "dsnp_graph_sdk_jni"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
13-
dsnp-graph-core = { version = "1.1.4", path = "../../core" }
14-
dsnp-graph-config = { version = "1.1.4", path = "../../config" }
15-
dsnp-graph-sdk-common = { version = "1.1.4", path = "../common" }
13+
dsnp-graph-core = { version = "2.0.0", path = "../../core" }
14+
dsnp-graph-config = { version = "2.0.0", path = "../../config" }
15+
dsnp-graph-sdk-common = { version = "2.0.0", path = "../common" }
1616
jni = "0.21.1"
1717
cfg-if = "1.0.0"
1818
log = { version = "^0.4.22", features = ["std", "max_level_debug", "release_max_level_debug"] }

0 commit comments

Comments
 (0)