Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Add build rule for iOS static frameworks #26

Merged
merged 85 commits into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
b282710
Configure gitignore for Mac
rajivshah3 Apr 8, 2018
e378305
Mobile/iOS: Configure build
rajivshah3 Apr 8, 2018
d5928b5
Mobile/iOS: Configure build
rajivshah3 Apr 13, 2018
3e367bd
Mobile/iOS: Ignore unnecessary Xcode files, add static framework buil…
rajivshah3 Apr 13, 2018
e91c7f8
Mobile/iOS: Don't test iOS packages on CI
rajivshah3 Apr 13, 2018
c03010a
Rebuild EntangledKit framework
rajivshah3 Apr 13, 2018
a24f1fe
Update docs
rajivshah3 Apr 13, 2018
c4f909d
Fix docs spacing
rajivshah3 Apr 13, 2018
4edc833
Update README
rajivshah3 Apr 26, 2018
6a813fc
Remove framework and update folder name
rajivshah3 Apr 26, 2018
7e773ac
Mobile/iOS: Update build rules
rajivshah3 Apr 26, 2018
fd1e896
Update headers
rajivshah3 May 7, 2018
2c98460
Fix optimization
rajivshah3 May 7, 2018
0ff34c0
Update readme
rajivshah3 May 7, 2018
54166a7
Fix headers
rajivshah3 May 8, 2018
1269c22
Mobile: Remove Xcode user data files
rajivshah3 Jun 11, 2018
fbd46d6
Remove interface folder
rajivshah3 Jun 11, 2018
f9796fa
Fix build script
rajivshah3 Jun 12, 2018
56af349
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jun 23, 2018
11796d8
Mobile/iOS: Add instructions for building with and without bitcode
rajivshah3 Jun 23, 2018
4e8c985
Fix README
rajivshah3 Jun 23, 2018
86b9d34
Mobile/iOS: Add framework location to README
rajivshah3 Jun 23, 2018
981ae5e
Mobile/iOS: Fix xcodeproj
rajivshah3 Jun 23, 2018
7d88e66
Fix Xcode 10 build errors in Demo project
rajivshah3 Jun 23, 2018
9ae635c
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jun 24, 2018
ca1f54c
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jun 25, 2018
c74b6d7
Add copyright info to Interface.m and Interface.h
rajivshah3 Jun 26, 2018
85e539d
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jun 26, 2018
ceceafb
Add tests
rajivshah3 Jun 26, 2018
272fb8a
Move README
rajivshah3 Jun 27, 2018
84cebe5
Update dependencies (rules_apple -> 0.6.0, bazel-skylib -> 0.5.0) and…
rajivshah3 Jun 27, 2018
312a1b8
Remove author comments
rajivshah3 Jun 27, 2018
7e41a59
Remove author comments
rajivshah3 Jun 27, 2018
7c68c22
Remove duplicate include
rajivshah3 Jun 27, 2018
c0a212d
Merge branch 'develop' into feature/ios-framework
rajivshah3 Sep 9, 2018
cffec0c
Add support for checksum and digest, remove unnecessary Interface.m
rajivshah3 Sep 10, 2018
c71fd13
Merge branch 'develop' into feature/ios-framework
rajivshah3 Sep 10, 2018
964ccd7
Merge branch 'develop' into feature/ios-framework
rajivshah3 Sep 13, 2018
fd68d1a
Merge branch 'develop' into feature/ios-framework
rajivshah3 Sep 30, 2018
df9593b
Merge branch 'develop' into feature/ios-framework
rajivshah3 Oct 7, 2018
6b70d98
Merge branch 'develop' into feature/ios-framework
rajivshah3 Oct 14, 2018
60f7e41
Merge branch 'develop' into feature/ios-framework
rajivshah3 Oct 22, 2018
16c5292
Merge branch 'develop' into feature/ios-framework
rajivshah3 Dec 4, 2018
909907e
Merge branch 'develop' into feature/ios-framework
rajivshah3 Dec 9, 2018
208ad37
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jan 15, 2019
17fc0a5
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jan 23, 2019
b246aac
Clean up xcodeproj
rajivshah3 Jan 24, 2019
46aeb41
Bump rules_apple and remove unnecessary dependency
rajivshah3 Jan 24, 2019
86895e0
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jan 25, 2019
dd9de0d
Remove whitespace changes and resolve clang-format errors
rajivshah3 Jan 25, 2019
5fdf13b
Merge branch 'feature/ios-framework' of https://github.com/rajivshah3…
rajivshah3 Jan 25, 2019
840122e
Merge branch 'develop' into feature/ios-framework
rajivshah3 Jan 28, 2019
d75712c
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 5, 2019
9a86baa
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 6, 2019
7fa4c0f
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 11, 2019
8394f79
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 12, 2019
9a72873
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 12, 2019
62e9499
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 14, 2019
c572643
mobile/ios: Bindings for iota_bundle_pow (rajivshah3#43)
rajivshah3 Feb 14, 2019
bdaed75
mobile/ios: iota_digest bindings
rajivshah3 Feb 15, 2019
47238d1
mobile/ios: iota_pow_trytes bindings
rajivshah3 Feb 15, 2019
3f3cdb0
mobile/ios: iota_sign_address_gen_trits bindings
rajivshah3 Feb 15, 2019
1ef9896
mobile/ios: iota_sign_signature_gen_trits bindings
rajivshah3 Feb 15, 2019
19f2318
Clean up code, update demo app, minor bug fixes
rajivshah3 Feb 15, 2019
a5047b5
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 15, 2019
256f92c
Documentation fix
rajivshah3 Feb 15, 2019
5a11ee1
mobile/ios: Add note about linker flag to README
rajivshah3 Feb 15, 2019
a60db68
mobile/ios: Initialize int8_t values before using them
rajivshah3 Feb 16, 2019
f894cd8
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 19, 2019
9391b69
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 27, 2019
c770f78
Merge branch 'develop' into feature/ios-framework
rajivshah3 Feb 27, 2019
7558800
Merge branch 'develop' into feature/ios-framework
rajivshah3 Mar 2, 2019
3386c7d
mobile/ios: Do not advise use of -Ofast
rajivshah3 Mar 2, 2019
14f3ce0
mobile/ios: Check for NULL before returning
rajivshah3 Mar 2, 2019
eb2a884
mobile/ios: Fix memory leaks
rajivshah3 Mar 2, 2019
35f747d
Merge branch 'develop' into feature/ios-framework
rajivshah3 Mar 22, 2019
5d29454
Merge branch 'develop' into feature/ios-framework
rajivshah3 Apr 7, 2019
49d698f
mobile/ios: Fix formatting
rajivshah3 Apr 7, 2019
92c8dfd
mobile/ios: Fix build errors
rajivshah3 Apr 7, 2019
b246438
Merge branch 'develop' into feature/ios-framework
rajivshah3 Apr 9, 2019
48177cc
Merge branch 'develop' into feature/ios-framework
rajivshah3 Apr 16, 2019
7ee7759
Merge branch 'develop' into feature/ios-framework
thibault-martinez Apr 18, 2019
8ec0b60
Run clang-format
rajivshah3 Apr 18, 2019
7900067
Merge branch 'develop' into feature/ios-framework
rajivshah3 Apr 18, 2019
dada620
Merge branch 'develop' into feature/ios-framework
Apr 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,75 @@ ciri/ciri.db*

# Visual Studio Code conf
.vscode/

# Created by https://www.gitignore.io/api/osx

### OSX ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpre
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


# End of https://www.gitignore.io/api/osx

# Created by https://www.gitignore.io/api/xcode

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

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

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno


# End of https://www.gitignore.io/api/xcode

# iOS Frameworks
*.framework
*.framework/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Component|Description
bazel test //...
```

## Developing Entangled
## Developing Entangled
- Be sure to run `./hooks/autohook.sh install` after initial checkout!
- Pass `-c dbg` for building with debug symbols.

Expand Down
14 changes: 14 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ android_ndk_repository(
api_level = 14,
)

git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
tag = "0.13.0",
)

load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)

apple_rules_dependencies()


load("@rules_iota//:defs.bzl", "iota_deps")

iota_deps()
Expand Down
1 change: 1 addition & 0 deletions common/curl-p/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "common/curl-p/digest.h"
#include "common/trinary/trit_tryte.h"


void curl_digest(trit_t const* const trits, size_t const len, trit_t* const out,
Curl* const curl) {
trit_t digest[HASH_LENGTH_TRIT];
Expand Down
2 changes: 2 additions & 0 deletions common/helpers/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

#include <stdlib.h>
#include <string.h>
#include <stdlib.h>

#include "common/curl-p/digest.h"
#include "common/defs.h"
#include "common/helpers/digest.h"
#include "common/trinary/trit_tryte.h"
#include "utils/export.h"


#define TRYTE_LENGTH 2673

IOTA_EXPORT char* iota_digest(const char* trytes) {
Expand Down
1 change: 1 addition & 0 deletions common/helpers/pow.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "common/trinary/trit_tryte.h"
#include "utils/export.h"


#define NONCE_LENGTH 27 * 3

IOTA_EXPORT char* iota_pow(char const* const trytes_in, uint8_t const mwm) {
Expand Down
2 changes: 2 additions & 0 deletions common/helpers/pow.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#define _COMMON_HELPERS_POW_H

#include <stdint.h>
#include <stddef.h>
#include <sys/types.h>

#include "common/trinary/flex_trit.h"
#include "utils/export.h"
Expand Down
1 change: 1 addition & 0 deletions common/pow/pow.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <stdlib.h>
#include <string.h>


#include "common/curl-p/hashcash.h"
#include "common/trinary/trit_tryte.h"
#include "pow.h"
Expand Down
9 changes: 9 additions & 0 deletions mobile/ios/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_static_framework")

ios_static_framework(
name = "ios_bindings",
hdrs = ["Interface.h"],
bundle_name = "EntangledKit",
minimum_os_version = "9.0",
deps = ["//common/helpers"],
)
Loading