A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
use npm to instal deps in ci
ammarahm-ed021d6a3b1a50
diff --git a/apps/mobile/.github/workflows/android-release.yml b/apps/mobile/.github/workflows/android-release.ymlindex 5027531d2..100f6022b 100644--- a/apps/mobile/.github/workflows/android-release.yml+++ b/apps/mobile/.github/workflows/android-release.yml@@ -4,19 +4,19 @@ on: workflow_dispatchjobs:build:-runs-on: ubuntu-latesttimeout-minutes: 15steps:-- name: Checkoutuses: actions/checkout@v2with:persist-credentials: false-+- uses: actions/setup-node@master-+ with:+ node-version: '16'+- name: Use specific Java version for the buildsuses: joschi/setup-jdk@v2with:@@ -25,10 +25,10 @@ jobs:- name: Install node modulesrun: |- yarn install --network-concurrency 1-+ npm install+- name: Make Gradlew Executable- run: cd android && chmod +x ./gradlew+ run: cd android && chmod +x ./gradlew- name: Build Android App Bundlerun: |@@ -43,12 +43,12 @@ jobs:alias: ${{ secrets.ALIAS }}keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}keyPassword: ${{ secrets.KEY_PASSWORD }}-+- name: Upload Artifactuses: actions/upload-artifact@v2with:- name: Signed App Bundle- path: ${{steps.sign_app.outputs.signedReleaseFile}}+ name: Signed App Bundle+ path: ${{steps.sign_app.outputs.signedReleaseFile}}- name: Deploy to Play Store (ALPHA)id: deploydiff --git a/apps/mobile/codemagic.yaml b/apps/mobile/codemagic.yamlindex 227ecb1e3..2794d0c8d 100644--- a/apps/mobile/codemagic.yaml+++ b/apps/mobile/codemagic.yaml@@ -1,78 +1,78 @@workflows:- react-native-ios:- name: Notesnook iOS Build- max_build_duration: 120- instance_type: mac_mini- environment:- groups:- - appstore_credentials- - certificate_credentials- - provisioning_profile-- vars:- XCODE_WORKSPACE: "Notesnook.xcworkspace" # <-- Put the name of your Xcode workspace here- XCODE_SCHEME: "Notesnook" # <-- Put the name of your Xcode scheme here- BUNDLE_ID: "org.streetwriters.notesnook" # <-- Put your Bundle Id here e.g com.domain.myapp- APP_STORE_APP_ID: 1544027013 # <-- Put the app id number here. This is found in App Store Connect > App > General > App Information-- node: 14.18.1- xcode: 12.4- cocoapods: default- cache:- cache_paths:- - $HOME/Library/Caches/CocoaPods- scripts:- - name: Install npm dependencies- script: |- yarn install --network-concurrency 1- - name: Install CocoaPods dependencies- script: |- cd ios && pod install- - name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command- script: |- keychain initialize- - name: Set up Provisioning profiles from environment variables- script: |- PROFILES_HOME="$HOME/Library/MobileDevice/Provisioning Profiles"- mkdir -p "$PROFILES_HOME"- for profile in "${!FCI_PROVISIONING_PROFILE_@}"; do- PROFILE_PATH="$(mktemp "$HOME/Library/MobileDevice/Provisioning Profiles"/ios_$(uuidgen).mobileprovision)"- echo ${!profile} | base64 --decode > "$PROFILE_PATH"- echo "Saved provisioning profile $PROFILE_PATH"- done- - name: Set up signing certificate- script: |- echo $FCI_CERTIFICATE | base64 --decode > /tmp/certificate.p12- if [ -z ${FCI_CERTIFICATE_PASSWORD+x} ]; then- # when using a certificate that is not password-protected- keychain add-certificates --certificate /tmp/certificate.p12- else- # when using a password-protected certificate- keychain add-certificates --certificate /tmp/certificate.p12 --certificate-password $FCI_CERTIFICATE_PASSWORD- fi- - name: Set up code signing settings on Xcode project- script: xcode-project use-profiles- - name: Build ipa for distribution- script: |- xcode-project build-ipa --workspace "$FCI_BUILD_DIR/ios/$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME"- artifacts:- - build/ios/ipa/*.ipa- - /tmp/xcodebuild_logs/*.log- - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app- - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM- publishing:- # See the following link for details about email publishing - https://docs.codemagic.io/publishing-yaml/distribution/#email- email:- recipients:- notify:- success: true # To not receive a notification when a build succeeds- failure: false # To not receive a notification when a build fails- app_store_connect:- api_key: $APP_STORE_CONNECT_PRIVATE_KEY # Contents of the API key, can also reference environment variable such as $APP_STORE_CONNECT_PRIVATE_KEY- key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER # Alphanumeric value that identifies the API key, can also reference environment variable such as $APP_STORE_CONNECT_KEY_IDENTIFIER- issuer_id: $APP_STORE_CONNECT_ISSUER_ID # Alphanumeric value that identifies who created the API key, can also reference environment variable such as $APP_STORE_CONNECT_ISSUER_ID- submit_to_testflight: false # Optional boolean, defaults to false. Whether or not to submit the uploaded build to TestFlight beta review. Required for distributing to beta groups. Note: This action is performed during post-processing.- # beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.- # - group name 1- # - group name 2\ No newline at end of file+ react-native-ios:+ name: Notesnook iOS Build+ max_build_duration: 120+ instance_type: mac_mini+ environment:+ groups:+ - appstore_credentials+ - certificate_credentials+ - provisioning_profile++ vars:+ XCODE_WORKSPACE: 'Notesnook.xcworkspace' # <-- Put the name of your Xcode workspace here+ XCODE_SCHEME: 'Notesnook' # <-- Put the name of your Xcode scheme here+ BUNDLE_ID: 'org.streetwriters.notesnook' # <-- Put your Bundle Id here e.g com.domain.myapp+ APP_STORE_APP_ID: 1544027013 # <-- Put the app id number here. This is found in App Store Connect > App > General > App Information++ node: 16.13.2+ xcode: 12.4+ cocoapods: default+ cache:+ cache_paths:+ - $HOME/Library/Caches/CocoaPods+ scripts:+ - name: Install npm dependencies+ script: |+ npm install+ - name: Install CocoaPods dependencies+ script: |+ cd ios && pod install+ - name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command+ script: |+ keychain initialize+ - name: Set up Provisioning profiles from environment variables+ script: |+ PROFILES_HOME="$HOME/Library/MobileDevice/Provisioning Profiles"+ mkdir -p "$PROFILES_HOME"+ for profile in "${!FCI_PROVISIONING_PROFILE_@}"; do+ PROFILE_PATH="$(mktemp "$HOME/Library/MobileDevice/Provisioning Profiles"/ios_$(uuidgen).mobileprovision)"+ echo ${!profile} | base64 --decode > "$PROFILE_PATH"+ echo "Saved provisioning profile $PROFILE_PATH"+ done+ - name: Set up signing certificate+ script: |+ echo $FCI_CERTIFICATE | base64 --decode > /tmp/certificate.p12+ if [ -z ${FCI_CERTIFICATE_PASSWORD+x} ]; then+ # when using a certificate that is not password-protected+ keychain add-certificates --certificate /tmp/certificate.p12+ else+ # when using a password-protected certificate+ keychain add-certificates --certificate /tmp/certificate.p12 --certificate-password $FCI_CERTIFICATE_PASSWORD+ fi+ - name: Set up code signing settings on Xcode project+ script: xcode-project use-profiles+ - name: Build ipa for distribution+ script: |+ xcode-project build-ipa --workspace "$FCI_BUILD_DIR/ios/$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME"+ artifacts:+ - build/ios/ipa/*.ipa+ - /tmp/xcodebuild_logs/*.log+ - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app+ - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM+ publishing:+ # See the following link for details about email publishing - https://docs.codemagic.io/publishing-yaml/distribution/#email+ email:+ recipients:+ notify:+ success: true # To not receive a notification when a build succeeds+ failure: false # To not receive a notification when a build fails+ app_store_connect:+ api_key: $APP_STORE_CONNECT_PRIVATE_KEY # Contents of the API key, can also reference environment variable such as $APP_STORE_CONNECT_PRIVATE_KEY+ key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER # Alphanumeric value that identifies the API key, can also reference environment variable such as $APP_STORE_CONNECT_KEY_IDENTIFIER+ issuer_id: $APP_STORE_CONNECT_ISSUER_ID # Alphanumeric value that identifies who created the API key, can also reference environment variable such as $APP_STORE_CONNECT_ISSUER_ID+ submit_to_testflight: false # Optional boolean, defaults to false. Whether or not to submit the uploaded build to TestFlight beta review. Required for distributing to beta groups. Note: This action is performed during post-processing.+ # beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.+ # - group name 1+ # - group name 2diff --git a/apps/mobile/index.js b/apps/mobile/index.jsindex 65815fc34..063845d2b 100644--- a/apps/mobile/index.js+++ b/apps/mobile/index.js@@ -7,10 +7,11 @@ import { name as appName } from './app.json';import Notifications from './src/services/Notifications';global.Buffer = require('buffer').Buffer;enableScreens(true);-UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);+UIManager.setLayoutAnimationEnabledExperimental &&+ UIManager.setLayoutAnimationEnabledExperimental(true);if (__DEV__) {- LogBox.ignoreAllLogs();+ LogBox.ignoreAllLogs();}let Provider;